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
AJV
Helper I
Helper I

Survey: Prevent visuals from displaying data for less than 5 responses

Hello:

 

I'm putting together a report for a survey. To protect the confidentiality of respondents, I need to prevent a filter or combination of filters from displaying data where there were less than 5 responses. The visual can display an asterisc *,  an error or go blank if there's less than 5 - it doesn't matter.

 

Is there a way to configure the report, filters or the visuals to accomodate this?

 

Thanks!

 

 

7 REPLIES 7
AJV
Helper I
Helper I

So, row level security won't work with this use case.

 

@AllisonKennedy Wondering if you have any thoughts on how to adapt the "Responses to Show" measure to capture more than one filter selection that adds up to 5 or more?

Thanks!

 

Row level security looks like it would be a great idea, especially in that it would allow me to continue to see what I would not want the client to be able to see.

 

However, I'm having trouble with the DAX expression/filter. Newbie here...I've tried a few combinations of @AllisonKennedy 's suggestions which worked as filters, but not in this case.

 

Any ideas?

AllisonKennedy
Super User
Super User

@AJV  You could use explicit measures for all the visualizations and put an IF in front of them. You'll need to create a measure for total responses: 

 

Total Responses = COUNTROWS(ResponseTable)

 

Then all other measures will need: 

 

Responses to Show = IF([Total Responses] < 5, BLANK(), [Total Responses]) 

 

Or whatever calculation you want to do.


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Thank you for this!

 

I've  created TOTAL RESPONSES and RESPONSES TO SHOW. Adding TOTAL RESPONSES to the filters for the visual works when I select another filter that shows less than 5 responses. The visual disappears. Perfect!

 

However, if I select a combination of locations with fewer than 5 responses, but together add up to five or more responses, the visual does not reappear with that calculation.

 

Any ideas?

 

(Newbie here...appreciate your help, tremendously...)

What is in the visual? Is it sliced by anything that is causing the total responses to be less than 5 in each category maybe? If you can provide just a few more details about what you're doing we can try to help more.


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Hi Allison - thanks. 

Each visual is relatively simple. Each displays one survey question, and its breakdown of responses in a pie chart from agree to disagree. Otherwise, there are two card visuals which are simply average scores from one column on a table. 

the data is also simple - one table. 

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.