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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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