Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi,
I have a client requirement. When a filter selected with more than one value then card visual should not display any data.
For example In the below model, If only one Month(i.e. January 2020) is selected then card visual should be displayed otherwise it should not display any data.
Note: All the filters should be in filter pane only.
Can you plese help me out?
Solved! Go to Solution.
@vinothkumar1990 , isfiltered and hasonevalue can help
measure =
var _cnt = calculate(distinctcount(Table[Month year]), allselected(Table))
return
if(isfiltered (Table[Month year] ) && _cnt >1 , blank(), [measure])
https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/
I create a sample, and you can try like this.
Measure =
var _count=CALCULATE(DISTINCTCOUNT(ProductDetails[brand]),ALLSELECTED(ProductDetails))
return
IF(_count<>1,BLANK(),"measure")
result:
Best Regards,
Community Support Team _ Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
I create a sample, and you can try like this.
Measure =
var _count=CALCULATE(DISTINCTCOUNT(ProductDetails[brand]),ALLSELECTED(ProductDetails))
return
IF(_count<>1,BLANK(),"measure")
result:
Best Regards,
Community Support Team _ Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
@vinothkumar1990 , isfiltered and hasonevalue can help
measure =
var _cnt = calculate(distinctcount(Table[Month year]), allselected(Table))
return
if(isfiltered (Table[Month year] ) && _cnt >1 , blank(), [measure])
https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/
@amitchandak - Thanks for the help!
it worked when more than months are selected, but fails when nothing is selected or all are selected
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 53 | |
| 42 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 112 | |
| 106 | |
| 39 | |
| 36 | |
| 27 |