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.
I have a rolling monthly forecast formula showing monthly totals, but the Grand Total is incorrect. I cannot use SUMX(VALUES to correct this, as it will eliminate the forward projection on the forecast. Any suggestions please?
Spend Forecast based on last 3 Mo =
VAR Spend1MonthAgo = CALCULATE([Received Spend], DATEADD('DimDate1'[Date],-1, MONTH ) )
VAR Spend2MonthsAgo = CALCULATE([Received Spend], DATEADD('DimDate1'[Date],-2, MONTH ) )
VAR Spend3MonthsAgo = CALCULATE([Received Spend], DATEADD('DimDate1'[Date],-3, MONTH ) )
RETURN DIVIDE( Spend1MonthAgo + Spend2MonthsAgo + Spend3MonthsAgo, 3 , 0 )
Result is correct subtotals, but incorrect Grand Total: (Should be $21,627 not $32,168)
Solved! Go to Solution.
You may need to create a second measure that references the main measure. Assuming you have a dimension column like DimDate[Month] in your visual, you could try this measure:
Rolling Avg Cost 3 Mo =
SUMX ( VALUES ( DimDate[Month] ), [Spend Forecast based on last 3 Mo] )
Proud to be a Super User!
You may need to create a second measure that references the main measure. Assuming you have a dimension column like DimDate[Month] in your visual, you could try this measure:
Rolling Avg Cost 3 Mo =
SUMX ( VALUES ( DimDate[Month] ), [Spend Forecast based on last 3 Mo] )
Proud to be a Super User!
Thank you very much this worked!!!
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 |
---|---|
110 | |
94 | |
80 | |
67 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |