Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.