我需要帮助来消除条形图中的空白。
数据集查询:
SELECT 'Excused' as Type, '9120' as Total, '< 5' as CountRange
UNION
SELECT 'Unexcused' as Type, '11540' as Total, '< 5' as CountRange
UNION
SELECT 'Excused' as Type, '10990' as Total, '5 - 9' as CountRange
UNION
SELECT 'Unexcused' as Type, '2966' as Total, '5 - 9' as CountRange
UNION
SELECT 'Excused' as Type, '6513' as Total, '10 - 14' as CountRange
UNION
SELECT 'Unexcused' as Type, '1101' as Total, '10 - 14' as CountRange
UNION
SELECT 'Excused' as Type, '3277' as Total, '15 - 20' as CountRange
UNION
SELECT 'Unexcused' as Type, '537' as Total, '15 - 20' as CountRange
UNION
SELECT 'Excused' as Type, '2195' as Total, '> 20' as CountRange
UNION
SELECT 'Unexcused' as Type, '627' as Total, '> 20' as CountRange
UNION
SELECT 'Perfect Attendance' as Type, '1401' as Total, ' ' as CountRange
Datafield = Total(不是默认的 Count(Total))
系列 = 类型
类别 = 计数范围
如果我删除了最后一个具有“完美出勤率”的 UNION,那么类别分组正是我想要的样子。当我介绍最后一个 UNION 时,它会给我一个关于每个类别分组的空白列。它也给了我最后一个分组的两个空白。
我尝试了多种方法来尝试过滤掉由于最后一个联合而发生的空白,但我似乎找不到正确的方法来做到这一点。SSRS 不是我通常工作的地方,所以这可能是一件非常简单的事情,我还没有偶然发现,或者在搜索解决方案时使用了正确的关键字。
我想要的结果是看到'< 5'、'5 - 9'、'10 -14'、'15 - 20'和'> 20'都有'Excused'和'Unexcused'条,然后是''最后有自己的“完美出席”栏。目前,每个分组似乎都有一个额外的“完美出席”栏。