Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


MDX Query - Little TROUBLE with a calculated member


MDX Query - Little TROUBLE with a calculated member

Author
Message
maretix
maretix
SSC-Enthusiastic
SSC-Enthusiastic (101 reputation)SSC-Enthusiastic (101 reputation)SSC-Enthusiastic (101 reputation)SSC-Enthusiastic (101 reputation)SSC-Enthusiastic (101 reputation)SSC-Enthusiastic (101 reputation)SSC-Enthusiastic (101 reputation)SSC-Enthusiastic (101 reputation)

Group: General Forum Members
Points: 101 Visits: 234
Hi to all.
I use SSAS 2008 R2 and i built a cube.
In this cube i have a little trouble with a calculated member i have to do.
My new calculate member is named AllSalesAmountOfWholeCompany
I need to calculate the total amoun of sales of all company.
I'd like to be able my users, to display in the same moment sales amount fo a single store of the company and in the same row the total amount of all company...
(A buyer asked me that and i found interesting to do !!!)

I built calculate member in MDX and i was able to do that BUT my trouble is to hide the row of stores that has SALES AMOUNT as NULL or 0.....(In the example Store 2...)
How can i do that ???? Inside Calculation member definition or where ????
I have the same problem in Excel and SQL SERVER MANAGEMENT STUDIO too...
I suppose i have to force NULL or 0 my calculated member AllSalesAmountOfWholeCompany, in this way, Excel will display only stores with a Sales Amount > 0.
But i tried i was not able,,,i am not a super MDX man ,,,i know

DIM STORES Sales Amount of a Month AllSalesAmountOfWholeCompany

Store 1 100 120.000
Store 2 120.000
Store 3 300 120.000

Here is my MDX that it works correctly

SUM

(

{
( [Azienda].[All Azienda].[COMET],
[Codice_Filiale].[Codice_Filiale].[Cod Filiale]
)

}
,[Measures].[Importo Venduto])



Thanks in advance...
Mackers
Mackers
SSC-Enthusiastic
SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)

Group: General Forum Members
Points: 117 Visits: 499
Is this a duplicate post of this? http://www.sqlservercentral.com/Forums/Topic1409208-17-1.aspx

Mack
maretix
maretix
SSC-Enthusiastic
SSC-Enthusiastic (101 reputation)SSC-Enthusiastic (101 reputation)SSC-Enthusiastic (101 reputation)SSC-Enthusiastic (101 reputation)SSC-Enthusiastic (101 reputation)SSC-Enthusiastic (101 reputation)SSC-Enthusiastic (101 reputation)SSC-Enthusiastic (101 reputation)

Group: General Forum Members
Points: 101 Visits: 234
CIAO.
Yes it is ...sorry for that !!!!

I hope you apologize me...

Thanks
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search