MDX Drill Down Issue
Posted: Thu Sep 03, 2015 10:55 pm
Hello All,
I am trying to create an MDX expression for an active form to show all our sales regions and the sales locations (children) within each. I have the regions in a subset. Basically I want to show as if each [+] was clicked in the subset to expand each region. The sales locations are at varying heirarchy levels however, so doing TM1FILTERBYLEVEL will not work.
DRILLDOWNLEVEL seems like it should work but I have some regions that are not expanding. I think the issue is that these regions have multiple parents and somehow that is confusing things? If I create multiple parents for the other divisions then everything will expand but now the regions do not show up in the same order as in the original subset.
I was looking into using ORDER to sort the regions back the way they started. I'm not sure if I've set up the sort attribute correctly, I think it may just be an alias.
Here is the MDX expression I have: {ORDER( {DRILLDOWNLEVEL( {[Business Unit].[Regions Subset]} )}, [Business Unit].[Sort Attribute], DESC) }
Is there a better way to achieve the same goal of getting all locations to expand and all regions to appear in order?
Using TM1 10.2.2
I am trying to create an MDX expression for an active form to show all our sales regions and the sales locations (children) within each. I have the regions in a subset. Basically I want to show as if each [+] was clicked in the subset to expand each region. The sales locations are at varying heirarchy levels however, so doing TM1FILTERBYLEVEL will not work.
DRILLDOWNLEVEL seems like it should work but I have some regions that are not expanding. I think the issue is that these regions have multiple parents and somehow that is confusing things? If I create multiple parents for the other divisions then everything will expand but now the regions do not show up in the same order as in the original subset.
I was looking into using ORDER to sort the regions back the way they started. I'm not sure if I've set up the sort attribute correctly, I think it may just be an alias.
Here is the MDX expression I have: {ORDER( {DRILLDOWNLEVEL( {[Business Unit].[Regions Subset]} )}, [Business Unit].[Sort Attribute], DESC) }
Is there a better way to achieve the same goal of getting all locations to expand and all regions to appear in order?
Using TM1 10.2.2