TopCount
Posted: Mon Jul 30, 2012 8:14 pm
Hi All,
From what I've read and seen in my own testing, it appears that the Topcount funtion can use only one dimension for the measure dimension. Adding a second dimension effectively nullifies the measure dimension and the Topcount simeply returns the first x number of elementsin the set. Is that true? If yes then there must be a workaround to produce the top ten customers based on several dimensions. For example I want to see a top ten list for customers for Sales in the 'Actual' scenario, for the year '2012' for the brand 'XYZ'.
SubSetCreatebyMDX('TopCustomer',
'{TopCount
({TM1FILTERBYLEVEL( {TM1SUBSETALL( [Customer] )}, 2)},
10, [OCRrevenue].([Actual])
)}'
);
Thinking ahead I am assuming the the solution will be to use a filter where scenario = 'Actual', Year = '2012' and brand = 'XYZ'. If that is the case , how do include the filter statment in the above syntax?
Any help would be greatly appreciated.
Thanks - John
From what I've read and seen in my own testing, it appears that the Topcount funtion can use only one dimension for the measure dimension. Adding a second dimension effectively nullifies the measure dimension and the Topcount simeply returns the first x number of elementsin the set. Is that true? If yes then there must be a workaround to produce the top ten customers based on several dimensions. For example I want to see a top ten list for customers for Sales in the 'Actual' scenario, for the year '2012' for the brand 'XYZ'.
SubSetCreatebyMDX('TopCustomer',
'{TopCount
({TM1FILTERBYLEVEL( {TM1SUBSETALL( [Customer] )}, 2)},
10, [OCRrevenue].([Actual])
)}'
);
Thinking ahead I am assuming the the solution will be to use a filter where scenario = 'Actual', Year = '2012' and brand = 'XYZ'. If that is the case , how do include the filter statment in the above syntax?
Any help would be greatly appreciated.
Thanks - John