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

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
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 360 members 3,657 guests
Please welcome our newest community members: