Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I have a calculated column using the formula below.......the result returned is not as expected.
The value returned for Jan 23 - Sep 23 should be "Forecast" but its returning "Actual"??
Can anyone help? Thanks
Solved! Go to Solution.
Hi @Anonymous ,
Try this instead:
ACT/FC =
VAR _FPDate = DATE([FP Year], [FP Month], 1)
VAR _CurrDate = DATE([Current Year], [Current Month], 1)
RETURN
IF(_FPDate < _CurrDate, "Actual", "Forecast")
Thanks but that hasnt worked either, result below using AND
Hi @Anonymous ,
Try this instead:
ACT/FC =
VAR _FPDate = DATE([FP Year], [FP Month], 1)
VAR _CurrDate = DATE([Current Year], [Current Month], 1)
RETURN
IF(_FPDate < _CurrDate, "Actual", "Forecast")
Thanks but that didnt work either, delivered the same result as the original formula
Sorry made a typo, yes this formula has worked ok, thanks for your help
Hi @Anonymous ,
I think you need to adjust your formula to use AND instead of OR:
ACT/FC = IF([FP Year] < [Current Year] && [FP Month] < [Current Month], "Actual", "Forecast")
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 53 | |
| 42 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 122 | |
| 106 | |
| 47 | |
| 30 | |
| 24 |