Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.