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! It's time to submit your entry. Live now!
Dear Community,
I want to calculate a simple weighted value.
The total and filter resistant sum a value should be divided by the total and filter resistant sum of weight. Next this number should be multiplied with the target variable by row.
See the Image:
Solved! Go to Solution.
Hi @raymond
Create a measure
final_output =
DIVIDE (
CALCULATE ( SUM ( Sheet2[value] ), ALL ( Sheet2 ) ),
CALCULATE ( SUM ( Sheet2[weight] ), ALL ( Sheet2 ) )
)
* MAX ( [weight] )
Best Regards
Maggie
Hi @raymond
I didn't realize the column "weight value" is what you want until now.
to get the same value as "weight value" , you could set the date format of "final_output" as below.
Best Regards
Maggie
Hi @raymond
Create a measure
final_output =
DIVIDE (
CALCULATE ( SUM ( Sheet2[value] ), ALL ( Sheet2 ) ),
CALCULATE ( SUM ( Sheet2[weight] ), ALL ( Sheet2 ) )
)
* MAX ( [weight] )
Best Regards
Maggie
@v-juanli-msft Thanks for getting back to me.
One question. What is the difference between the column "weight value" and "final_output"? If there is a calculation for the first, could you share that as well?
Hi @raymond
I didn't realize the column "weight value" is what you want until now.
to get the same value as "weight value" , you could set the date format of "final_output" as below.
Best Regards
Maggie
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 48 | |
| 35 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 142 | |
| 111 | |
| 65 | |
| 38 | |
| 33 |