Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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 Year])
BAR _Startdate = Edate(_min,48)
Return
Calculate(Sum(BM Historic [Value]),Max(_startdate),-6,month))
Solved! Go to Solution.
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.
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.
Hi Denis, What i was trying to do is start my rolling 6 months from date index number 25 which is Feb 2017 and ignore all dates before this date..... Is this possible?
Hey @Anonymous ,
I don't know what you mean with index number 25 as that's also not in your file.
But you can set the date in the measure above. Instead of "MAX('DateTable'[Date])" you can also just write "DATE( 2017, 2, 25)" as start date.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
78 | |
54 | |
39 | |
35 |
User | Count |
---|---|
102 | |
84 | |
48 | |
48 | |
48 |