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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hallo
I have a table like this
CUSTOMER | TYPE | SALES |
A | prio | 10 |
B | normal | 5 |
C | low | 4 |
D | prio | 3 |
And I would like 1. to get a Dax function giving me the total of the sales of all the priority customers 2. only for the priority customers getting the percentage of its sales over the total of the prio sales
See ideal result:
CUSTOMER | TYPE | SALES | TOT PRIO SALES | % on tot prio sales |
A | prio | 10 | 13 | 77% |
B | normal | 5 | 13 | |
C | low | 4 | 13 | |
D | prio | 3 | 13 | 23% |
Thanks!
Solved! Go to Solution.
Hi @SteT82
1st measure is to Create Priority Sales
Total Priorty Sales = CALCULATE(
SUM(test[SALES]), KEEPFILTERS(test[TYPE] = "prio"))
2nd measure is to create a Total Priorty Sales
Prio Sales = CALCULATE([Total Priorty Sales], ALL(test))
3rd Create % of Total
Tot Prio sales% =
DIVIDE([Total Priorty Sales], [Prio Sales])
Convert the 3rd to %
Thanks
Joe
Hi @SteT82
1st measure is to Create Priority Sales
Total Priorty Sales = CALCULATE(
SUM(test[SALES]), KEEPFILTERS(test[TYPE] = "prio"))
2nd measure is to create a Total Priorty Sales
Prio Sales = CALCULATE([Total Priorty Sales], ALL(test))
3rd Create % of Total
Tot Prio sales% =
DIVIDE([Total Priorty Sales], [Prio Sales])
Convert the 3rd to %
Thanks
Joe
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
8 | |
7 | |
4 | |
3 |