cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

Boolean Output using Calculated Measure

Hi Team,

 

Below is my data set. I have 2 calculated measures. Please advice how to achieve CALCULATED MEASURE 2

CALCULATED MEASURE 1: 

Max of COLUMN C by COLUMN A and COLUMN B

 

CALCULATED MEASURE 2:

COLUMN C= CALCULATED MEASURE 1

 

Data Set:

Boolean Measure.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Boolean Output using Calculated Measure

@BSM1985 

can we create two columns for this?

Column = CALCULATE(MAX('Table'[C]),ALLEXCEPT('Table','Table'[A],'Table'[B]))

Column 2 = if('Table'[C]='Table'[Column],True,FALSE)

1.PNG

Did I answer your question? Mark my post as a solution.Appreciate your Kudos!
Proud a to be a Datanaut!
Thanks and BR
Ryan

View solution in original post

3 REPLIES 3
Highlighted
Super User III
Super User III

Re: Boolean Output using Calculated Measure

@BSM1985 

can we create two columns for this?

Column = CALCULATE(MAX('Table'[C]),ALLEXCEPT('Table','Table'[A],'Table'[B]))

Column 2 = if('Table'[C]='Table'[Column],True,FALSE)

1.PNG

Did I answer your question? Mark my post as a solution.Appreciate your Kudos!
Proud a to be a Datanaut!
Thanks and BR
Ryan

View solution in original post

Highlighted
Helper IV
Helper IV

Re: Boolean Output using Calculated Measure

Thanks a lot @ryan_mayu ,

 

Will it be possible to have this solution in 1 calculated measure for 2 reasons below?

1. We have very big model which is of 500 MB in size. When I tried with calcualted field which is the final field, its keep on loading for long time

2.As per client request, we would like to minimize the number of calcualted fields.

 

Please advice if we can achieve this with 1 calculated measure. Thank you.

Highlighted
Community Champion
Community Champion

Re: Boolean Output using Calculated Measure

@BSM1985 

Here are the 2 measures 

 

Measure 1 = 

CALCULATE(
    MAX('Table'[COLUMN C]),
    ALLEXCEPT('Table','Table'[COLUMN A],'Table'[COLUMN B])
)
Measure 2 = 
IF(
    MAX('Table'[COLUMN C] ) = [Measure 1],
    TRUE(),
    FALSE()
)

 

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Upcoming Events

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors