This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi!
I need to change the legend text of my graphic, it has numbers from 0 to 2, and i need to change to "completed" when is 0, "incompleted (back to menu)" when is 1, and "incompleted (logout)" when is 2.
img of the graphic, thanks in advance!
Solved! Go to Solution.
Hi @FrancoPS ,
You can create a calculated column using SWITCH. Be careful not to add quotation marks around the numbers.
Column = SWITCH([legend],0,"completed",1,"incompleted (back to menu)",2,"incompleted (logout)")
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @FrancoPS ,
You can create a calculated column using SWITCH. Be careful not to add quotation marks around the numbers.
Column = SWITCH([legend],0,"completed",1,"incompleted (back to menu)",2,"incompleted (logout)")
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This was exactly what I needed, thank you very much!
@FrancoPS Depending on your data, add a column in your data model to use a SWITCH statement to return the desired label based upon the column used in your legend. Use this column instead of the column you are currently using.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |