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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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