BookmarkSubscribeRSS Feed
KarunaTiwari
Obsidian | Level 7

Hi All,

 

I have three dropdowns for Year, Quarter and Month in a Report.

I have created a cascaded prompt from Year to Quarter to Month such that when I select an year , corresponding quarter is filtered and when i select the Quarter , corresponding months are filtered.

 

Now I have the below 2 requirements:

1. First I select an year , then quarter and then month. Now if I clear the year , quarter and month dropdowns should also be cleared.

2. If I have not selected year or quarter, i should not be able to select month also.

 

Thanks in advance,

Karuna 

1 REPLY 1
FredrikE
Rhodochrosite | Level 12

I think the easiest would be if tou create a separate data table with the time dimension and add one row for non selections.

Example:

Year    quarter  month

None   None    None

2017   q1         jan

2017   q1         feb

2017   q1         mar

....       ....         .....

 

Then you either link the drop downs to your ordinary data or create a filter using parameters.

 

IN the drop boxes you select mandatory and then sort them so that the non selection comes first 🙂

//Fredrik

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 1 reply
  • 724 views
  • 0 likes
  • 2 in conversation