Controlling sum totals for queries and reports generated from heirarchal tables.

BruceWaller

New Member
Joined
Jul 12, 2011
Messages
9
I have a "Sales Order" table from which I have queried "Sales Order Number", "Customer", "Total Sales Amount", "Total Cost", and "Total Profit".

However... in a relational table for "Sales Order Line Items" I need to pull in the field for "Item Description" so that whoever is viewing the query/report will see the line items.

When I run this query it pulls a new record for every line item. So if I have 3 line items on an order... there are 3 individual records for that sales order... and each of these records include the Sales...Cost...Profit fields. This prevents me from providing Sales Order sum totals.

How can I create a query or report that will pull the "Item Description" into view without affecting the Sales Order financials?
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Have you set up the relationship between the two tables as 1-many?

Have you set up grouping on your report?

One way (less efficient) is to use DLookup if your requirement is that simple.
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,733
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top