MDX Order to Sort
Posted: Wed Dec 11, 2019 5:36 pm
Hi, I'm reading and testing to use MDX Order function to sort dimension element based on cube value. I think I got 80-90% but Expression Window in Subset Editor still gives me syntax error. Here's information:
Cube Name: Cube
Dimensions: DimA t0 DimE (with "$" being the measure in "DimE")
Dimension to be sorted : DimC
Here's my MDX code:
Thanks!
Kenneth
Cube Name: Cube
Dimensions: DimA t0 DimE (with "$" being the measure in "DimE")
Dimension to be sorted : DimC
Here's my MDX code:
Code: Select all
{
ORDER(
{TM1FILTERBYLEVEL(
{TM1SUBSETALL( [ Cube ] )}
,0)
}
,[Cube].(
[DimA].[(All Dim A)]
,[DimB].[(All Dim B)]
,[DimD].[(All Dim D)]
,[DimE].[$]
)
,[DimC] BDESC
)
}
Kenneth