Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 11 | |
| 9 | |
| 9 | |
| 8 |