I am new to MDX Queries. I am currently trying to calculate the percentage of orders cancelled. The status code for cancelled orders is 3. But it's proofing so difficult for me. I've searched online for hint but still not able to figure out. The code below calculate the number of Cancelled orders correctly but I need to then find out the percentage of the cancelled orders Here's my code below: Will really appreciate any help.
SELECT NON EMPTY { [Measures].[Order Group Count] } ON COLUMNS FROM (
SELECT ( { [Order Status].[Status Code].&[3] } ) ON COLUMNS FROM [NCube])
WHERE ( [Order Status].[Status Code].&[3] )
CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE,
FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
Many thanks in Advance