Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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")
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
89 | |
88 | |
82 | |
64 | |
49 |
User | Count |
---|---|
125 | |
111 | |
88 | |
69 | |
66 |