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


MDX: SSRS Expression: Count Dimension members based on other Dimension


MDX: SSRS Expression: Count Dimension members based on other Dimension

Author
Message
gb 86916
gb 86916
Grasshopper
Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)

Group: General Forum Members
Points: 10 Visits: 15
Hi there,
I am pretty new to mdx expressions, and am currently trying to write a calculated member in SSRS (2012) that does pretty much the following:

Dimension1 - CampaignNames
Dimension2 - Customers
Dimension3 - ContactDate


now out of These three i want to see the Number(Count) of Customers that have been Contacted (for which there is a ContactDate, so basically where ContactDate is not Unknown or Null).
Logicaly maybe something like this

Count(Customers) where ContactDate NonEmpty
( I am not quite sure if i'm typing it correctly, this is just how i Thing it's done for now. i don't know if this would also exclude NULL Values.)
I want this to be done Relative to the CampaignName though, so when i put it on a table later, i could Group by Campaign Name and then Customers.
Mark Fitzgerald-331224
Mark Fitzgerald-331224
Hall of Fame
Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)

Group: General Forum Members
Points: 3694 Visits: 1513
Just to clarify, are you looking to do this in a SSRS dataset containing an MDX query or within a table in SSRS.

If it is the MDX route then please list out the dimension and measures you are using for this. Please show any code you have tried to perform this task.

Fitz
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