BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
touwen_k
Pyrite | Level 9

I have a quesiton: in a drop-down list I have values as last wk, last 12 wks etc. I would like to select this value and based on that filter my crosstab table( I have a week value there). how to do it? regards Karolina T

1 ACCEPTED SOLUTION

Accepted Solutions
acordes
Rhodochrosite | Level 12

Create an item today as datepart(now())

Then add a slider as a filter, assign a parameter to it allowing for week shifts from 1 to 12.

then apply an advanced filter to your object, this resolves to true if the date variable is greater then the shifted date from today.

a2.pnga1.png

View solution in original post

2 REPLIES 2
acordes
Rhodochrosite | Level 12

Create an item today as datepart(now())

Then add a slider as a filter, assign a parameter to it allowing for week shifts from 1 to 12.

then apply an advanced filter to your object, this resolves to true if the date variable is greater then the shifted date from today.

a2.pnga1.png

touwen_k
Pyrite | Level 9

thank you very much for your answer. I will try it out. I am a beginner in VA. The request I 've got it to have a sum of sales for last week and sum of sales for last 12 weeks. The idea is to have one row in cross tab which shows the sum. Is this slider also showing that?

SAS Innovate 2025: Register Now

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!

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