The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.