Forum Discussion
Calculated column for weighted average does not work for few rows
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 ,
2 Replies
- amitchandak
Super User
Avivek , try
Weight(measure)= CALCULATE(SUMX(RECEIVABLES,RECEIVABLES[Days Diff]*RECEIVABLES[PAYMENT_AMOUNT]))
- AnonymousNot applicable
Hi Avivek ,
Can you share a screen shot or some sample data of your solution.
Try
Weight(measure)= SUMX(RECEIVABLES,RECEIVABLES[Days Diff]*RECEIVABLES[PAYMENT_AMOUNT]))
or
Weight = SUMX( SUMMARIZE(Receivable, Receivable[Day Diff], Receivable[Payment_Amunt]), RECEIVABLES[Days Diff]*RECEIVABLES[PAYMENT_AMOUNT]))Regards,
Harsh Nathani