Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have a card that when you select a store from a slicer, I need it to show the first 3 months (or 90 days) of spend since the open date.
I have:
The Store Name and Open Date are in the same table. I've tried using DATESINPERIOD, but I keep using it incorrectly.
Thank You
Solved! Go to Solution.
@bcampbell2 , Try a measure like this with help from date table joined with open date
Rolling 3 = CALCULATE(sumX(values(Table[Store]), calculate(sum(Table[Spend Amount]))),DATESINPERIOD('Date'[Date ],Min('Table'[Open Date]),3,MONTH))
use base column for spend
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
@bcampbell2 , Try a measure like this with help from date table joined with open date
Rolling 3 = CALCULATE(sumX(values(Table[Store]), calculate(sum(Table[Spend Amount]))),DATESINPERIOD('Date'[Date ],Min('Table'[Open Date]),3,MONTH))
use base column for spend
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
That Works!!!!
User | Count |
---|---|
102 | |
92 | |
85 | |
78 | |
71 |
User | Count |
---|---|
113 | |
104 | |
101 | |
73 | |
65 |