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
SimonWeber
Frequent Visitor

DAX - Switch, True Formula - What is wrong with my code?

Hello again

 

I have an issue with the following Switch/True formular.

 

If I write only this:

Switch-True-Formular_Working.jpg

it is working

 

If I write it like this:

Switch-True-Formular_NotWorking.jpg

it is not working!

 

There error message says: The Switch-Function doesn't support comparison between True/False and Text.

Has somebody any idea what I do wrong? I found in the net a lot of example and all of them looks like my code.

Example Internet.jpg 

 

Kind Regards,

Simon

 

 

1 ACCEPTED SOLUTION

My guess is you have cut and paste incorrect inverted commas. Look at them in the post above, some are smart quotes and some are not. 

 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

View solution in original post

2 REPLIES 2

My guess is you have cut and paste incorrect inverted commas. Look at them in the post above, some are smart quotes and some are not. 

 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

Now I see my error!

 

It should only be

 ..."30";"MDE-Laufzettel";"nicht HWZ

instead of

 ...."30"; "30";"MDE-Laufzettel";"nicht HWZ

 

Thanks a lot... Now it is working 🙂

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.