Use TOPCOUNT to get the top ones in order of the year you want
Posted: Tue Feb 15, 2022 7:53 am
cube name :Sales Test
dimension1 name :"Year"
dimension2 name :"Month"
dimension2 name : "Sales Analysis Measure" which have the "Quantity" Measure.
anyone know :
I want to build up a subset use topcount fx,because i want to do TopN analysis, now i want to get top 5 month sort by quantity using the mdx following, i see its The default value is in 2012 order , i want to sort by 2013's quantity , how i shou modify the mdx?
{
TOPCOUNT(
{ TM1FILTERBYLEVEL(
{tm1subsetall( [Month] )}
,0)}
,5
, [Sales Test].([Sales Analysis Measure].[Quantity]))
}
thanks a lot.
dimension1 name :"Year"
dimension2 name :"Month"
dimension2 name : "Sales Analysis Measure" which have the "Quantity" Measure.
anyone know :
I want to build up a subset use topcount fx,because i want to do TopN analysis, now i want to get top 5 month sort by quantity using the mdx following, i see its The default value is in 2012 order , i want to sort by 2013's quantity , how i shou modify the mdx?

{
TOPCOUNT(
{ TM1FILTERBYLEVEL(
{tm1subsetall( [Month] )}
,0)}
,5
, [Sales Test].([Sales Analysis Measure].[Quantity]))
}
thanks a lot.