Forum Discussion
Avivek
6 years agoPost Partisan
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 ,
Weight = RECEIVABLES[Days Diff]*RECEIVABLES[PAYMENT_AMOUNT]
Since it did not fetch the value I needed I created a new measure
Weight(measure)= CALCULATE(SUMX(RECEIVABLES,RECEIVABLES[Days Diff]*VALUE(sum(RECEIVABLES[PAYMENT_AMOUNT]))))
Though the measure works well but then the issue is that the total is not correct.
I need the total weight for another measure to fetch me the weighted average days.
9 Replies
- FowmySuper User
- AnonymousNot applicable
Hi Avivek ,
You can refer the content in the following links to modify or create measure for getting the correct total values:
Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand
Measure wrong total in Matrix Visual
If the above methods can't resolve your problem, please provide some sample data which applied on the visual and existed relationship if the data from multiple tables.
Best Regard
Rena