August 6, 2014 at 2:09 am
Hi All,
I required each geography wise which product is highest sales . will you please help me any one idea in mdx how to write this query.
August 6, 2014 at 10:37 pm
You don't give much information so you can't really expect any detailed replies
Have a look at the MAX aggregation function
August 8, 2014 at 4:13 am
Hi ,
Thanks for the reply. Any how i got the solution
WITH SET Top10Cust AS
[DimGeographyBuyer].[State].[State]
set topP as
Generate( {Top10Cust}, CrossJoin( {[DimGeographyBuyer].[State].CurrentMember},
TopCount([DimProduct].[MaterialId].[MaterialId].Members, 1, ([Measures].[DistributorSalesSum]))))
SELECT
{([Measures].[DistributorSalesSum]) } ON COLUMNS ,
non empty {topP}
ON ROWS
FROM (SELECT ( { [MarketYear].[MarketYearHierarchy].[MARKETYEAR].&[2014] } ) ON COLUMNS
FROM
[Mycube])
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply