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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
How do I create a measure that will calculate the weight of an amount relative to a category or multiple categories?
Example below I'd like a measure to calculate the weight of each payment = payment/sum of payments but have one measure for the two columns below.
| Customer | Payment | Weighted Payments by Customer | Weighted Payments Total |
| Jim | $1,000 | 13.89% | 11.76% |
| Jim | $1,200 | 16.67% | 14.12% |
| Jim | $5,000 | 69.44% | 58.82% |
| Bob | $500 | 38.46% | 5.88% |
| Bob | $800 | 61.54% | 9.41% |
Solved! Go to Solution.
Hi @buttercream ,
I assume that you have additional information for this visualization in this case I added an ID column just to get the correct syntax add the following two measures:
Weighted Payments Total = DIVIDE(SUM('Table'[Payment]), CALCULATE(SUM('Table'[Payment]), REMOVEFILTERS('Table'[Customer],'Table'[ID])))
Weighted Payments by Customer = DIVIDE(SUM('Table'[Payment]), CALCULATE(SUM('Table'[Payment]), REMOVEFILTERS('Table'[ID])))
Be aware that you may need to change this accordingly to your model and visualization.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi,
There has to be at least one additional column in the visual to avoid aggregation at the Customer level. Once you drag that column as well, you can either write measures or use visual calculations. To receive specific help, share that additional column as well.
Hi @buttercream ,
I assume that you have additional information for this visualization in this case I added an ID column just to get the correct syntax add the following two measures:
Weighted Payments Total = DIVIDE(SUM('Table'[Payment]), CALCULATE(SUM('Table'[Payment]), REMOVEFILTERS('Table'[Customer],'Table'[ID])))
Weighted Payments by Customer = DIVIDE(SUM('Table'[Payment]), CALCULATE(SUM('Table'[Payment]), REMOVEFILTERS('Table'[ID])))
Be aware that you may need to change this accordingly to your model and visualization.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsShare feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 49 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |