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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.