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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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
September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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