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
I had created a calculated column for total weight calculation which was (days difference* payment recieved). This calculated column works fine for few rows fetching the correct value on multiplication but few rows the multiplication values do not match. let me share the screenshot for it:

The calculated column is ,
Solved! Go to Solution.
Hi @Avivek ,
You may create a new measure like DAX below to get the correct total.
Weight(measure)_New=
var _table = SUMMARIZE(RECEIVABLES, RECEIVABLES[Month & Year],"_Value", [Weight(measure)] )
return
IF(HASONEVALUE(RECEIVABLES[Month & Year]), [Weight(measure)], SUMX(_table,[_Value]))
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Avivek ,
You may create a new measure like DAX below to get the correct total.
Weight(measure)_New=
var _table = SUMMARIZE(RECEIVABLES, RECEIVABLES[Month & Year],"_Value", [Weight(measure)] )
return
IF(HASONEVALUE(RECEIVABLES[Month & Year]), [Weight(measure)], SUMX(_table,[_Value]))
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Try this
Weight(measure)=
SUMX(
RECEIVABLES,
RECEIVABLES[Days Diff]* RECEIVABLES[PAYMENT_AMOUNT]
)________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Avivek
Check this question for the solution:
https://community.powerbi.com/t5/Developer/Calculated-column-for-weighted-average-does-not-work-for-...
Thanks
Fowmy
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Fowmy thankyou but it may be the image problem, the data does not have decimal, the format is same for the whole colum, PFA one such screenshot.
@Avivek
Check this post, you will find the issue with your data:
https://community.powerbi.com/t5/Developer/Calculated-column-for-weighted-average-does-not-work-for-...
________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Avivek
Is this post duplicated?
https://community.powerbi.com/t5/Developer/Calculated-column-for-weighted-average-does-not-work-for-...
________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Avivek , it should be
Weight(measure)= CALCULATE(SUMX(RECEIVABLES,RECEIVABLES[Days Diff]*RECEIVABLES[PAYMENT_AMOUNT]))
Can you share sample data and sample output in table format?
@Avivek , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Multiplication should be done at row level and division at aggregated level
@amitchandak , please find the link-
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!