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
Hi community,
I am trying to calculate the % of a grand total for a dimension column but with a slight twist. If a category's % of grand total is less than or equal to 10%, I'd like to bundle these categories into a group called "other" and the grand total of the "other" group should be the sum of their grand total %s.
I'd like the solution to be dynamic. For instance, I could select swap out different dimensions in a visual and this solution would work. Below is an example of what I'm trying to achieve. If anything is unclear, please shout. I'm open to any solution.
Example Data
Expected Output
Note, I've supplied two different tables in the solution. In PBI, I'd like just one table with the ability to pull the different dimensions into it.
Data used in problem
Country | Favourite Colour | Flag |
UK | Red | 1 |
USA | Red | 1 |
France | Red | 1 |
UK | Blue | 1 |
UK | Black | 1 |
UK | White | 1 |
Germany | Green | 1 |
Germany | Green | 1 |
Germany | Blue | 1 |
Germany | Pink | 1 |
Thanks,
Ben
Solved! Go to Solution.
Hi @Data_BS
You need to Append a new row to the table with "Other" in both the country and the colour columns.
This is used to check which row we are on in the visual.
Field Parameters: https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters
Let you swap which column is in the visual.
Create a measure:
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
Hi @Data_BS , hello ryan_mayu and SamWiseOwl, thank you for your prompt reply!
Is there any progress on this issue?
If you find any answer is helpful to you, please remember to accept it.
It will help others who meet the similar question in this forum.
Thank you for your understanding.
have you tried grouping and binning function?
Proud to be a Super User!
Hi @ryan_mayu, this is really interesting. I didn't know about this. I'll check this out when I have time (currently at work so I can't).
If this solves the problem, I'll let you know.
Thanks for the navigation!
Hi @Data_BS
You need to Append a new row to the table with "Other" in both the country and the colour columns.
This is used to check which row we are on in the visual.
Field Parameters: https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters
Let you swap which column is in the visual.
Create a measure:
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
Hi @SamWiseOwl. I'm at work at the moment but I'll explore this as soon as I get time. Thanks for providing this, I'll keep you updated. Absolute legend.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
73 | |
68 |