Forum Discussion
DAX for Date Filter
Anonymous , try a measure like
Rolling 12 before 1 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],eomonth(MAX('Date'[Date]),-1),-12,MONTH))
Make sure you are using date table
Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4
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.
- Anonymous3 years agoNot applicable
Thank you! I will try and let you know.
- Anonymous3 years agoNot applicable
Hi, actually, I am sorry itβs not the Dax formula I need.
I need help with 2 things β can you please refer to the snippet of part of the Dax import query.
For the date part of the query (which I boxed in red), I need help to modify this part of the query so that:
- The output shows the date in date only format, not date/time;
- The output is for trailing 12 months + 13 days into the 13th month, so if I were pulling it today, the output would be for Jun 2022-May 2023 (trailing 12 months) + Jun 13, 14, etc.
Would you be able to help with this?
Thanks in advance!