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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Comparing true/false for text, error

Hi, 

I simply want to see if these to if-conditions are true. Both are set as text:
= IF(
CS_ApprovalDocumentApprovalEntries[SequenceNo] = "2" &
RELATED(purchaseDocuments[status]) = "Pending Approval";"Ja";"Nej")

But I get this message "DAX comparison operations do not support comparing values of type True/False with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values."
1 ACCEPTED SOLUTION
Anonymous
Not applicable

You used & instead of &&

& is the text concatenation operator

https://docs.microsoft.com/en-us/dax/dax-operator-reference

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , If the above solution has solved your issue, can you mark it as a solution.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Sorry, yes it worked and I can see you already marked it as a solution 🙂

Anonymous
Not applicable

You used & instead of &&

& is the text concatenation operator

https://docs.microsoft.com/en-us/dax/dax-operator-reference

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors