K
Kevin Labore
Hi
I have a report based on a query. The report works fine.
I guess what I would like to do is to have a graph for each group(Deptname)
I want to show the Series by year with the graph showing weeks/$ amt
Can you base a graph on the report results? Do you have to do a graph based
on query/table?
The query that the report is created from has the following.
TRANSFORM Sum([DeptsSales Query].DeptSales) AS SumOfDeptSales
SELECT (DatePart("ww",([deptdate]+(7-(DatePart("w",[deptDate])))),1,1)) AS
Week, [DeptsSales Query].DeptDesc, Avg(([deptsales])) AS AvgWeek
FROM [DeptsSales Query]
GROUP BY (DatePart("ww",([deptdate]+(7-(DatePart("w",[deptDate])))),1,1)),
[DeptsSales Query].DeptDesc
ORDER BY (DatePart("ww",([deptdate]+(7-(DatePart("w",[deptDate])))),1,1)),
[DeptsSales Query].DeptDesc, DatePart("yyyy",[deptdate],1,1) DESC
PIVOT DatePart("yyyy",[deptdate],1,1);
The report works fine as I said, the query ensures that the week ends on a
Saturday.
The report then groups by: Deptdesc and Week
The years are in Cols, and weeks in rows.
I am confident with Excel graphs, and have exported queries to work with
Excel with them but this would work very well in this case.
Can someone tell me how I would go about making either a graph based on the
report or the query to get the results I desire
Do I need a different query?
I would like a graph like below:
* , @ represents years
__________________________________________
|
|
|
|
|
|
| @
|
| * @ @
|
| * * @* @
|
| * @ @
|
__________________________________________
Weeks
Do I need to place with the Rowsource or what?
Thanks for any help
Kevin
I have a report based on a query. The report works fine.
I guess what I would like to do is to have a graph for each group(Deptname)
I want to show the Series by year with the graph showing weeks/$ amt
Can you base a graph on the report results? Do you have to do a graph based
on query/table?
The query that the report is created from has the following.
TRANSFORM Sum([DeptsSales Query].DeptSales) AS SumOfDeptSales
SELECT (DatePart("ww",([deptdate]+(7-(DatePart("w",[deptDate])))),1,1)) AS
Week, [DeptsSales Query].DeptDesc, Avg(([deptsales])) AS AvgWeek
FROM [DeptsSales Query]
GROUP BY (DatePart("ww",([deptdate]+(7-(DatePart("w",[deptDate])))),1,1)),
[DeptsSales Query].DeptDesc
ORDER BY (DatePart("ww",([deptdate]+(7-(DatePart("w",[deptDate])))),1,1)),
[DeptsSales Query].DeptDesc, DatePart("yyyy",[deptdate],1,1) DESC
PIVOT DatePart("yyyy",[deptdate],1,1);
The report works fine as I said, the query ensures that the week ends on a
Saturday.
The report then groups by: Deptdesc and Week
The years are in Cols, and weeks in rows.
I am confident with Excel graphs, and have exported queries to work with
Excel with them but this would work very well in this case.
Can someone tell me how I would go about making either a graph based on the
report or the query to get the results I desire
Do I need a different query?
I would like a graph like below:
* , @ represents years
__________________________________________
|
|
|
|
|
|
| @
|
| * @ @
|
| * * @* @
|
| * @ @
|
__________________________________________
Weeks
Do I need to place with the Rowsource or what?
Thanks for any help
Kevin