ReportPortal
ReportPortal
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ReportPortal General Forum
 Report Portal Wish List
 Top N Filter tuple based
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

siko

25 Posts

Posted - 12/01/2009 :  04:26:18  Show Profile  Click to see siko's MSN Messenger address  Reply with Quote
I think Top N filter functionality should be implemented based on tuple as currently if more than 1 dimension is present on the column and user apply top N filter then it doesn't return top 10 Members

Current Implementation MDX:

Select non empty TopCount(HIERARCHIZE(DISTINCT({{
[Customers].[Name].Members}})),10,[Measures].[Store Sales]) on rows,
non empty Crossjoin(HIERARCHIZE(DISTINCT({Crossjoin({
[Gender].[All Gender].[M]},
{[Time].[1997].[Q1]}
)})),{
[Measures].[Store Sales]}) on columns
From [Sales]



Recommended solution MDX:


SELECT { CrossJoin({[Gender].[Gender].[M]}, CrossJoin({[Time].[Year].[1997].[Q1]}
,{Measures.[Store Sales]}))} ON COLUMNS,
NON EMPTY {Filter ({TopCount({[Customers].[Name].members}
,10.0,
([Measures].[Store Sales] , [Gender].[Gender].[M], [Time].[Year].[1997].[Q1])
)}, ( 1 = 1 ))} ON ROWS

FROM [Sales]


* I need other users feedback on this as i think this is a very important functionality to be implemented.
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
ReportPortal © 2000-2002 Snitz Communications Go To Top Of Page