Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi, I have a problem with the switch formula.
I would like to list different margin groups.
I have included a separate table in the query, namely:
I have the following switch formula:
The problem is that the categories are not caught properly. For example, in a table I see someone with a 10% margin still listed with the from 15% and above.
How can I solve this? Thanks in advance!
Hi @rubayatyasmin,
Thank you for your reply.
I am quite new to Power BI and still have a lot to learn.
How do I check conditions from highest to lowest?
I do see that something goes wrong when I put it in an matrix. It looks like this:
How can I fix this?
Thanks in advance!
By try checking highest to lowest I meant to reverse your switch statements condition. Like write >15% first then <=10-15% then <= 8-10% and so on.
Proud to be a Super User!
Hi, @Saffira
try checking the conditions from highest to lowest.
Proud to be a Super User!
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 |
|---|---|
| 46 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 65 | |
| 31 | |
| 28 | |
| 24 |