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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Employee
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
Employee
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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.