Hi,
I got some great help here on a related issue that really dramatically improved the efficiency of some queries I was running. But now I'm running into a new problem on the same project.
For background: what I'm trying to do is compare profitability on a given set of products between two budget cycles. So I've got Product A and a list of profitability variables for that product (sales per year, revenue per sale, etc.) and the final query has the same data for two different budget periods (the budget period completed two years ago and the budget period completed last year).
What I'd like to do is compare all the profitability variables for each product for each year side-by-side.
I tried looking at a cross-tab query, but I don't think this will work because it only allows up to 3 row headers and can only summarize data for 1 field, whereas I'd like to see the summary for all of the profitability drivers. (I also keep getting an error about using a TempVar as a column header; I suspect this is because I'm using a couple TempVars as criteria for the budget period column in one of the supporting queries, but I don't understand why that's not fully resolved by the time the cross-tab query has run.)
My purpose is to be able to compare profitability from one budget period to the next and figure out what changes impacted profitability.
Any ideas on how to do this? What I tried initially so far hasn't worked at all.
I got some great help here on a related issue that really dramatically improved the efficiency of some queries I was running. But now I'm running into a new problem on the same project.
For background: what I'm trying to do is compare profitability on a given set of products between two budget cycles. So I've got Product A and a list of profitability variables for that product (sales per year, revenue per sale, etc.) and the final query has the same data for two different budget periods (the budget period completed two years ago and the budget period completed last year).
What I'd like to do is compare all the profitability variables for each product for each year side-by-side.
I tried looking at a cross-tab query, but I don't think this will work because it only allows up to 3 row headers and can only summarize data for 1 field, whereas I'd like to see the summary for all of the profitability drivers. (I also keep getting an error about using a TempVar as a column header; I suspect this is because I'm using a couple TempVars as criteria for the budget period column in one of the supporting queries, but I don't understand why that's not fully resolved by the time the cross-tab query has run.)
My purpose is to be able to compare profitability from one budget period to the next and figure out what changes impacted profitability.
Any ideas on how to do this? What I tried initially so far hasn't worked at all.