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

True/False with Text in a DAX if statement

Hi,

 

I have a DAX formula below that I'm trying to calculate Disputes if the Charger is false and the Status is "Approved" 

 

Approved Charge = If( FullError[Charge]=FALSE() & FullErrorl[Status]="Approvedl", FullError[Disputes],0)
 
When I try this I'm getting a error Can't type True/False with Text. 
 
Any help ? 
1 REPLY 1
JarroVGIT
Resident Rockstar
Resident Rockstar

Well couple of things actually. Combining two expressions to be evaluated by an IF() function require '&&' operator, not just '&'. 

Your error indicates that your FullError[Charge] column is not of a boolean type. Can you confirm the data type of this column? (and of the other columns, just in case this is not that?)? Is this a calculated column or a measure? 

 

A screenshot of your Query Editor screen / data model would help a lot.

 

Kind regards

Djerro123

-------------------------------

If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.

Keep those thumbs up coming! 🙂





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.