Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

Calculated column or measure based on equality

Hello,

 

I would like to set some measure or calculated column based on equality of these three items in the matrix:

eq.png

In other words - find 12:31, 22:31, 32:31 and compare with each other. Then store.

Then I plan to add color formatting. But first, need to write a clause in DAX or M. How this could be done?

Looking forward for your suggestions. Thank you.

 

Also adding better example of what I need:

eq.png

And a link to a project file:

Project file with data and matrix

2 REPLIES 2
Icey
Community Support
Community Support

Hi @Anonymous ,

I don't quite understand what you mean. Could you build a more detailed and concrete example to show what you want?

 

Best Regards,

Icey

Anonymous
Not applicable

I would like to compare fields shown on the screenshots and if they are equal set value of the separated column (let's call it "State") or measure to some value like '1'.

My pbi example has been updated in the link upwards.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.