Hi
I need some help calculating a weighted sum. I have an example which shows how it should be done. Any help is great appreciated! Thanks in advance
Sample Data:
[TABLE="class: grid, width: 588"]
<tbody>[TR]
[TD] [/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]Total[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD] [/TD]
[TD]48%[/TD]
[TD]5%[/TD]
[TD]33%[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]14%[/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]16%[/TD]
[TD]2%[/TD]
[TD]5%[/TD]
[TD]9%[/TD]
[TD]21%[/TD]
[TD]23%[/TD]
[TD]23%[/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD]13%[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]35%[/TD]
[TD]30%[/TD]
[TD] [/TD]
[TD]22%[/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD]H[/TD]
[TD]26%[/TD]
[TD] [/TD]
[TD]39%[/TD]
[TD] [/TD]
[TD]17%[/TD]
[TD]17%[/TD]
[TD] [/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD]Z[/TD]
[TD]32%[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]4%[/TD]
[TD] [/TD]
[TD]36%[/TD]
[TD]28%[/TD]
[TD]100%[/TD]
[/TR]
</tbody><colgroup><col span="6"><col><col span="2"></colgroup>[/TABLE]
[TABLE="class: grid, width: 460"]
<tbody>[TR]
[TD] [/TD]
[TD]April[/TD]
[TD]May[/TD]
[TD]June[/TD]
[TD]July[/TD]
[TD]August[/TD]
[TD]September[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]65[/TD]
[TD="align: right"]21[/TD]
[TD="align: right"]16[/TD]
[TD="align: right"]60[/TD]
[TD="align: right"]98[/TD]
[TD="align: right"]83[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]95[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]43[/TD]
[TD="align: right"]24[/TD]
[TD="align: right"]46[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]14[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]68[/TD]
[TD="align: right"]76[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]14[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD="align: right"]47[/TD]
[TD="align: right"]71[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]51[/TD]
[TD="align: right"]80[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD="align: right"]52[/TD]
[TD="align: right"]57[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]65[/TD]
[TD="align: right"]49[/TD]
[TD="align: right"]79[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD="align: right"]23[/TD]
[TD="align: right"]87[/TD]
[TD="align: right"]70[/TD]
[TD="align: right"]63[/TD]
[TD="align: right"]16[/TD]
[TD="align: right"]94[/TD]
[/TR]
[TR]
[TD]G[/TD]
[TD="align: right"]47[/TD]
[TD="align: right"]91[/TD]
[TD="align: right"]59[/TD]
[TD="align: right"]63[/TD]
[TD="align: right"]21[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]H[/TD]
[TD="align: right"]22[/TD]
[TD="align: right"]22[/TD]
[TD="align: right"]70[/TD]
[TD="align: right"]72[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]72[/TD]
[/TR]
[TR]
[TD]Z[/TD]
[TD="align: right"]94[/TD]
[TD="align: right"]73[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]76[/TD]
[TD="align: right"]33[/TD]
[TD="align: right"]59[/TD]
[/TR]
</tbody><colgroup><col span="6"><col></colgroup>[/TABLE]
Expected Outcome:
[TABLE="class: grid, width: 466"]
<tbody>[TR]
[TD] [/TD]
[TD]April[/TD]
[TD]May[/TD]
[TD]June[/TD]
[TD]July[/TD]
[TD]August[/TD]
[TD]September[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]68.29[/TD]
[TD="align: right"]45.86[/TD]
[TD="align: right"]59.52[/TD]
[TD="align: right"]35.10[/TD]
[TD="align: right"]32.14[/TD]
[TD="align: right"]50.10[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]44.98[/TD]
[TD="align: right"]63.93[/TD]
[TD="align: right"]47.63[/TD]
[TD="align: right"]57.77[/TD]
[TD="align: right"]40.81[/TD]
[TD="align: right"]62.47[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD="align: right"]50.87[/TD]
[TD="align: right"]64.57[/TD]
[TD="align: right"]32.30[/TD]
[TD="align: right"]43.39[/TD]
[TD="align: right"]50.00[/TD]
[TD="align: right"]64.00[/TD]
[/TR]
[TR]
[TD]H[/TD]
[TD="align: right"]35.48[/TD]
[TD="align: right"]31.70[/TD]
[TD="align: right"]49.91[/TD]
[TD="align: right"]67.65[/TD]
[TD="align: right"]42.74[/TD]
[TD="align: right"]57.22[/TD]
[/TR]
[TR]
[TD]Z[/TD]
[TD="align: right"]44.12[/TD]
[TD="align: right"]66.36[/TD]
[TD="align: right"]47.44[/TD]
[TD="align: right"]59.76[/TD]
[TD="align: right"]45.04[/TD]
[TD="align: right"]65.28[/TD]
[/TR]
</tbody><colgroup><col><col><col span="4"><col></colgroup>[/TABLE]
Sample Calculation:
68.29 = 0.48*95 + 0.05*14 + 0.33*47 + 0.14*47
I need some help calculating a weighted sum. I have an example which shows how it should be done. Any help is great appreciated! Thanks in advance
Sample Data:
[TABLE="class: grid, width: 588"]
<tbody>[TR]
[TD] [/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]Total[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD] [/TD]
[TD]48%[/TD]
[TD]5%[/TD]
[TD]33%[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]14%[/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]16%[/TD]
[TD]2%[/TD]
[TD]5%[/TD]
[TD]9%[/TD]
[TD]21%[/TD]
[TD]23%[/TD]
[TD]23%[/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD]13%[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]35%[/TD]
[TD]30%[/TD]
[TD] [/TD]
[TD]22%[/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD]H[/TD]
[TD]26%[/TD]
[TD] [/TD]
[TD]39%[/TD]
[TD] [/TD]
[TD]17%[/TD]
[TD]17%[/TD]
[TD] [/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD]Z[/TD]
[TD]32%[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]4%[/TD]
[TD] [/TD]
[TD]36%[/TD]
[TD]28%[/TD]
[TD]100%[/TD]
[/TR]
</tbody><colgroup><col span="6"><col><col span="2"></colgroup>[/TABLE]
[TABLE="class: grid, width: 460"]
<tbody>[TR]
[TD] [/TD]
[TD]April[/TD]
[TD]May[/TD]
[TD]June[/TD]
[TD]July[/TD]
[TD]August[/TD]
[TD]September[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]65[/TD]
[TD="align: right"]21[/TD]
[TD="align: right"]16[/TD]
[TD="align: right"]60[/TD]
[TD="align: right"]98[/TD]
[TD="align: right"]83[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]95[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]43[/TD]
[TD="align: right"]24[/TD]
[TD="align: right"]46[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]14[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]68[/TD]
[TD="align: right"]76[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]14[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD="align: right"]47[/TD]
[TD="align: right"]71[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]51[/TD]
[TD="align: right"]80[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD="align: right"]52[/TD]
[TD="align: right"]57[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]65[/TD]
[TD="align: right"]49[/TD]
[TD="align: right"]79[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD="align: right"]23[/TD]
[TD="align: right"]87[/TD]
[TD="align: right"]70[/TD]
[TD="align: right"]63[/TD]
[TD="align: right"]16[/TD]
[TD="align: right"]94[/TD]
[/TR]
[TR]
[TD]G[/TD]
[TD="align: right"]47[/TD]
[TD="align: right"]91[/TD]
[TD="align: right"]59[/TD]
[TD="align: right"]63[/TD]
[TD="align: right"]21[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]H[/TD]
[TD="align: right"]22[/TD]
[TD="align: right"]22[/TD]
[TD="align: right"]70[/TD]
[TD="align: right"]72[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]72[/TD]
[/TR]
[TR]
[TD]Z[/TD]
[TD="align: right"]94[/TD]
[TD="align: right"]73[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]76[/TD]
[TD="align: right"]33[/TD]
[TD="align: right"]59[/TD]
[/TR]
</tbody><colgroup><col span="6"><col></colgroup>[/TABLE]
Expected Outcome:
[TABLE="class: grid, width: 466"]
<tbody>[TR]
[TD] [/TD]
[TD]April[/TD]
[TD]May[/TD]
[TD]June[/TD]
[TD]July[/TD]
[TD]August[/TD]
[TD]September[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]68.29[/TD]
[TD="align: right"]45.86[/TD]
[TD="align: right"]59.52[/TD]
[TD="align: right"]35.10[/TD]
[TD="align: right"]32.14[/TD]
[TD="align: right"]50.10[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]44.98[/TD]
[TD="align: right"]63.93[/TD]
[TD="align: right"]47.63[/TD]
[TD="align: right"]57.77[/TD]
[TD="align: right"]40.81[/TD]
[TD="align: right"]62.47[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD="align: right"]50.87[/TD]
[TD="align: right"]64.57[/TD]
[TD="align: right"]32.30[/TD]
[TD="align: right"]43.39[/TD]
[TD="align: right"]50.00[/TD]
[TD="align: right"]64.00[/TD]
[/TR]
[TR]
[TD]H[/TD]
[TD="align: right"]35.48[/TD]
[TD="align: right"]31.70[/TD]
[TD="align: right"]49.91[/TD]
[TD="align: right"]67.65[/TD]
[TD="align: right"]42.74[/TD]
[TD="align: right"]57.22[/TD]
[/TR]
[TR]
[TD]Z[/TD]
[TD="align: right"]44.12[/TD]
[TD="align: right"]66.36[/TD]
[TD="align: right"]47.44[/TD]
[TD="align: right"]59.76[/TD]
[TD="align: right"]45.04[/TD]
[TD="align: right"]65.28[/TD]
[/TR]
</tbody><colgroup><col><col><col span="4"><col></colgroup>[/TABLE]
Sample Calculation:
68.29 = 0.48*95 + 0.05*14 + 0.33*47 + 0.14*47