Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Hide table if value is not selected in any of the slicer

Hi All, 

 

I have 2 questions

 

1) I have 4-5 slicers and 1 table. By default if none of the values are selected in any of the slicers then table should not display any records. 

Need to show records only if the values in slicers have been filtered. 

 

2)Also can we restrict that table to show only if the number of records filtered less than 1000 records? 

 

Thanks

Prakash

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous 

Try adding a hidden column measure like this:

 

Measure = IF(COUNTROWS(ALLSELECTED((Table))) = COUNTROWS(ALL(Table)),BLANK(),1)

Will return blank when nothing is selected, otherwise returns a value. Blanks will not show up in your table so the table will be blank until something is selected. Hide the measure column by turning off word wrapping and shrinking the column until it it doesn't show.

 

And check this blog by Matt- https://insights.votivasoft.com/show-or-hide-a-power-bi-visual-based-on-selection/

 

Appreciate your kudos!! Mark my post as solution if this helps.

View solution in original post

4 REPLIES 4
ashlibek
Advocate I
Advocate I

Thank you so much, you made my day!

v-kelly-msft
Community Support
Community Support

Hi  @Anonymous ,

 

Is your issue solved now?

What suggested by @amitchandak  should be a good solution,if not,pls provide some data.

 

 


Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

amitchandak
Super User
Super User

@Anonymous , for the first one you can use isfiltered .

example final YTD = if(isfiltered(Date[Month Year]) || isfiltered(Date[Year]) || isfiltered(Date[Date]),[YTD Sales 1],[YTD Sales])

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

 

for the second one you need use rank or TOPN at visual level,

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@Anonymous 

Try adding a hidden column measure like this:

 

Measure = IF(COUNTROWS(ALLSELECTED((Table))) = COUNTROWS(ALL(Table)),BLANK(),1)

Will return blank when nothing is selected, otherwise returns a value. Blanks will not show up in your table so the table will be blank until something is selected. Hide the measure column by turning off word wrapping and shrinking the column until it it doesn't show.

 

And check this blog by Matt- https://insights.votivasoft.com/show-or-hide-a-power-bi-visual-based-on-selection/

 

Appreciate your kudos!! Mark my post as solution if this helps.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors