I currently have a Totals Query that I want to take to excel to produce a pie chart.
The results of the query looks as follows:
SYSTEM GROUP MECHANICAL TOTALS
Coolant System 3
Cooling Systme 1
Engine 3
Transmission 3
Total Work Units 5
The System Group will expand or shrink depending on how many work units and what time frame my query is on. I know that I will need to make this a Dynamic Chart in Excel to allow for the expanding and shrinking. My problem is as follows:
I want the pie chart to only show the System Groups and not the Total Work Units as part of the pie chart. I would like the Total Work Units to appear as a title on the Pie Chart. Can this be done? If so how?
Code:
Select SystemGroup, Count(*) As [Mechanical Totals]
From WorkUnitsFaultsMainTBL
WHERE (((WorkUnitsFaultsMainTBL.FaultCategory)<>"No Faults") AND (WorkUnitsFaultsMainTBL.FaultCategory)<>"Cosmetic") And ([TodaysDate] Between [Forms]![WorkUnitsFaultsMainFRM]![StartDateTxt] And [Forms]![WorkUnitsFaultsMainFRM]![EndDateTxt])
Group By SystemGroup
UNION ALL Select 'Total Work Units', count([WorkUnit]) from (select distinct [WorkUnit]
From WorkUnitsFaultsMainTBL
WHERE (((WorkUnitsFaultsMainTBL.FaultCategory)<>"No Faults") AND (WorkUnitsFaultsMainTBL.FaultCategory)<>"Cosmetic") And ([TodaysDate] Between [Forms]![WorkUnitsFaultsMainFRM]![StartDateTxt] And [Forms]![WorkUnitsFaultsMainFRM]![EndDateTxt]));
The results of the query looks as follows:
SYSTEM GROUP MECHANICAL TOTALS
Coolant System 3
Cooling Systme 1
Engine 3
Transmission 3
Total Work Units 5
The System Group will expand or shrink depending on how many work units and what time frame my query is on. I know that I will need to make this a Dynamic Chart in Excel to allow for the expanding and shrinking. My problem is as follows:
I want the pie chart to only show the System Groups and not the Total Work Units as part of the pie chart. I would like the Total Work Units to appear as a title on the Pie Chart. Can this be done? If so how?