jpkeller55
Technical User
I have data from a query (NRqry) that looks like this:
ClientName ServiceDate NetRevenue GrossMargin
Jones 3/12/07 5,000 1,800
Jones 3/27/07 6,000 2,300
Jones 4/01/07 3,500 1,900
Smith 3/15/07 4,000 2,000
Smith 3/21/07 3,500 1,700
Smith 4/05/07 4,500 1,900
I would like to run a query that will return something that totals NetRevenue and totals GrossMargin and then calculates the GM% (GrossMargin/NetRevenue) so it would look like this:
[blue]ClientName TotalNR TotalGM GM%
Jones 14,500 6,000 41.4%
Smith 12,000 5,600 46.7%
[/blue]
I have tried to use the Cross Tab query wizard in Access 2000 but it only calculates one total. Any help with some script to accomplish this would be greatly appreciated.
Thanks, JK
ClientName ServiceDate NetRevenue GrossMargin
Jones 3/12/07 5,000 1,800
Jones 3/27/07 6,000 2,300
Jones 4/01/07 3,500 1,900
Smith 3/15/07 4,000 2,000
Smith 3/21/07 3,500 1,700
Smith 4/05/07 4,500 1,900
I would like to run a query that will return something that totals NetRevenue and totals GrossMargin and then calculates the GM% (GrossMargin/NetRevenue) so it would look like this:
[blue]ClientName TotalNR TotalGM GM%
Jones 14,500 6,000 41.4%
Smith 12,000 5,600 46.7%
[/blue]
I have tried to use the Cross Tab query wizard in Access 2000 but it only calculates one total. Any help with some script to accomplish this would be greatly appreciated.
Thanks, JK