![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have the granularity in fact table as Activity,Customer,Time Certain defined activities are created which are done at the customer Store like checking the retaiol Audit which have measures like count of Product,Displayed price of the product etc. I wanted to get the Last visit made to the selected customer as calculated member in Activity dimension. This Last visit is the Max date in the Fact table for this customer. If I select this calculated member stored in the Activity dimension it should show me all the measures for the selected customer for the Last visit date done to this customer. Any help is highly appreciated regds |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
How is timeid exposed in the cube - is it a key or member property of a Time dimension? Max() returns the highest value of the second argument (numeric expression) over the first argument(set). So, in this case, how does the expression: [Time Version].&[1] return a timeid value? - Deepak *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#5
| |||
| |||
|
| With Member [Measures].[TimeKey] as |
#6
| |||
| |||
|
|
for the selected customer i need Max timeid from the cube using MDX i was trying this query iif([SALES FORCE].CurrentMember.Level.Ordinal=[SALES FORCE].[VISIT TO CUSTOMER].Ordinal,Max(descendants([Time].[Weekly].currentmember, [Time].[Weekly].[Date]) , [Time Version].&[1]),Null) but this gives me the timeid which has max records rather than the Max timeid but i want something like this timeid Customer_id Activity_id unit_sales ====== =========== ========== =========== 1511 1 2 100 1511 1 3 200 1512 1 2 50 1513 1 2 20 I want 1513 to be displayed but the above query gives me 1511 Please help tawargerip (AT) hotmail (DOT) com (Prasanna) wrote in message news:<d4b0bad7.0408260410.355a76e2 (AT) posting (DOT) google.com>... Hi, I have the granularity in fact table as Activity,Customer,Time Certain defined activities are created which are done at the customer Store like checking the retaiol Audit which have measures like count of Product,Displayed price of the product etc. I wanted to get the Last visit made to the selected customer as calculated member in Activity dimension. This Last visit is the Max date in the Fact table for this customer. If I select this calculated member stored in the Activity dimension it should show me all the measures for the selected customer for the Last visit date done to this customer. Any help is highly appreciated regds |
![]() |
| Thread Tools | |
| Display Modes | |
| |