Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
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 in advance
Solved! Go to Solution.
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
Proud to be a Datanaut!
Hello BA, thanks for your reply !
I fixed my queiry as per your comments, but I still have the same issue.
Hi @Hadill ,
Can you post the code as it appears now after the changes please?
Pete
Proud to be a Datanaut!
Hi @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?
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
Proud to be a Datanaut!
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 :
Hi @Hadill ,
Try making the following changes to remove the error:
1) Make sure that your third reference to [Funnel Status] is spelt correctly.
2) Make sure there is a space between "Committed" and 'and'
3) Make sure the keyword 'if' is lower case
4) Remove the semicolon ';' at the end
I also think you will need to correct your evaluation as a single field can't be "Booked" AND "Committed" AND "Signed" all at the same time - you may need the OR operator here.
Pete
Proud to be a Datanaut!
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |