March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I am hoping that someone can help me. I have written a measure to return the 12mma (12 month moving average) value which is in the images attached. The 12mma shows in two ways, on the card (circled in red) and on the graph as the light blue line.
The measure works correctly as it shows on the graph (light blue line) correctly. If I specifically select a month on my graph it also shows the correct value in the card. However, the problem I am having is the value in the card is not showing the correct value for the most recent month if I do not select a specific month on my graph.
I have tried:
Is there a way to write a new measure to determine the most recent value of my existing measure if I have not selected a specific month? If I have selected a specific month then just return the measured value (how it already works).
Sorry if my explanation is confusing, happy to explain further if needed. I have attached images for reference.
The first image shows when nothing is selected. The circled value in the card should be 4,744 (as shown in the second image when I selected March).
@Anonymous , Have you created a measure like
Rolling 12 = calculate(AverageX(Values('Date'[MONTH Year]),CALCULATE(sum(Sales[Sales Amount]))),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-12,MONTH))
@amitchandak This is the original measure I have created. As you can see the original measure is not a simple measure. This measure returns the correct result if the month is selected. It also returns the correct result for the graph. The problem is when it is in the card. The card does not show the most recent month.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
22 | |
19 | |
16 | |
9 | |
5 |
User | Count |
---|---|
37 | |
29 | |
16 | |
14 | |
12 |