0

SUM function based on a linked table

Hello,

We've recently install JET and are looking to do more with it all the time. I've been asked for something which I cannot work out the easiest / quickest way of completing.

We run Dynamics NAV in a retail environment.

We would like to be able to calculate the total transaction value for any transaction (Transaction Table) that contains a certain item number (Trans. Sales Entry). So rather than knowing the total value of the specific item sold we want the total value of any transaction containing that item including the the value of additional items.

So to me it looks like it the Total Table is the "Transaction" table and the linked one should be the "Trans. Sales Entry" table but i'm not sure of how to make the formula work without every transaction appearing in the sheet - which is time consuming and messy to be honest.

For anyone not in retail, it could be looked at as:
Transaction :- Sales Header
Trans. Sales Entry :- Sales Line

To summarise I'm trying to get a filtered sum from the header table based on the equivalent line table containing an item that we specify.

I've tried every which way I can think of to no effect.

Please can someone shed some light on this please?

Many Thanks

Chris

4 comments

Please sign in to leave a comment.