Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I am trying to display blank visuals until user make a selection from the slicer. Using the below two metrics I can make the visuals blank and display the data with single selection but my challenge is to make it work with MULTIPLE SELECTIONS. My slicer column is being displayed in the Matrix visual as one of the fields, this might be the reason it's not working the way it's supposed to, with my first metric.
Using Cross Filter: = IF(ISCROSSFILTERED(Table[Column_Name]),"Y",BLANK())
With the second metric I could only make it for a single selection:
Using Distinct Count: = IF(CALCULATE(DISTINCTCOUNT(Table[Column_Name]),ALLSELECTED(Table[Column_Name]))=1,"Y","N")
Solved! Go to Solution.
HI @Anonymous,
You can follow below steps to achive your requiremetn:
1. Create a measure to mark tag based on selected records .
Using Cross Filter: = IF ( COUNTROWS(ALLSELECTED ( 'CALENDAR' )) <> COUNTROWS(ALL ( 'CALENDAR' )) && COUNTROWS ( ALLSELECTED ( 'CALENDAR' ) ) > 1, "Y", "N" )
2. Add above measure to visual level filter, then switch filter mode to 'is' to filter "Y" tag.
Result:
Regards,
Xiaoxin Sheng
Hi,
Used this measure to filter :
sing Cross Filter: = IF ( COUNTROWS(ALLSELECTED ( 'CALENDAR' )) <> COUNTROWS(ALL ( 'CALENDAR' )) && COUNTROWS ( ALLSELECTED ( 'CALENDAR' ) ) > 1, "Y", "N" )
It works fine on Table and Pie viz. but cannot apply to cards, linear guage visualizations. Is there any ither measure that'll work for all visualizations?
Also, is it possible that measures cannot be filtered by another measure?
Please help.
Regards,
Pooja
HI @Anonymous,
You can follow below steps to achive your requiremetn:
1. Create a measure to mark tag based on selected records .
Using Cross Filter: = IF ( COUNTROWS(ALLSELECTED ( 'CALENDAR' )) <> COUNTROWS(ALL ( 'CALENDAR' )) && COUNTROWS ( ALLSELECTED ( 'CALENDAR' ) ) > 1, "Y", "N" )
2. Add above measure to visual level filter, then switch filter mode to 'is' to filter "Y" tag.
Result:
Regards,
Xiaoxin Sheng
This doesn't work for me 😞
Cause I amgetting N for every row
Awesome, It's working Pefectly. Thank you for the quick response and help @Anonymous
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
69 | |
64 | |
50 | |
36 | |
26 |
User | Count |
---|---|
86 | |
55 | |
44 | |
43 | |
36 |