Solved

Date parameter - order by date reverse

Posted on 2013-01-18
6
386 Views
Last Modified: 2013-01-28
I have a drop down parameter by date --- is there any way to make the list go in reverse order by date?
0
Comment
Question by:vbnetcoder
  • 3
  • 2
6 Comments
 
LVL 11

Accepted Solution

by:
Simone B earned 500 total points
ID: 38793908
Each parameter should have its own data set. If you select your date parameter in the Dataset dropdown (in Data view), you should be able to add an ORDER BY clause as shown in the image.

Image
0
 

Author Comment

by:vbnetcoder
ID: 38793966
What I am doing is a little different because I am using SSAS cubes ... but I should be able to do that in the MDX. I will try
0
 
LVL 11

Expert Comment

by:Simone B
ID: 38793984
Yes, it will be the same thing. You need to specify the order in your parameter dataset. Sorry, I'm not an MDX-pert. The code is different, but the theory is the same. I'll poke around and see if I can find any examples.
0
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 
LVL 37

Expert Comment

by:ValentinoV
ID: 38796251
Ordering in MDX is not really comparable to T-SQL.  But it can be done nevertheless!  What you need to use is the ORDER() function.

Hace a look at the following article for some more examples besides the ones on MSDN: Ordering a Dimension Hierarchy in MDX
0
 

Author Comment

by:vbnetcoder
ID: 38807549
Having trouble getting this to work (I know nothing about MDX :():

This is my MDX ..... how would i order by YearAndMonth (not currently a field in this query).

WITH MEMBER [Measures].[ParameterCaption] AS [Sales Period].[Sales Period Name].CURRENTMEMBER.MEMBER_CAPTION MEMBER [Measures].[ParameterValue] AS [Sales Period].[Sales Period Name].CURRENTMEMBER.UNIQUENAME MEMBER [Measures].[ParameterLevel] AS [Sales Period].[Sales Period Name].CURRENTMEMBER.LEVEL.ORDINAL SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel]} ON COLUMNS , [Sales Period].[Sales Period Name].ALLMEMBERS ON ROWS FROM [MasterCube]
0
 

Author Closing Comment

by:vbnetcoder
ID: 38827311
This put me on the right track .... thank you.
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Written by Valentino Vranken. A while ago I wrote an article called Chart Optimization Tips (http://www.experts-exchange.com/articles/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Chart-Optimization-Tips.html).  This article explained how …
How to use Variables  and Custom code in SSRS report and Assembly reference to use compile shared code in SSRS. Its big question for all who are working with SSRS. It is easy to create assembly and refer in SSRS report, still there are some steps…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question