Hi all
I have an unbalanced dimension (Country), and I want to show level 0 items only, but it has to be based on user's selection.
e.g.
C: Total
C: Region 1
N: Country 1
N: Country 2
C: Region 2
N: Country 3
N: Country 4
For example, if the user select Level 0 Country 1, then I want my report to show Country 1 only.
If the user select Region 1 (Consolidated element), then I want my report to show Country 1 & Country 2 (level 0) under this region
If the user select Total, then the report will show Country 1, 2, 3 and 4. (all level 0)
I am using TM1RPTROW for the report, am thinking to use MDX to do it. But I am not sure how can I just filter down to level 0 based on user's selection.
Thanks in advance.
Regards
Phyllis
Active report - Filter down to Level 0 based on selection
-
- Posts: 22
- Joined: Tue Aug 13, 2013 2:35 pm
- OLAP Product: TM1
- Version: TM1 10.1
- Excel Version: 2007
Re: Active report - Filter down to Level 0 based on selectio
if I put in the Region, then it works.
TM1RPTROW($C$9,pServer&":Country",,,,,"{DRILLDOWNLEVEL( {[Country].[Region 1]})}")
But if I like it to a cell like below, then it doesn't work.
=TM1RPTROW($C$9,pServer&":Country",,,,,"{DRILLDOWNLEVEL( {[Country].$D$18})}")
TM1RPTROW($C$9,pServer&":Country",,,,,"{DRILLDOWNLEVEL( {[Country].[Region 1]})}")
But if I like it to a cell like below, then it doesn't work.
=TM1RPTROW($C$9,pServer&":Country",,,,,"{DRILLDOWNLEVEL( {[Country].$D$18})}")
-
- Posts: 22
- Joined: Tue Aug 13, 2013 2:35 pm
- OLAP Product: TM1
- Version: TM1 10.1
- Excel Version: 2007
Re: Active report - Filter down to Level 0 based on selectio

=TM1RPTROW($C$9,pServer&":Country",,,,,"{DRILLDOWNLEVEL( {[Country].[" & $D$18 & "] })}")
-
- Posts: 22
- Joined: Tue Aug 13, 2013 2:35 pm
- OLAP Product: TM1
- Version: TM1 10.1
- Excel Version: 2007
Re: Active report - Filter down to Level 0 based on selectio
Actually should be using TM1DRILLDOWNMEMBER instead of DRILLDOWNLEVEL
-
- MVP
- Posts: 733
- Joined: Wed May 14, 2008 11:06 pm
Re: Active report - Filter down to Level 0 based on selectio
Good for you!wypwong wrote:I found the way to do it now, so happy.
The general syntax for that sort of dynamic expression is:
Code: Select all
{TM1FILTERBYLEVEL(
{TM1DRILLDOWNMEMBER( {[YOUR_DIMENSION].[YOUR_ELEMENT]} , ALL, RECURSIVE)},
0
)}
Robin Mackenzie