Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Solved! Go to Solution.
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.
Hi @RasmusN532
Thank you for being part of the Microsoft Fabric Community.
As highlighted by @FarhanJeelani , the proposed approach appears to effectively address your requirements. Could you please confirm if your issue has been resolved
If you are still facing any challenges, kindly provide further details, and we will be happy to assist you.
If the above information is helpful, please give us Kudos and mark the response as Accepted as solution.
Best Regards,
Community Support Team _ C Srikanth.
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:
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 21 | |
| 10 | |
| 8 | |
| 8 |