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! Learn more
Hi all,
I´m trying to work for the proper DAX to filter the values of my slicer as I don´t want to show all the slicer values options for a visual that has much fewer values than the slicer is showing.
I`ve been reading that is possible to use a Dax for that and add it as a filter on the slicer visual.
I tried to use the below DAX on the "Filter on this visual" for the slicer but the values of the slicer are not reducing to show just Red, Yellow and Green.
DAX:
Filter colours= CALCULATE(COUNTROWS(TABLE),FILTER(TABLE,TABLE[COLUMN] IN { "Red", "Yellow","Green"}))
Thanks in advance for help!
Solved! Go to Solution.
Hi, @maneschr2022
If you are using a calculated column, please try the following formula:
Filter colours =
IF ( 'TABLE'[COLUMN] IN { "Red", "Yellow", "Green" }, 1, 0 )Then drag this field to visual filter pane as below:
Best Regards,
Community Support Team _ Eason
Hi, @maneschr2022
If you are using a calculated column, please try the following formula:
Filter colours =
IF ( 'TABLE'[COLUMN] IN { "Red", "Yellow", "Green" }, 1, 0 )Then drag this field to visual filter pane as below:
Best Regards,
Community Support Team _ Eason
@maneschr2022 , Use this measure in the visual level filter of slicer and check for non blank value
 
					
				
				
			
		
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.
 
            | User | Count | 
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | 
| User | Count | 
|---|---|
| 23 | |
| 14 | |
| 11 | |
| 10 | |
| 9 |