cancel
Showing results for
Did you mean:
Highlighted
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

#### Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

#### Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

#### Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors (Last 30 Days)