cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
SimonWeber Frequent Visitor
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

Accepted Solutions
Super User
Super User

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

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 a Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
2 REPLIES 2
Super User
Super User

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

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 a Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
SimonWeber Frequent Visitor
Frequent Visitor

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

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
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 204 members 2,376 guests
Please welcome our newest community members: