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
Hello wonderful BI-ers,
I am working with FERPA protected data and cannot display the count of a demographic category if the count is very small, because the person/people in that category might be able to be identified.
So instead, I want to display the count of a category as "less than 5" if the count is less than five, but retain the numeric count values for categories where the count is over five. This count would be in a tooltip. In other words: when I hover over a column in my bar chart, I want to display a text value if the count is under a threshold, and a numeric value if the count is over a threshold.
Here is a sample of the data (not actual numbers):
Year | Race | Count |
2020 | White | 189 |
2020 | Black | 27 |
2020 | Asian | 89 |
2020 | Other | 2 |
2019 | White | 234 |
2019 | Black | 54 |
2019 | Asian | 4 |
2019 | Other | 6 |
So in this case, when I hover over the bar for [Year=2020 Race=Other], and [Year=2019 Race=Asian], Instead of the tooltip displaying "2" and "4" respecively, I see "Less than 5" (or "< 5").
I have a tooltip set up right now displaying counts in categories, what I'm asking is about displaying those values as text based on a condition.
Is this possible?
Solved! Go to Solution.
I don't believe this is currently possible with the default tips in the on-prem report server unless you used a custom tooltip with a different measure.
If you are deploying to the Power BI service you could use the new dynamic format strings feature Create dynamic format strings for measures in Power BI Desktop - Power BI | Microsoft Learn and create a format string like
I don't believe this is currently possible with the default tips in the on-prem report server unless you used a custom tooltip with a different measure.
If you are deploying to the Power BI service you could use the new dynamic format strings feature Create dynamic format strings for measures in Power BI Desktop - Power BI | Microsoft Learn and create a format string like
Thanks for this advice! Unfortunately I don't have Desktop, only Report Service. This is a cool feature (if only I could use it).
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 |
---|---|
3 | |
2 | |
1 | |
1 | |
1 |