Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have a simple data which has two columns, category and amount
CategoryAmount
| A | 787 |
| B | 7847 |
| C | 3949 |
| A | 9898 |
| C | 598590 |
| B | 34 |
| A | 24 |
| B | 454 |
| C | 4545 |
| A | 4545 |
When I tried to make a table and convert my amount into percentage
What do I want? If I place a filter for a category, I don't want the fields to change when I exclude a category
For example, if I exclude category A, the percentages should not change for other categories
In that case, I need an output
Category B = 1.32 %, Category = 96.26%
However, I am getting the below output
Is it possible? can anyone advise? I don't want to change the value for a particular category if I exclude any of the categories.
Please advise
Solved! Go to Solution.
Hi @bourne2000
As you've noted, the built-in "Percent of grand total" calculation calculates the total based on the overall filter context of the visual (using ALLSELECTED in the DAX query generated).
To calculate % of total for all Categories including those not displayed, you will need to create explicit measures and use REMOVEFILTERS or ALL.
I recommend creating:
Amount Sum =
SUM ( YourTable[Amount] )Amount % of total =
DIVIDE (
[Amount Sum],
CALCULATE (
[Amount Sum],
REMOVEFILTERS ( YourTable[Category] )
)
)
(applying a percentage format to the second measure).
Does this work for you?
Regards,
Owen
Hi @bourne2000
Try this:
%GT Amount =
VAR _A =
SUM ( 'Table'[Amount] )
VAR _B =
CALCULATE ( SUM ( 'Table'[Amount] ), REMOVEFILTERS ( 'Table'[Category] ) )
RETURN
_A / _B
output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Hi @bourne2000
As you've noted, the built-in "Percent of grand total" calculation calculates the total based on the overall filter context of the visual (using ALLSELECTED in the DAX query generated).
To calculate % of total for all Categories including those not displayed, you will need to create explicit measures and use REMOVEFILTERS or ALL.
I recommend creating:
Amount Sum =
SUM ( YourTable[Amount] )Amount % of total =
DIVIDE (
[Amount Sum],
CALCULATE (
[Amount Sum],
REMOVEFILTERS ( YourTable[Category] )
)
)
(applying a percentage format to the second measure).
Does this work for you?
Regards,
Owen
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |