我無法弄清楚我將如何做一個簡單的「order by」子句。您將如何訂購MDX查詢
以下是我的查詢 - 我將如何訂購Service Name
,然後通過Adjusted Incidents
?
SELECT
{[Measures].[Adjusted Incidents]} ON COLUMNS
,NON EMPTY
{
[Completed Inspections].[Service Name].[Service Name].ALLMEMBERS
*
[Inspected Items].[Item Name].[Item Name].ALLMEMBERS
}
DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS
FROM
(
SELECT
{
[Completed Inspections].[Customer Id].&[DRHOD]
,[Completed Inspections].[Customer Id].&[EMHST]
,[Completed Inspections].[Customer Id].&[EXHOU]
,[Completed Inspections].[Customer Id].&[ETRAD]
} ON COLUMNS
FROM [Inspections]
)
WHERE
(
[Calendar].[Month].&[2015-05-01T00:00:00]
,[Completed Inspections].[Is Reinspection].&[False]
)
CELL PROPERTIES VALUE;
也許這是一個副本:http://stackoverflow.com/questions/28689824/mdx-order-by-multiply-measures – whytheq