Forum Discussion
Rolling Interval Calculation
Hi Anonymous,
the correct way to handle this is through the creation of a Date dimension table but it does not look like it is the case for you?
I don't have a date dimension , but a date column in my Table
Power BI User
- LivioLanzo7 years agoSolution Sage
Anonymous
you need to start by creating one: http://radacad.com/create-a-date-dimension-in-power-bi-in-4-steps-step-1-calendar-columns
- Anonymous7 years agoNot applicable
Hi Liviolanzo,
I have created date dimension.
Now what do i need to do to calculate rolling interval.
Power BI User
- LivioLanzo7 years agoSolution Sage
Hi Anonymous
perfect! Now you can relate the Date dimension with the fact table if not already done. Afterwards you need to mark it as a Date table
Then you just need to change the filter within CALCULATE to point to the date dimension
DATESINPERIOD(DateTable[DATE],MAX(DateTable[DATE]),-60,DAY)