cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CTW Frequent Visitor
Frequent Visitor

Comparing column values with measure

Hi Power BI Professionals:

 

I'm trying to compare my measure with my columns to get another calculated column:

Capture.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FrPY is a measure and Goal is a column. What I need is for Status (calculated column) to compare FrPY and Goal where If(frPY<goal) then return a 1.

 

not all rows have a goal so I have filtered those away in the report level filter (if it affects the calculation)

 

The reason I want to do this is because conditional formatting cannot be set based off other columns. (I want to do a traffic light color if frpy<goal =red, frpy=goal = green

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Comparing column values with measure

@CTW,

 

You may add a measure as follows.

Measure =
IF ( [FrPY] < MAX ( Table1[Goal] ), 1, 0 )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Comparing column values with measure

@CTW,

 

You may add a measure as follows.

Measure =
IF ( [FrPY] < MAX ( Table1[Goal] ), 1, 0 )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
CTW Frequent Visitor
Frequent Visitor

Re: Comparing column values with measure

Thanks that worked!

 

sgovindarajan Frequent Visitor
Frequent Visitor

Re: Comparing column values with measure

@v-chuncz-msftThis worked for me. Can you tell me how adding MAX works though?

Helpful resources

Announcements
Coming Soon: T-Shirt Design Contest

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors