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


Calculated Measure Result is Based in Dimension Picked


Calculated Measure Result is Based in Dimension Picked

Author
Message
demitri_baran
demitri_baran
Grasshopper
Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)

Group: General Forum Members
Points: 11 Visits: 117
Dear All,

I have the following Case ... In the Fact:

Person Name Plan ID Earned Days
John Smith A 10
John Smith B 10
John Smith C 10

The requirement is to created a "calculated measure" based on Earned Days...
Its called Exposed Population = Earned Days / 365

The result of this measure is based on the dimension picked

if Dimension is Person then Exposed Population = 10 / 365
(Noticed that 10 is picked only once)

If Dimension is Plan then Exposed Population = (10+10+10) / 365
(Noticed that 10 is picked 3 times)

I would like to have a single calculated measure that deals with this ... I am a bit naive in MDX

Help is kindly appreciated

Regards
Demi
cees van diermen
cees van diermen
Valued Member
Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)

Group: General Forum Members
Points: 65 Visits: 83
Hello Dimitri,

Can you provide more details.

John Smith has 30 Earned Days in total (Right ?),

I would expect that if I select John Smith in the Dimension Person I would get 30 and when I select a specific Plan, lets say A, i would get 10. However that's not what I get from your post.

What are the outcomes you want to see ? It would be helpfull if you post the calculated measure

regards,

Cees
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