Forum Discussion
Anonymous
5 years agoNot applicable
Rolling 6 months
Hi Experts Trying to work out the rolling 6 months to start at a specific date in my table - my measure is (but i cannot see the error) Rolling 6 mnth = VAR _Min = Min(BM Historic[Month Yea...
- 5 years ago
Hey Anonymous ,
I didn't understand your DAX measure and I also think it can't work as there are some errors.
If you want to get rolling 6 months data, you should try the following approach:
Rolling 6 mnth = CALCULATE( Sum('BM Historic'[Value]), DATESINPERIOD( 'DateTable'[Date], MAX('DateTable'[Date]), -6, MONTH ) )Be aware, that you need a proper date table in order for the time intelligence functions to work.
If you need any help please let me know.If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍Best regardsDenisBlog: WhatTheFact.biFollow me: twitter.com/DenSelimovic
selimovd
Most Valuable Professional
5 years agoHey Anonymous ,
I didn't understand your DAX measure and I also think it can't work as there are some errors.
If you want to get rolling 6 months data, you should try the following approach:
Rolling 6 mnth =
CALCULATE(
Sum('BM Historic'[Value]),
DATESINPERIOD(
'DateTable'[Date],
MAX('DateTable'[Date]),
-6,
MONTH
)
)
Be aware, that you need a proper date table in order for the time intelligence functions to work.
If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
Best regards
Denis
Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic
Anonymous
5 years agoNot applicable