K
knowshowrosegrows
I don't have the skills to get where I want to be.
Goal - A table that tells me how the utilization of each of 72 programs
changes daily between a time frame that I designate. I can calculate the
utilization. I can make the form where I put in the BegDate and EndDate.
I need a querie/pivot that would have column heads
Prm_Code
1/1/08
1/2/08
1/3/08
etc.
The larger the time frame I choose, the more date columns I have running
left to right across the page.
There will always be 72 rows because I only have 72 programs.
Each row will tell me the result of my uitilization calculation for that
program for that column date.
I have something similar that gives me similar data but by month. I can't
seem to make one that gives me days. The SQL for that is:
TRANSFORM Avg([qryUtilizationMonths].Utilization) AS Utilization
SELECT [qryUtilizationMonths].Prm_Code,
Avg([qryUtilizationMonths].Utilization) AS [Average Of Utilization]
FROM [qryUtilizationMonths]
WHERE ((([qryUtilizationMonths.CensusDate]) Between
DateAdd("yyyy",-1,Date()) And Date()))
GROUP BY [qryUtilizationMonths].Prm_Code
PIVOT Format(CensusDate,"yyyy mm") & "(This month - " &
DateDiff("m",[CensusDate],Date()) & ")";
Is that clear? Can you help me?
Goal - A table that tells me how the utilization of each of 72 programs
changes daily between a time frame that I designate. I can calculate the
utilization. I can make the form where I put in the BegDate and EndDate.
I need a querie/pivot that would have column heads
Prm_Code
1/1/08
1/2/08
1/3/08
etc.
The larger the time frame I choose, the more date columns I have running
left to right across the page.
There will always be 72 rows because I only have 72 programs.
Each row will tell me the result of my uitilization calculation for that
program for that column date.
I have something similar that gives me similar data but by month. I can't
seem to make one that gives me days. The SQL for that is:
TRANSFORM Avg([qryUtilizationMonths].Utilization) AS Utilization
SELECT [qryUtilizationMonths].Prm_Code,
Avg([qryUtilizationMonths].Utilization) AS [Average Of Utilization]
FROM [qryUtilizationMonths]
WHERE ((([qryUtilizationMonths.CensusDate]) Between
DateAdd("yyyy",-1,Date()) And Date()))
GROUP BY [qryUtilizationMonths].Prm_Code
PIVOT Format(CensusDate,"yyyy mm") & "(This month - " &
DateDiff("m",[CensusDate],Date()) & ")";
Is that clear? Can you help me?