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

visualizations only from a value x

Hello everybody,

first of all: I'am a beginner, but I have an important question:

 

Imagine having a company with different departments and now creating a staff visualization that includes all employees from each department and can be filtered by them. For reasons of anonymity, however, the Executive Board would like the visualizations (if you filter them by department) to be displayed only for departments with 10 or more employees, as otherwise it would be possible to see who is which data record. Is there such a possibility in Power BI? visualizations only from a value x?

 

Thanks and best regards,

A.M.

1 ACCEPTED SOLUTION
Cmcmahan
Resident Rockstar
Resident Rockstar

It's not exactly what you're looking for, but I found a solution for something similar here: https://www.fourmoo.com/2017/01/24/power-bi-how-to-filter-slicers-dynamically/

 

That shows how to create a calculated table and use it to slice other data, so if you can filter data where COUNT(employees) > 10 instead of a full SUMMARIZATION you should be able to select the departments that show up in the slicer.

 

 

Depending on how you're what visualizations you're using and how you're displaying the data, you may be able to use conditional formatting to hide the data. For example, in a matrix, you can go into the conditional formatting and chnage the background color to match your text color when there are fewer than 10 records.

snip.PNG

 

Keep in mind that the second option is a workaround, and if the user does things like hover over the value, it will display a tooltip with the information.  However it does have the added perk of showing/hiding individual fields to the user and that there IS data available, it's just being censored.  

View solution in original post

1 REPLY 1
Cmcmahan
Resident Rockstar
Resident Rockstar

It's not exactly what you're looking for, but I found a solution for something similar here: https://www.fourmoo.com/2017/01/24/power-bi-how-to-filter-slicers-dynamically/

 

That shows how to create a calculated table and use it to slice other data, so if you can filter data where COUNT(employees) > 10 instead of a full SUMMARIZATION you should be able to select the departments that show up in the slicer.

 

 

Depending on how you're what visualizations you're using and how you're displaying the data, you may be able to use conditional formatting to hide the data. For example, in a matrix, you can go into the conditional formatting and chnage the background color to match your text color when there are fewer than 10 records.

snip.PNG

 

Keep in mind that the second option is a workaround, and if the user does things like hover over the value, it will display a tooltip with the information.  However it does have the added perk of showing/hiding individual fields to the user and that there IS data available, it's just being censored.  

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