March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello, I'm trying to create a bar chart showing counts by category (for selected categories) and a bar for "Other" for unselected categories.
If I have this table called SampleTable:
ID | Country |
1 | Germany |
2 | France |
3 | Germany |
4 | India |
5 | China |
6 | Ghana |
If I were to create a bar chart with counts for each country, there would be 5 bars (Germany, France, India, China, Ghana) showing counts (each bar is 1 except Germany, which is 2).
I would like to create a dropdown slicer based on VALUES(SampleTable[Country]) so that the user can select countries. If the user selects Germany and India from the dropdown, I would like the bar chart to show 3 bars: Germany (count value = 2), India (value = 1), and Other (value = 3), where Other represents the count for the unselected countries combined.
Is this possible? I am able to group the selected countries into a single bar and the un-selected countries into a single bar, but I would like to show a bar for each of the selected countries (instead of combining those). Thank you!!
Solved! Go to Solution.
Hey @tt211595 ,
this is not a simple task, but you can use this article to find some modeling guidance: Showing the top 5 products and Other row - SQLBI
I also wrote an article TopSomething and all the rest called "other" - Mincing Data - Gain Insight from Data (minceddata.inf...
Hopefully, this helps to tackle your challenge.
Regards,
Tom
Hi @tt211595 ,
Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information and description to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Hey @tt211595 ,
this is not a simple task, but you can use this article to find some modeling guidance: Showing the top 5 products and Other row - SQLBI
I also wrote an article TopSomething and all the rest called "other" - Mincing Data - Gain Insight from Data (minceddata.inf...
Hopefully, this helps to tackle your challenge.
Regards,
Tom
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
User | Count |
---|---|
90 | |
89 | |
85 | |
73 | |
49 |
User | Count |
---|---|
170 | |
145 | |
90 | |
67 | |
58 |