Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
hari_bi
Helper I
Helper I

If Actual value is null then need to sum forecast values for that month to till the fiscalyear end.

 

YTG.PNG

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.

4 REPLIES 4
Anonymous
Not applicable

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.

Anonymous
Not applicable

Hi @hari_bi,


The link you share seems still in private so I can't get it.

 

Regards,
Xiaoxin Sheng

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors