Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Dear all,
I've the next problem:
I want to filter by TOP 5 clients but I want to keep the total. If I introduce a filter here, the total is only the total of the clients filtered.
Do you know how can I sum by Top 5 clients (making a ranking for example as TOP 5 & Others by sales and make another category as "other" to keep the whole total?
I add a pbix Sum by ranking
Solved! Go to Solution.
You may create a measure for this:
Suma de Sales Percentage =
DIVIDE(
SUM( Tabla[Sales] ),
CALCULATE( SUM( Tabla[Sales] ), ALL( Tabla ) )
)
Dear @timalbers @nsexton12 thank you for your support.
I've tryed both options and I've the next doubts:
@timalbersI'd like to see the whole total (450) but at the same time the % of the total (450) with the TOP 5 clients, not the % of the total filtered that is the point 1 (White 25% is the % of the total of this TOP 5 clients). Do you know how to do it?
@nsexton12I'm thinking if not do it in this way, I'll put the total in millions and total million, but I'd like to do it in % as in the first option. Do you also know how to do it?
You may create a measure for this:
Suma de Sales Percentage =
DIVIDE(
SUM( Tabla[Sales] ),
CALCULATE( SUM( Tabla[Sales] ), ALL( Tabla ) )
)
You got it!!!
Thank you so much that is what I was looking for!!
Great!!
I've updated the pbix if someones needs it.
Thank you again guys! appreciate!
Additionally, if you wish to have the number in the same table visual, you could add a measure like this:
Suma de Sales =
IF(
ISINSCOPE( Tabla[Client] ),
BLANK(),
CALCULATE(
SUM( Tabla[Sales] ), ALL( Tabla )
)
)
Then you could add this measure as additional column to your table visual.
The grand total will then only show for the total row and be blank for each client.
Have you thought about turning the sum column option off for the table and creating a new measure that is the sum of all sales? You could put on a data card that is directly beneath the table to keep the value in the same area. The formula would be generally structured as CALCULATE(SUM(Table[Sales]),ALL(Table)). If this answers your question, please mark as a solution!
It would look roughly like this.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
79 | |
53 | |
39 | |
39 |
User | Count |
---|---|
104 | |
85 | |
47 | |
44 | |
43 |