cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sandeepjidagi Frequent Visitor
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
Bastien_O Frequent Visitor
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

View solution in original post

1 REPLY 1
Bastien_O Frequent Visitor
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

View solution in original post

Helpful resources

Announcements
New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

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

Difinity Conference

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

Top Solution Authors
Top Kudoed Authors (Last 30 Days)