Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi again,
Hi @RasmusN532 ,
Your issue arises because when you filter only the Actual months (202501 and 202502), your CALCULATE([Forecast], Forecast[Forecast_ID]= "FC2501") still applies but doesn't return any values for those months, and thus the measure evaluates to blank.
You need to explicitly handle cases where only actual months are selected. Try using IF to check whether data exists for actuals before summing them.
Fixed Measure:
FC2501_U =
VAR Actuals =
CALCULATE(
[GL],
'1.Calendar_Map'[PeriodValue] < 202503,
'1.Calendar_Map'[Year] = 2025
)
VAR Forecasts =
CALCULATE(
[Forecast],
Forecast[Forecast_ID] = "FC2501"
)
RETURN
IF(NOT(ISBLANK(Actuals)), Actuals, 0) +
IF(NOT(ISBLANK(Forecasts)), Forecasts, 0)
If the issue persists, try visualizing both Actuals and Forecasts separately in a table to verify what each part of the measure returns for different selections.
Please mark this post as solution if it helps you. Appreciate Kudos.
Thank you for the answer. Now it seems to work with the months 202501 and 202502. However, I am using this in a Switch measure:
I´ve seperated the actual measure as below:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
19 | |
12 | |
10 | |
9 | |
9 |
User | Count |
---|---|
17 | |
14 | |
12 | |
10 | |
9 |