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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
How to replicate the above formula in Dax.
I tried like this
"Var Forecast total = Sumx([Table], ISBLANK([Actual]),'Date'[FiscalMonth]]
IF(ISBLANK([Actual]),[Forecast total],BLANK())
but i am not able to get the excepted results.
Can any one provide me the Dax query for the abouve casestudy.
Hi @hari_bi,
Please share more details informations to help us test and coding formula. Maybe you can try to use below measure if it works on your side:
Measure = VAR currdate = MAX ( Tabl[Date] ) RETURN IF ( SELECTEDVALUE ( Table[Actual] ) = BLANK (), CALCULATE ( SUM ( Table[Forecasts] ), FILTER ( ALLSELECTED ( Table ), [Date] >= DATE ( YEAR ( currDate ), MONTH ( currDate ), 1 ) && [Date] <= DATE ( YEAR ( currDate ), MONTH ( currDate ) + 1, 1 ) - 1 ) ), BLANK () )
Regards,
Xiaoxin Sheng
Hi Xiaoxin Sheng,
Thank you for your replay.
Here i am sharing my PBI report with you and please find the Actual Vs Forecast page , exactly my requirment is available in Table visual.
IF Actual = null , i need to sum the forecast values from that perticular month to till end of that year.
https://drive.google.com/file/d/1ktOVLG7FzQbsnsX7h9GgZZ4qHcbioFZW/view
Thank you in Advance.
Regards,
Hari.