Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
User | Count |
---|---|
77 | |
75 | |
46 | |
31 | |
28 |
User | Count |
---|---|
99 | |
91 | |
51 | |
49 | |
46 |