Forum Discussion
Hadill
Helper I
4 years agoIf-else-else Error
I tried many ways to write the If- else quiery, and ever time I get the same error an I dont know the reason, I think I apply the right quirey. Is anybody have any explanation for that? Thanks i...
BA_Pete
Super User
4 years agoHadill
Helper I
4 years agoHi BA_Pete
here we are, I tried to change the code body.
I was wondering if there any thing have to be done with the settings to enable this case?
- BA_Pete4 years ago
Super User
Hi Hadill ,
Try pasting this into a new custom column window:
if [Funnel Status] = "Booked" or [Funnel Status] = "Signed" or [Funnel Status] = "Committed" then "Forecast" else "Active"Pete
- Hadill4 years ago
Helper I
Hello BA_Pete
Thanks a lot for your support, I tried to apply the SWITCH function insted, and it works perfectly !
I added a coulomn in DAX query edit as follow :
Forecast vs Active = SWITCH( TRUE(), [Wrong Funnel Status] = "Booked" || [Wrong Funnel Status] = "Signed" || [Wrong Funnel Status] = "Committed", "Forcasted", "Active")