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
Hello, This problem has baffled me to no end. I'm hoping someone can help.
Much appreciated!!!!
Lisa
Solved! Go to Solution.
Hi @Lisa_2021 ,
You could create the following calculated columns.
final_sales = SWITCH(TRUE(),'table 1'[customer]="C",20,'table 1'[customer]="D",15,'table 1'[customer]="E",50,'table 1'[sales])total final sales = CALCULATE(SUM('table 1'[final_sales]),ALL('table 1'))weight* = DIVIDE([final_sales],[total final sales])
You could check more details from my attachment.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Lisa_2021 ,
You could create the following calculated columns.
final_sales = SWITCH(TRUE(),'table 1'[customer]="C",20,'table 1'[customer]="D",15,'table 1'[customer]="E",50,'table 1'[sales])total final sales = CALCULATE(SUM('table 1'[final_sales]),ALL('table 1'))weight* = DIVIDE([final_sales],[total final sales])
You could check more details from my attachment.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Try something like this
return
Sumx(Table1, final_sales)
Hello amitchandak!
I tried and I'm getting different #s for each customer with SUMX.
What am I doing wrong? Thanks!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 60 | |
| 43 | |
| 40 | |
| 36 | |
| 21 |
| User | Count |
|---|---|
| 178 | |
| 122 | |
| 107 | |
| 77 | |
| 50 |