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
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) | |
| C23 | 5 | 5% |
| C45 | 10 | 10% |
| C22 | 15 | 15% |
| Total of above | 30 | 30% |
| Total of other customers | 70 | 70% |
| Total of all customers | 100 | 100% |
Solved! Go to Solution.
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,
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,
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |