假设您的数据集是
Street
Housenumber
InhabitantNumber
InhabitantDataType
InhabitantDataValue
所以你可能有
Monkeystreet : 23 : 1 : Name : Bob Smith
Monkeystreet : 23 : 1 : DOB : 01.01.1950
Monkeystreet : 23 : 2 : Name : Sheila Smith
Monkeystreet : 23 : 2 : MaritalStatus: Married
Monkeystreet : 27 : 1 : Name : John Doe
Goatroad : 15 : 1 : Name : Sally Mither
Goatroad : 15 : 1 : DOB : 02.02.1970
注意:每个居民可能有不同数量的数据
现在我转动这些数据
所以列是
Street : HouseNumber : Inhabitant : InhabitantData
MonkeySt. : 23 : 1 : Name: BobSmith
DOB : 01.01.1950
: 2 : Name: SheilaSmith
MarSt: Married
: 27 : 1 : Name: John Doe
-------------------------------------------------------------
Goatroad : 15 : 1 : Name: Sally Mither
: DOB : 02.02.1970
所以我在'streetname'上有一个行分组,在'housenumber'上有一个分组,而'居民数据'在表格详细信息组中
如何通过切换使“居住”数据“显示”或“隐藏”?
答案 0 :(得分:2)
您实际上需要第三个分组才能使切换工作。如果您按InhabitantNumber分组,然后为该分组添加切换,您将能够显示和隐藏InhabitantData。
我使用测试查询来创建附加到帖子的模拟数据,并实际使用报告向导来创建这种确切的行为。如果您通过BIDS中的报表向导编写查询,则可以执行以下步骤:
这是为每个分组报告创建阶梯/切换的最简单方法。您可以手动创建它,但只需确保添加第三个分组(通过InhabitantNumber)并启用切换。
-Paul