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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
maronis
Helper I
Helper I

Hide data in visualization if too few responses

We have an employee survey and I'm trying to build reports in Power BI. We've promised employees confidentiality so I'd like to suppress data if there are fewer than three respondants.

 

The output looks something like this for each question:

 

Screenshot_1.png

 

The underlying data looks like this:

 

Screenshot_2.png

 

Users have the ability to filter results by timeframe, business unit, etc. I want to avoid a situation where someone filters to a specific time and business unit where there are only one or two survey respondants, making it very easy to identify the specific person's responses. Is there a way for the visualization to be blanked out if slicers/filters result in there being fewer than three respondants? Thanks!

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

 

In the Visual level filters section of the visualisation pane, apply a filter on the measure of >3.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks for the response! So I did think of that - the issue is that because of the way the data is structured, here's what would happen if I applied a filter like that -

 

Say there was a business unit with four responses, three are 'agree' and one is 'disagree.' If I apply a filter like what you suggest, what would appear in the visualization is a chart that shows three 'agree' responses, but no 'disagree' responses.

 

Similarly, if there were a business unit with three responses, two of which are 'agree' and one 'disagree' the filter you suggest would return no results at all, when in fact I do want to show results for that business unit because there are three responses in total.

 

Any other ideas given the clarification above? Thanks again!

Hi,

 

So then we cannot look at absolute numbers at all - your premise of 3 will not be valid in that case.  We must then compute the numbers of respondent/Total population for that group and filter based on that.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks - is there an easy way to do that? I was trying to think of constructing a measure that would count the total number of respondants and filter based on that but I can't for the life of me think of how I'd construct that.

Hi,

 

I need your file for that.  Share the download link.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks for the offer to help! I'm afraid I can't share the actual file but we did manage to find a way to restrict the data regardless. Instead of presenting the histogram view, we're just showing an average of each question ('Strongly disagree' = 1, disagree = 2, etc) and by doing that we can restrict the visualization to only show questions that have at least three responses by using a report-level filter.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.