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

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
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.