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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—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
  • 1 reply
  • 1067 views
  • 0 likes
  • 2 in conversation