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
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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

October NL Carousel

Fabric Community Update - October 2024

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