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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Elofly
Frequent Visitor

Dax formula "IF" - Condition that 2 texts are different

Hi everyone!

I am trying to set up a formula for a new measure with a IF condition.

I have actually 2 columns: Actual Room Name and New Room Name both with text values.

I would like to add a column that identifies when the Actual Room Name is different from the New Room Name.

And I was thinking using the IF value like I use in Excel...

 

Could you help me to redact the formula?

 

Thanks a lot!

 

Elofly

2 ACCEPTED SOLUTIONS
coskuersanli
Resolver III
Resolver III

Hi @Elofly 

 

You may use SELECTEDVALUE().

 

IF(SELECTEDVALUE(actual_room) = SELECTEDVALUE(new_room), True, False)

View solution in original post

coskuersanli
Resolver III
Resolver III

Or you can just use EXACT() and add a column 🙂

View solution in original post

3 REPLIES 3
Elofly
Frequent Visitor

Thank you so much!

coskuersanli
Resolver III
Resolver III

Or you can just use EXACT() and add a column 🙂

coskuersanli
Resolver III
Resolver III

Hi @Elofly 

 

You may use SELECTEDVALUE().

 

IF(SELECTEDVALUE(actual_room) = SELECTEDVALUE(new_room), True, False)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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