BookmarkSubscribeRSS Feed
ashu464810
Calcite | Level 5

Hi, I have a report which is based on OLAP Cube and it is having Time as dimension. When I am trying to sort the Year, Month,Day in descending order only year is getting sorted other  level are coming in random order. For ex- month is coming as Dec Nov Jan Mar Oct etc . Same is the case with Day level. Any workaroud how to resolve the issue.


Cube.png
4 REPLIES 4
Madelyn_SAS
SAS Super FREQ

There is an option on the Data menu that says "Include Members with Only Missing Values." If this option is unchecked, then I suggest checking it to see if that changes the behavior.

 

 

ashu464810
Calcite | Level 5

@Madelyn_SAS Where exactly this  option is available. Can you please give exactly where to look for this option.

Madelyn_SAS
SAS Super FREQ

When you are viewing your OLAP report, select the Data menu. I am attaching an image. If this option is not checked, then try checking it to see if it changes the sort behavior.

 

Here are some other notes related to date sorting for OLAP:

 

Other thoughts:

  • Did explicitly sort the Time dimension in the table? You right click on the column header (Year, in your case, I think) to open the menu.
  • When you defined the cube, what sort order did you select. I believe that there are 5
    •ascending unformatted
    •descending unformatted
    •ascending formatted
    •descending formatted
    •data set order

 

 

 


olap_missing_members.jpg
ashu464810
Calcite | Level 5

I have given year heirarchy as inherited ascending format ,month as inherit ascending format and date when I have given Ascending Formated ,days are coming fine but still the month are not coming in sorted order. I tried to give all the possible format available to the month column level but all in vain....Nothing changed. I also added the option include the missing value as you mentioned but that also not working properly.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1049 views
  • 2 likes
  • 2 in conversation