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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.