I am currently using a calculated measure to multiple "COST PER LB" from Table A by "REQUESTED LBS" from Table B.
This works great when I put the calculated measure result in a bar chart, with the axis being "ITEM." On an individual basis, like in the bar chart or table, it calculates as intended.
However, I'm not able to see an accurate total.
I'll use an example that everyone might be able to better relate to (see attached):
I go to the Grocery store to purchase 3 lbs of Bananas for $1.20. So on Table A, I have BANANAS (ITEM COLUMN), $1.20 (COST COLUMN), 3 (LB COLUMN), and $0.40 (COST PER LB COLUMN). On Table B, I have BANANAS (REQUESTED ITEM COLUMN) and 10 (REQUESTED LBS COLUMN). Using the calculated field mentioned above, multiplying "COST PER LB" from Table A by "REQUESTED LBS" from Table B, we get $4.00. So far everything is correct.
But these tables have much more than one row obviously and once you now factor in, say ORANGES (ITEM COLUMN) at $1.05 (COST PER LB COLUMN). Then again on Table B, I have ORANGES (REQUESTED ITEM COLUMN) and 20 (REQUESTED LBS COLUMN). What should be a combined total of $25.00, but inaccurately displays $43.50.
I understand the reason, which is why I underlined should and inaccuractely. The calculcation is summing the total COST PER LB to be $1.45 and multiplying that by the total REQUESTED LBS at 30 (as opposed to handling both operatings in parenethesis before summing together).
Any ideas on how would I solve this?