Hello,
How can i implement lastnonempty for a dimension that is not a time dimension?
Example: I have a Client, Type and Time dimension and a facttable FactClient; and i want to apply the lastnonempty measure to the Client dimension not to the Time dimension. How can i do that?
If you need more information, please ask.
Thank you,
Vulcano
Sorry, i forgot the example:
The fact table:
Client Type Date Value
John Type1 1 Aug 2006 5
John Type2 5 Aug 2006 3
John Type2 25 Aug 2006 7
Mary Type1 3 Aug 2006 1
Mary Type2 7 Aug 2006 9
Mary Type1 15 Aug 2006 15
Eric Type1 20 Aug 2006 3
I want to get at the end of the month:
Month Aug 2006 John Type2 10
Mary Type1 15
Eric Type 1 3
Thank you,
Vulcano
|||Given that the last entry for John is:
John Type2 25 Aug 2006 7
why is the month-end total for John 10, rather than 7?
Month Aug 2006 John Type2 10|||Thanks, for your reply Deepak
The entry for John at the end of month is 10, because the last 2 entries for John have TYPE2 (3+7=10).
I need to take the last entries for a client that have the same TYPE.
Thank you
sql
No comments:
Post a Comment