Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
my columns that equal true/false are data type true/false and my number columns are data tpe text.
how do I check which is string and non-string?
hi, @yaya1974
use switch() function instead of IF.
like
bucket =
switch(true(),
'Open Sales 55 7 15 3'[Over 15 Days]=true,"over 15",
'Open Sales 55 7 15 3'[6 to 15 Days]=true,"6 to 15 days past due",
'Open Sales 55 7 15 3'[0 to 5 Days]=true,"1 to 5 days past due",
and continue ........)
Hi. I actually was just trying that. it seems to work, but got error now that states:
DAX comparison operations do not support comparing values of type True/False with value of type Text. Considering using VALUE or FORMAT function to convert one of the values.
Have any suggestions?
Thanks so much!!
Hi, @yaya1974
One of your column is type string and you compare it with non-string type column. So these problems occur so check it
my columns that equal true/false are data type true/false and my number columns are data tpe text.
how do I check which is string and non-string?
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 53 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 116 | |
| 105 | |
| 41 | |
| 34 | |
| 25 |