I'm trying to create a totals value in my pivot table.
I am drawing from a query that has several fields, the ones used in the math are:
LF Run--how much material was run
LF Produced--how much became finished product
Waste--difference between LF Run and LF Produced is the amount of waste
Waste%--Waste divided by LF Run gives percentage of overall waste
I have four columns and three of the columns are set to sum total themselves (LF Run, LF Produced, Waste). What I need to do is create a formula (in the pivot table itself?) that will produce the results of Waste%=Waste/LF Run and to place that answer in the column for Waste%, in the total area.
I can get this to work for each individual record that makes up the totals in the pivot table because in the query, in the field name box under design mode, I've typed in "Waste%: [Waste]/[LF Run]" in the field name box so when the query runs, it does the math on the fly and provides the answer for each record. Of course, when I collapse the details, to only see summary in the pivot table, there are sum totals for LF Run, LF Produced, and Waste, just not Waste%.
I've tried creating a calculated field in the pivot table, by selecting, from the Design tab, formulas, create calculated detail field, and on the calculations tab I've typed in every value I can see available to me, such as Sum of Waste (Total)/Sum of LF Run (Total) and many variations. I've also used brackets but still get a ##error message in the column.
Unfortunately I cannot upload a pic with this post to show visually what I mean. I hope I'm being clear.
Please help me with this. I will respond with as much additional info as I can.
Thanks;
Chris
I am drawing from a query that has several fields, the ones used in the math are:
LF Run--how much material was run
LF Produced--how much became finished product
Waste--difference between LF Run and LF Produced is the amount of waste
Waste%--Waste divided by LF Run gives percentage of overall waste
I have four columns and three of the columns are set to sum total themselves (LF Run, LF Produced, Waste). What I need to do is create a formula (in the pivot table itself?) that will produce the results of Waste%=Waste/LF Run and to place that answer in the column for Waste%, in the total area.
I can get this to work for each individual record that makes up the totals in the pivot table because in the query, in the field name box under design mode, I've typed in "Waste%: [Waste]/[LF Run]" in the field name box so when the query runs, it does the math on the fly and provides the answer for each record. Of course, when I collapse the details, to only see summary in the pivot table, there are sum totals for LF Run, LF Produced, and Waste, just not Waste%.
I've tried creating a calculated field in the pivot table, by selecting, from the Design tab, formulas, create calculated detail field, and on the calculations tab I've typed in every value I can see available to me, such as Sum of Waste (Total)/Sum of LF Run (Total) and many variations. I've also used brackets but still get a ##error message in the column.
Unfortunately I cannot upload a pic with this post to show visually what I mean. I hope I'm being clear.
Please help me with this. I will respond with as much additional info as I can.
Thanks;
Chris