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 Project cost data for Month 1 and Month 2 in a single table.
I have a table visual with a Column [Project Name] and a Measure [forecastVariance].
My calculation for the [forecastVariance] Measure is:
forecastVariance =
VAR Month1 = MIN(Plan[Period])
VAR Month2 = MAX(Plan[Period])
VAR SUM_Month1 = CALCULATE(SUM(Plan[ForecastTotal]),FILTER(Plan,Plan[Period]=Month1))
VAR SUM_Month2 = CALCULATE(SUM(Plan[ForecastTotal]),FILTER(Plan,Plan[Period]=Month2))
Return
SUM_ Month1 - SUM_Month2
To list only the Projects where the Forecast has increased, I have a filter on the table visual of [forecastVariance] Measure is < 0.
This works perfectly well in a Table or Matrix visual as above, however my problem is that I need the total value from the table/ matrix above (i.e. -10.8m) as a measure. This is so that I can refer to the total value dynamically within a text visual, e.g. Text = “The sum of all Forecast Increases is “ & [Measure].
Is this achievable and if so, with which function(s)?
Thanks
Solved! Go to Solution.
@wmcintosh You *should* just be able to use the measure just like you reference assuming that there are no filters acting on the text visual. Otherwise, you can potentially do this:
forecastVariance All = CALCULATE([forecastVariance], ALL('Plan'))
@wmcintosh You *should* just be able to use the measure just like you reference assuming that there are no filters acting on the text visual. Otherwise, you can potentially do this:
forecastVariance All = CALCULATE([forecastVariance], ALL('Plan'))
I do have filters but the above worked once I replicated the Filter before the All. Perfect, thanks @Greg_Deckler!
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 |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |