BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
fda2
Obsidian | Level 7

Hello,

This is my first post here, I will try to be as clear as I can. I am new to SAS Environment.

I have a report date filter in my SAS VA report above a prompt container. The filter's elements are created to behave as :

- If the date is today or yesterday, then the report date column is shown as "2024/11/04 (today)" or "2024/11/03 (yesterday)".

- For other days report date filter shows the exact date (e.g. 2024/11/02).

I want to sort my filter's elements in descending order. But when I do this, filter elements are ordered like below: 

fda2_0-1730753285932.png

How can I correctly sort this filter's elements in descending order by calendar?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Sam_SAS
SAS Employee

Looking at your screen capture above, I believe the values are being sorted in descending order as character values rather than as dates. I'm not sure you can customize the display with (Today) and keep date sorting, unless you switch to a date format that sorts well as character data such as YYYYMMDD.

View solution in original post

3 REPLIES 3
Sam_SAS
SAS Employee

Hello,

Try right-clicking the filter control. I think that you should find Sort in the context menu.

 

Sam

fda2
Obsidian | Level 7
When I right-click the filter, and hover over sort option, I see Asc and Desc options. But as I mention in my case, these options dont give the exact sorting option because my filter elements are a bit changed from calendar date.
Sam_SAS
SAS Employee

Looking at your screen capture above, I believe the values are being sorted in descending order as character values rather than as dates. I'm not sure you can customize the display with (Today) and keep date sorting, unless you switch to a date format that sorts well as character data such as YYYYMMDD.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 534 views
  • 1 like
  • 2 in conversation