Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all,
I have used this formula to produce a 12 month moving average line:
Solved! Go to Solution.
Hi @Anonymous
You could use an IF function to test your 'Actual' measure and if it's blank, return blank, otherwise calculate your 12 month average.
Something like this:
12m Rolling =
VAR Actual = [Actual Measure]
VAR Result =
IF (
ISBLANK ( Actual ),
BLANK (),
CALCULATE (
CALCULATE (
[in M],
DATESINPERIOD ( dim_Calendar[Date], MAX ( dim_Calendar[Date] ), -12, MONTH )
),
Ranked_Version[Version] = "Actual"
) / 12
)
RETURN
Result
Hi @Anonymous
You could use an IF function to test your 'Actual' measure and if it's blank, return blank, otherwise calculate your 12 month average.
Something like this:
12m Rolling =
VAR Actual = [Actual Measure]
VAR Result =
IF (
ISBLANK ( Actual ),
BLANK (),
CALCULATE (
CALCULATE (
[in M],
DATESINPERIOD ( dim_Calendar[Date], MAX ( dim_Calendar[Date] ), -12, MONTH )
),
Ranked_Version[Version] = "Actual"
) / 12
)
RETURN
Result
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
94 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |