Hi all,
I would like to connect a (year) date filter to multiple dates in the same datasource. When I map the data in the "Object links" (Actions menu) I can only map the filter to one date instead of multiple.
For instance:
When in the year filter "Date_1" 2022 is selected, 2022 should also be selected for Date_2, Date_3 and Date_4 that are being used in the report. All dates are from the same data source.
Do I need to create a parameter and how should I do this?
Many thanks!
Hello,
A filter action coming from a regular graph or table object will always filter on the specific data crossing that you selected.
For example, if you have a grouped bar chart of Sales * Month grouped by Region and you click the South bar for JAN2023, then the filter will be (REGION=South AND Month = JAN2023)
If you want to make a filter that is based on a parameter, you will need to:
1. Create a control such as a drop-down list or a button bar.
2. Assign a parameter to the control.
3. Create an advanced filter on the objects that you want to be affected by the parameter value. If you want this to be applied to multiple date columns, you can make a filter like
('Date'n = 'Parameter'p) OR ('Date2'n = 'Parameter'p)
You can add additional OR statements to cover 4 date columns if you want.
Let us know if that helps,
Sam
Hello,
A filter action coming from a regular graph or table object will always filter on the specific data crossing that you selected.
For example, if you have a grouped bar chart of Sales * Month grouped by Region and you click the South bar for JAN2023, then the filter will be (REGION=South AND Month = JAN2023)
If you want to make a filter that is based on a parameter, you will need to:
1. Create a control such as a drop-down list or a button bar.
2. Assign a parameter to the control.
3. Create an advanced filter on the objects that you want to be affected by the parameter value. If you want this to be applied to multiple date columns, you can make a filter like
('Date'n = 'Parameter'p) OR ('Date2'n = 'Parameter'p)
You can add additional OR statements to cover 4 date columns if you want.
Let us know if that helps,
Sam
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.