MDX to sort Elements based on Substring
Posted: Wed Dec 09, 2009 3:00 am
Hi All,
I'm new to MDX but I want to sort the elements of a dimension based on a Substring of the element name. So I need something like this;
{
ORDER(
{ TM1FILTERBYLEVEL(
{TM1SUBSETALL( [Schedule] )}
,0)}
, SUBSTRING([Schedule],6,1), BDESC)
}
Of course the the syntax is wrong and I don't know if SUBSTRING or SUBST can be used in MDX. Can anyone point me in the right direction?
thanks,
Gregory
I'm new to MDX but I want to sort the elements of a dimension based on a Substring of the element name. So I need something like this;
{
ORDER(
{ TM1FILTERBYLEVEL(
{TM1SUBSETALL( [Schedule] )}
,0)}
, SUBSTRING([Schedule],6,1), BDESC)
}
Of course the the syntax is wrong and I don't know if SUBSTRING or SUBST can be used in MDX. Can anyone point me in the right direction?
thanks,
Gregory