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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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