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:
How can I correctly sort this filter's elements in descending order by calendar?
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.
Hello,
Try right-clicking the filter control. I think that you should find Sort in the context menu.
Sam
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.
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!
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.