MS Access Pivot Table calculated values

I have a long list of "deals" each with a %margin on an advance (the amount the deal was for), the advance and a number of other fields e.g. manufacturer, retailer, equipment_type that I want to use as filter and I want to display the data by month (in yyyymm format - this is already calculated in the data)

I need to work with the weighted margin (margin*advance) which I have also calculated in the input query.

What I want to end up with is

(sum of weighted margin)/sum of advance

for each month which recalculates as the filter fields are applied.

Is this more than can be done in Access?  :-)
markremmsAsked:
Who is Participating?
 
Rory ArchibaldConnect With a Mentor Commented:
No idea what you mean - can you give a specific example? (You can't use an overall total at a higher level if that's what you mean)
0
 
Rory ArchibaldCommented:
If I understand correctly, the answer is no because the calculation will end up as:
SUM(margin)*SUM(advance)/SUM(advance)

and not

SUM(margin*advance)/SUM(advance)

EDIT:

Wait, I think I misread. If you have already calculated the weighted margin in the query (i.e. for each row) then yes a calculated field of margin/advance should provide what you need.
0
 
markremmsAuthor Commented:
So if I want to calculate detail something like:

x / sum( x)

then I can't?
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
Rory ArchibaldCommented:
A calculated field will always aggregate all fields it depends on. If your query has already calculated the weighted margin at the detail level then the calculated field should do what you want
0
 
markremmsAuthor Commented:
Thanks for that.  What I want to be able to do though is to use the sum to be a part of the calculation for a detail cell.
0
 
markremmsAuthor Commented:
OK - sorry.  Me failing to communicate.

The original data contains values for weighted margins.

On the pivot table these will be shown in groups (with a sum for each group if I wish)

Against each weighted margin I would like to calculate its proportion of the whole group so I want to divide its value by the sum for its group.

Sounds like that might be possible if I can refer to higher level totals. :-)
0
 
markremmsAuthor Commented:
Oh - you said can't...

Ah
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.