Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
New to Power BI and trying to get my bearings. I'm working with survey (Likert-type) data in a university setting, and as a result, we are concerned about protecting the confidentiality of respondents. In the data in question, there are numerous demographic measures (e.g., race, gender, sexual orientation) that we would like to be able to include. However, as multiple identities are introduced (e.g., Asian, Transgender. and Pansexual) the sample size in many cells falls below low a threshold we are comfortable display (n > 5).
Coming from Tableau, I know you could write some code to calculate when that would happen and hide cells that contained small sample sizes. Is this possible to do in Power BI? I much prefer the experience with Power BI, but this is a big issue that I need to resolve before trying to convince my office to move over.
Thanks for any help/insight!
Solved! Go to Solution.
Hi, Select the other chart and Go to Edit Interactions (Format Menu) and Select Filter instead of Highlight.
Hi jbittinger, we encountered this same problem as we have sensitive healthcare data. We were able to successfully suppress small numbers through the use of DAX formulas. Conceptually, the formula goes like this: "If the number to be displayed is less than n, then display '***', otherwise, display the number." An actual example is here:
This was the fix to our issue. Thanks!!
I simplified the DAX formula you provided and got the output we expected:
You could create a simple COUNT measure and then add that to your report filter and set it to be >=5. If I understand the problem correctly.
I think a picture will help here (and perhaps a COUNT measure is appropriate). In the picture below, I have selected women who have a low sense of belonging on the bottom right graph, which then highlights those women across the other graphs. I really like this feature, but some of the sample sizes are too small to display. For example, the cell I have circled has fewer than 5 respondents and I would want to hide that from being displayed.
I began playing around with creating a COUNT measure and was not getting far with it. For the image below, there are 4 variables being used: Diverse, Belonging, Gender, and Race. Would I essentially have to build a long if/then logic calculation to use the COUNT measure?
I believe I duplicated this. I created the following data:
EthnicityCategory
Asian | 1 |
Asian | 1 |
Asian | 1 |
Asian | 1 |
Asian | 1 |
Asian | 2 |
Asian | 2 |
Asian | 2 |
Asian | 2 |
Asian | 2 |
Asian | 3 |
Asian | 3 |
Asian | 3 |
Asian | 3 |
Asian | 3 |
Asian | 4 |
Asian | 4 |
Asian | 5 |
Asian | 5 |
Asian | 5 |
Asian | 5 |
Asian | 5 |
Black | 1 |
Black | 1 |
Black | 1 |
Black | 1 |
Black | 1 |
Black | 2 |
Black | 2 |
Black | 3 |
Black | 3 |
Black | 3 |
Black | 3 |
Black | 3 |
Black | 4 |
Black | 4 |
Black | 4 |
Black | 4 |
Black | 4 |
Black | 5 |
Black | 5 |
Black | 5 |
Black | 5 |
Black | 5 |
I then put Ethnicity in my Axis, Category in my Label and then Count of Category (just changed the default summation from SUM to COUNT) in my Value. Then, in my filter area for the visual, I set "Count of Category" to "greater than or equal to 5"
Thanks for the help thus far. When I try this, the problem still exists because it doesn't seem to affect the highlighted numbers (see below). I got to this point by clicking on a bar segment from a belonging graph.
I don't have any context in relation to this. Is this visualization configured to have a filter of "Count of Diverse" > 5?
Yes, the visual has a Count of Diverse > 5 filter.
I've pulled a sample from the data and created a sample page. The .pbix file can be accessed here.
Hi, Select the other chart and Go to Edit Interactions (Format Menu) and Select Filter instead of Highlight.
Thanks for this solution, I take it there's no way to do this and allow the highlighting option (makes sense, but I was still hopeful).
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
93 | |
90 | |
84 | |
71 | |
49 |
User | Count |
---|---|
141 | |
121 | |
112 | |
60 | |
58 |