Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hello all,
I have something pretty simple i guess, but i can not figure this out how with DAX.
I am looking for a result "Yes"or "No" as text.
On Time | Correction | Result |
Yes | Yes | Yes |
Yes | empty | Yes |
empty | empty | empty |
Already tried this with the "IF"/"AND" function and the "SWITCH" function like this.
The error i become is:
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.
I do not understand this error because i am not working with any True/False type.
Only with text("Yes"/"No" or an empty cell)
What do i miss?
Thank you.
Gr Alfons
@Anonymous Any updates?
Hi, @Anonymous
Is your problem been solved? Have you checked the data and data type of the Tbl[Correction] column in PQ?
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
you can do it like this:
Result = SWITCH(TRUE(),
MIN('Tbl'[On Time]) = "Ja", "Ja",
MIN('Tbl'[On Time]) = " ", " ",
MIN('Tbl'[On Time]) = "Nee" && MIN('Tbl'[Correction]) = "Ja", "Ja"
)
With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)
Looks ok from here so you'll have to debug at your side. Presumably it's the 3rd clause causing problems. You can comment it out to test.
Have you definitely got && as the logical 'and'? Maybe you could test with e.g.
Hello HotChilli,
Thanks,
But unfortunately, i can not solve it.
I tried it with your proposal.
Result = Switch(TRUE(,
Tbl[On Time]="Ja","Ja",
Tbl[On Time]="","",
AND(Tbl[On Time ]="Ja",Tbl[Correction]="Ja"),"")
Error:
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.
If i am leaving the last part of the formula from the "AND" function away, it works find.
But of couse misses the last part.
So is has something to do something with this combined conditions.
Do you have other options?
Gr
Sorry ,
First On Time value in table has to be "No".
Gr,
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.