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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors