Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
I have a real world problem that has me stumped. I have a powerBI report that is list of employee survey answers. Before I share it with the firm, I need to make sure that no individual can be identified by simply playing with the slicers ("Marketing director in California hates management... we only have one marketing director in California).
Is there a function or a workaround I can use to either prevent the visuals from updating when the count of records is below 5 or to display a message "count of records too low, broaden your selection.
Solved! Go to Solution.
@Anonymous try this on your end: add a new measure:
Total Count = COUNTROWS ( Table )
on visual, add a visual level filter with the above measure and select where greater than 5, if you slice the data and the number of records is less than 5, your visual will go blank. We can figure out the message part later.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@Anonymous oh! Thanks for your comments. Glad it worked out. Cheers!!
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@Anonymous try this on your end: add a new measure:
Total Count = COUNTROWS ( Table )
on visual, add a visual level filter with the above measure and select where greater than 5, if you slice the data and the number of records is less than 5, your visual will go blank. We can figure out the message part later.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
You are my hero today.
@Anonymous ok, so what is our expectation from that excel file? What I'm doing with it? If you provide a bit more details, it will help.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
The excel file has a list of survey responses. What I am trying to prevent is someone using the slicer to narrow down the results to less than 5 and be able to indentify the individual who provided the response.
My desired outcome is that if the slicer selections result in a visualization output with less than 5 records the visualization is hidden, an alert is displayed ("please expand your selection") or any other method that would prevent the viewer from seeing result set of bellow 5 records.
@Anonymous can you share sample data and expected output, you can surely create a count measure and then put a visual level filter on this measure and say > 5 but without looking at data model it is hard to tell what would be the measure.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Yes, thank you. Sample recordset (15 records) I uploaded to dropbox as an excel file:
And this is how my slicer/viisual looks: https://imgur.com/a/rAOxtCh
Any help is greatly appreciated.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.