I have a products table with raw material proportions. 2nd table with raw material rates.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Product name[/TD]
[TD]RM names[/TD]
[TD]%age[/TD]
[/TR]
[TR]
[TD]Product1[/TD]
[TD]RM2[/TD]
[TD]49%[/TD]
[/TR]
[TR]
[TD]Product1[/TD]
[TD]RM3[/TD]
[TD]51%[/TD]
[/TR]
[TR]
[TD]Product2[/TD]
[TD]RM1[/TD]
[TD]30%[/TD]
[/TR]
[TR]
[TD]Product2[/TD]
[TD]RM3[/TD]
[TD]50%[/TD]
[/TR]
[TR]
[TD]Product2[/TD]
[TD]RM2[/TD]
[TD]20%[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]RM names[/TD]
[TD]Rate[/TD]
[/TR]
[TR]
[TD]01-04-2017[/TD]
[TD]RM1[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]01-04-2017[/TD]
[TD]RM2[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]01-04-2017[/TD]
[TD]RM3[/TD]
[TD]70[/TD]
[/TR]
[TR]
[TD]01-05-2017[/TD]
[TD]RM1[/TD]
[TD]110[/TD]
[/TR]
[TR]
[TD]01-05-2017[/TD]
[TD]RM2[/TD]
[TD]45[/TD]
[/TR]
[TR]
[TD]01-05-2017[/TD]
[TD]RM3[/TD]
[TD]75[/TD]
[/TR]
</tbody>[/TABLE]
Not all RM is used in all products. I want to get product cost by multiply rates to %age for given product and date.
Thanks for reading
Nilesh
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Product name[/TD]
[TD]RM names[/TD]
[TD]%age[/TD]
[/TR]
[TR]
[TD]Product1[/TD]
[TD]RM2[/TD]
[TD]49%[/TD]
[/TR]
[TR]
[TD]Product1[/TD]
[TD]RM3[/TD]
[TD]51%[/TD]
[/TR]
[TR]
[TD]Product2[/TD]
[TD]RM1[/TD]
[TD]30%[/TD]
[/TR]
[TR]
[TD]Product2[/TD]
[TD]RM3[/TD]
[TD]50%[/TD]
[/TR]
[TR]
[TD]Product2[/TD]
[TD]RM2[/TD]
[TD]20%[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]RM names[/TD]
[TD]Rate[/TD]
[/TR]
[TR]
[TD]01-04-2017[/TD]
[TD]RM1[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]01-04-2017[/TD]
[TD]RM2[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]01-04-2017[/TD]
[TD]RM3[/TD]
[TD]70[/TD]
[/TR]
[TR]
[TD]01-05-2017[/TD]
[TD]RM1[/TD]
[TD]110[/TD]
[/TR]
[TR]
[TD]01-05-2017[/TD]
[TD]RM2[/TD]
[TD]45[/TD]
[/TR]
[TR]
[TD]01-05-2017[/TD]
[TD]RM3[/TD]
[TD]75[/TD]
[/TR]
</tbody>[/TABLE]
Not all RM is used in all products. I want to get product cost by multiply rates to %age for given product and date.
Thanks for reading
Nilesh