cancel
Showing results for
Did you mean:
Frequent Visitor

## Help to create DAX formula

Hi Everyone,

Could you please how to achive below Logic using DAX Measure in Power Bi Desktop.

IFNULL(SUM
(

IF IsFuture = 0 THEN [Projected]
ELSEIF [IsFuture] = 1 AND [CalendarQuarter] = RIGHT([Forecast Scenario],1) AND [Is Latest Forecast] = 1
THEN [Projected]
ELSE [Forecast] end)

,0)
/SUM( [Forecast])

Thanks,

Sandeep

1 ACCEPTED SOLUTION

Accepted Solutions
Frequent Visitor

## Re: Help to create DAX formula

Hello @Sandeepjidagi,

Try this and say me if it works !

Column=

VAR __Hope = IF([IsFuture] = 0;[Projected]; IF(AND(AND([IsFuture] = 1;[Calendar Quater] = RIGHT([Forecast Scenario];1));[Is Lastest Forecast] = 1);[Projected];[Forecast]))

VAR __Help = IF(ISBLANK(__Hope);0;__Hope)

VAR __You = SUM([Forecast])

RETURN

DIVIDE(__Help;__You)

Regards,

Bastien

Frequent Visitor

## Re: Help to create DAX formula

Hello @Sandeepjidagi,

Try this and say me if it works !

Column=

VAR __Hope = IF([IsFuture] = 0;[Projected]; IF(AND(AND([IsFuture] = 1;[Calendar Quater] = RIGHT([Forecast Scenario];1));[Is Lastest Forecast] = 1);[Projected];[Forecast]))

VAR __Help = IF(ISBLANK(__Hope);0;__Hope)

VAR __You = SUM([Forecast])

RETURN

DIVIDE(__Help;__You)

Regards,

Bastien

Announcements