trankillity
New Member
- Joined
- Jan 16, 2015
- Messages
- 11
Hi all,
I'm new to these forums and to BI analysis in general (having previously done manual calculations in SSMS based on requests).
I have a specific problem that I'm scratching my head over: From a fact table of line item sales with customer keys, how do I determine the average/total spent grouping by customers in a monthly period (either 30 days rolling or fixed fiscal month breaks)? I'm guessing it's likely to be some combination of SUMMARIZE, CALCULATE, SUMX and AVERAGEX but I'm having trouble wrapping my head around those concepts.
If someone has any idea on how this would best be accomplished and can explain why it works to increase my understanding, I'd be very appreciative.
The structure of the inputs are as follows:
'Purchase'
[CustomerKey]
[DateKey]
[TransactionID]
[StoreKey]
[SKU]
[Qty]
[Price]
'Calendar'
[DateKey]
[FullDate]
[FiscYear]
[FiscMonth]
I'm new to these forums and to BI analysis in general (having previously done manual calculations in SSMS based on requests).
I have a specific problem that I'm scratching my head over: From a fact table of line item sales with customer keys, how do I determine the average/total spent grouping by customers in a monthly period (either 30 days rolling or fixed fiscal month breaks)? I'm guessing it's likely to be some combination of SUMMARIZE, CALCULATE, SUMX and AVERAGEX but I'm having trouble wrapping my head around those concepts.
If someone has any idea on how this would best be accomplished and can explain why it works to increase my understanding, I'd be very appreciative.
The structure of the inputs are as follows:
'Purchase'
[CustomerKey]
[DateKey]
[TransactionID]
[StoreKey]
[SKU]
[Qty]
[Price]
'Calendar'
[DateKey]
[FullDate]
[FiscYear]
[FiscMonth]