Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mengna
Frequent Visitor

Sums for filtered out values "Other"

Hi there,

 

Assuming I want to filter out a few out of many customers in a data set (C1-C1000), and I want subtotals like below, how do I create the "Total" and "Total of other customers" calculations? Any help would be greatly appreciated!

 

 Revenue% of Rev (rev / total of all customers)
C2355%
C451010%
C221515%
Total of above3030%
Total of other customers7070%
Total of all customers100100%
1 ACCEPTED SOLUTION
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @mengna 

You may use ALL Function like below:

Total of all customers =
CALCULATE ( SUM ( 'Table'[Revenue] ), ALL ( 'Table' ) )
Total of other customers =
CALCULATE ( SUM ( 'Table'[Revenue] ), ALL ( 'Table' ) )
    - SUM ( 'Table'[Revenue] )

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @mengna 

You may use ALL Function like below:

Total of all customers =
CALCULATE ( SUM ( 'Table'[Revenue] ), ALL ( 'Table' ) )
Total of other customers =
CALCULATE ( SUM ( 'Table'[Revenue] ), ALL ( 'Table' ) )
    - SUM ( 'Table'[Revenue] )

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.