C
Claire
Hi
I am trying to create pie charts that have the data labels
and percentages visible, most of the time.
My problem is the fact that if a data value for my pie
chart is 0, the 0 shows up with its corresponding label at
the top of the pie. If more than one value for the same
record is 0, then the labels stack on top of each other.
What I would like is the 0 values and labels to not show
up at all for that record. Column (bar) charts hide values
and labels, why don't pies?
I have set the properties for the underlying queries so
that the 0 data values do not show in the queries, but
that is not following through to the pie.
I have tried IIF with unsuccessful results so any help is
huge.
My SQl for the pie is:
SELECT Null AS Expr1,
qryStaffMovementCurrentClass.SumOfintTerminationStaff,
qryStaffMovementCurrentClass.SumOfintRetireStaff,
qryStaffMovementCurrentClass.SumOfintLeaveStaff,
qryStaffMovementCurrentClass.SumOfintDisabilityStaff,
qryStaffMovementCurrentClass.SumOfintIncreaseStaff
FROM qryStaffMovementCurrentClass;
The SQL for the underlying query is:
SELECT tblClassifications.strClassification, Sum
([tblCurrentYear.intFtrStaff]+[tblCurrentYear.intPtrStaff]+
[tblCurrentYear.intNetReplaceStaff]) AS intCurrentStaff,
Sum([tblCurrentYear.sngFtrFte]+[tblCurrentYear.sngPtrFte]+
[tblCurrentYear.sngNetReplaceFte]) AS sngCurrentFte, Sum
(tblCurrentYear.intTerminationStaff) AS
SumOfintTerminationStaff, Sum
(tblCurrentYear.intRetireStaff) AS SumOfintRetireStaff, Sum
(tblCurrentYear.intLeaveStaff) AS SumOfintLeaveStaff, Sum
(tblCurrentYear.intDisabilityStaff) AS
SumOfintDisabilityStaff, Sum
(tblCurrentYear.intIncreaseStaff) AS
SumOfintIncreaseStaff, Sum
(tblCurrentYear.sngTerminationFte) AS
SumOfsngTerminationFte, Sum(tblCurrentYear.sngRetireFte)
AS SumOfsngRetireFte, Sum(tblCurrentYear.sngLeaveFte) AS
SumOfsngLeaveFte, Sum(tblCurrentYear.sngDisabilityFte) AS
SumOfsngDisabilityFte, Sum(tblCurrentYear.sngIncreaseFte)
AS SumOfsngIncreaseFte
FROM tblSites INNER JOIN (tblDepartments INNER JOIN
((((((tblClassifications INNER JOIN tblCurrentYear ON
tblClassifications.lngClassificationID =
tblCurrentYear.lngClassificationID) INNER JOIN tblFiveYear
ON tblCurrentYear.lngCurrentID = tblFiveYear.lngFiveID)
INNER JOIN tblNextYear ON tblCurrentYear.lngCurrentID =
tblNextYear.lngNextID) INNER JOIN tblTenYear ON
tblCurrentYear.lngCurrentID = tblTenYear.lngTenID) INNER
JOIN tblThreeYear ON tblCurrentYear.lngCurrentID =
tblThreeYear.lngThreeID) INNER JOIN tblTwoYear ON
tblCurrentYear.lngCurrentID = tblTwoYear.lngTwoID) ON
tblDepartments.lngDepartmentID =
tblCurrentYear.lngDepartmentID) ON tblSites.lngSiteID =
tblCurrentYear.lngSiteID
GROUP BY tblClassifications.strClassification;
THANK YOU!!!
Claire
I am trying to create pie charts that have the data labels
and percentages visible, most of the time.
My problem is the fact that if a data value for my pie
chart is 0, the 0 shows up with its corresponding label at
the top of the pie. If more than one value for the same
record is 0, then the labels stack on top of each other.
What I would like is the 0 values and labels to not show
up at all for that record. Column (bar) charts hide values
and labels, why don't pies?
I have set the properties for the underlying queries so
that the 0 data values do not show in the queries, but
that is not following through to the pie.
I have tried IIF with unsuccessful results so any help is
huge.
My SQl for the pie is:
SELECT Null AS Expr1,
qryStaffMovementCurrentClass.SumOfintTerminationStaff,
qryStaffMovementCurrentClass.SumOfintRetireStaff,
qryStaffMovementCurrentClass.SumOfintLeaveStaff,
qryStaffMovementCurrentClass.SumOfintDisabilityStaff,
qryStaffMovementCurrentClass.SumOfintIncreaseStaff
FROM qryStaffMovementCurrentClass;
The SQL for the underlying query is:
SELECT tblClassifications.strClassification, Sum
([tblCurrentYear.intFtrStaff]+[tblCurrentYear.intPtrStaff]+
[tblCurrentYear.intNetReplaceStaff]) AS intCurrentStaff,
Sum([tblCurrentYear.sngFtrFte]+[tblCurrentYear.sngPtrFte]+
[tblCurrentYear.sngNetReplaceFte]) AS sngCurrentFte, Sum
(tblCurrentYear.intTerminationStaff) AS
SumOfintTerminationStaff, Sum
(tblCurrentYear.intRetireStaff) AS SumOfintRetireStaff, Sum
(tblCurrentYear.intLeaveStaff) AS SumOfintLeaveStaff, Sum
(tblCurrentYear.intDisabilityStaff) AS
SumOfintDisabilityStaff, Sum
(tblCurrentYear.intIncreaseStaff) AS
SumOfintIncreaseStaff, Sum
(tblCurrentYear.sngTerminationFte) AS
SumOfsngTerminationFte, Sum(tblCurrentYear.sngRetireFte)
AS SumOfsngRetireFte, Sum(tblCurrentYear.sngLeaveFte) AS
SumOfsngLeaveFte, Sum(tblCurrentYear.sngDisabilityFte) AS
SumOfsngDisabilityFte, Sum(tblCurrentYear.sngIncreaseFte)
AS SumOfsngIncreaseFte
FROM tblSites INNER JOIN (tblDepartments INNER JOIN
((((((tblClassifications INNER JOIN tblCurrentYear ON
tblClassifications.lngClassificationID =
tblCurrentYear.lngClassificationID) INNER JOIN tblFiveYear
ON tblCurrentYear.lngCurrentID = tblFiveYear.lngFiveID)
INNER JOIN tblNextYear ON tblCurrentYear.lngCurrentID =
tblNextYear.lngNextID) INNER JOIN tblTenYear ON
tblCurrentYear.lngCurrentID = tblTenYear.lngTenID) INNER
JOIN tblThreeYear ON tblCurrentYear.lngCurrentID =
tblThreeYear.lngThreeID) INNER JOIN tblTwoYear ON
tblCurrentYear.lngCurrentID = tblTwoYear.lngTwoID) ON
tblDepartments.lngDepartmentID =
tblCurrentYear.lngDepartmentID) ON tblSites.lngSiteID =
tblCurrentYear.lngSiteID
GROUP BY tblClassifications.strClassification;
THANK YOU!!!
Claire