Forum Discussion
If slicer not selected blank visual
Hi all,
I have two multi-row card visuals which i want to show blank if nothing is selected in slicer. I've noticed a bunch of people have asked the same thing, (why can we not have conditional visibility property on visuals like we have in SSRS properties???) however I can't seem to find a consistent uniform approach. Also other solutions involve if blank sum else 0 etc. I don't want to SUM anything just either show/hide customer and address record. What is the best way to do this?
- Anonymous5 years ago
Hi jhowe1 ,
Please use the following formula to create a measure
Measure = IF(ISFILTERED('Table'[ID]),1,0)And apply it to filter pane, set as "=1" like this:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
5 Replies
- amitchandak
Super User
jhowe1 , You have to this for all measures
new measure = if(isfiltered(Customer[Customer name]), [Measure], blank())
https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/
- jhowe1
Helper III
Sorry I need more detail than this, the two visuals I want to make blank are Customer and Address visual, taken from CustomerDim, AddressDim as highlighted in my post. There are no measures/calculations in these two visuals. Where do I create this 'isfiltered' measure in Customer and Address? Please provide steps. Thanks.
- AnonymousNot applicable
Hi jhowe1 ,
Please use the following formula to create a measure
Measure = IF(ISFILTERED('Table'[ID]),1,0)And apply it to filter pane, set as "=1" like this:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- jhowe1
Helper III
Finally managed to get back to this, a picture tells a thousand words thank you. A conditional visibility property on the visual would still be nice like we have in SSRS instead of these workaround solutions but works great will do for now.
- AnonymousNot applicable
Hello, I have the same situation I have State column and If slicer is not selected I want my map to be blank? Thank you in advance.