简体   繁体   中英

POWER BI - Show/hide charts depending value

Is it possible to decide whether to show or hide a chart depending of some value ?

For example, if a row of my column A is greater or equal to 10, we display chart C1 and hide chart C2.

Conversely, if the value in colum A is less than 10, we display chart C2 and hide chart C1.

My research on internet didn't pay.

Not without severe DAX trickery and formatting black magic.

You could have a DAX measure that switches the output based on a value, something like..

If([DaxToFindAMaxMoreThan10] >= 10, [ChartValues], BLANK())

OR

Switch([DaxToFindAValue], "X", [Dax1], 999, [Dax2], BLANK())

And then the Charts those formulas are in would need minimal Axis features so as to blend in to the background canvas..

Your best bet is a/set of button(s) hooked up to Bookmarks that un/hide your visuals.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM