父子维度在ssrs中显示。
1.mdx:
with
member [Measures].[ids] as ([组织机构维].[PARENTID].currentmember.name) member [Measures].[parentids] as ([组织机构维].[PARENTID].currentmember.parent.name)SELECT
NON EMPTY {[Measures].[parentids],[Measures].[ids],[Measures].[SaleAmount] } ON 0, {[组织机构维].[PARENTID].allmembers } ON 1 FROM [GPS]2.在rdlc中拖放一个矩阵,把ids放到行组,把SaleAmount放到列组。
3.点击行组属性,
可见性:隐藏,勾选可通过报表项切换显示,选ids。
高级:递归父级,选parentids。
4.点击id文本框属性,
对齐:左的fx填写: =level()*20 & "pt" 就好了。 20 30的都行。