SAS Visual Analytics

Dashboards, reports, BI and analytics - all from a single interface.
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-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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
  • 904 views
  • 1 like
  • 2 in conversation