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 my matrix with conditional formatting which works fine, but I would love to be able to give the user the option of turning it on and off to just see the figures without the formatting, where required.
Can this be done without using bookmarks?
Thanks
Liam
Solved! Go to Solution.
Hey @lherbert501 ,
you can achieve what your are looking for.
Create a simple table with two values: On / Off. Use the column as a slicer, I recommend making the slicer a single select slicer.
Then create a measure that returns a hexcode like "#ffa500" for orange or what ever you need to create your conditional formatting. Wrapt this measure into a second measure like so:
apply conditional formatting =
var on_off = selectedvalue('<tablenameOnOff>{On/Off] , "Off" )
return
if(on_off = "Off" = "On" , [your measure that returns the hexcode] , blank())
Use this measure for the conditional formatting, make sure that you select the "Field value" option as the format style and then select the above measure [apply conditional formatting].
Hopefully, this provides what you are looking for, to tackle your challenge.
Regards,
Tom
Hey @lherbert501 ,
you can achieve what your are looking for.
Create a simple table with two values: On / Off. Use the column as a slicer, I recommend making the slicer a single select slicer.
Then create a measure that returns a hexcode like "#ffa500" for orange or what ever you need to create your conditional formatting. Wrapt this measure into a second measure like so:
apply conditional formatting =
var on_off = selectedvalue('<tablenameOnOff>{On/Off] , "Off" )
return
if(on_off = "Off" = "On" , [your measure that returns the hexcode] , blank())
Use this measure for the conditional formatting, make sure that you select the "Field value" option as the format style and then select the above measure [apply conditional formatting].
Hopefully, this provides what you are looking for, to tackle your challenge.
Regards,
Tom
Hi @TomMartens
Thanks for this. If my formatting was 4 ways like below, could this still be applied?
Thanks
Liam
Hey @lherbert501 ,
sure, you can either use a nested IF or switch in the branch that returns one of the four shades of red.
Regards,
Tom
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 43 | |
| 39 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 30 | |
| 23 |