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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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