Exploring, predicting and reporting with SAS Visual Analytics and SAS Visual Statistics

Time slider with dynamic selection for last month

Reply
Occasional Contributor
Posts: 17

Time slider with dynamic selection for last month

Hi All,

 

Is it possible to dynamically set the date for last month in a slider

Today 09-05-2017

timeslider1.PNG

 

 

Tomorow:

timeslider2.PNG

 

 

 

How to set the range dynamically is already described in the post beneath.

However I want to keep the full range and select per default the last month.

 

 

https://communities.sas.com/t5/SAS-Visual-Analytics/Time-slider-with-dynamic-range-for-last-2-months...

Best Regards,
Patrick Posthuma
+31 06 53135462
The Netherlands
Occasional Contributor
Posts: 9

Re: Time slider with dynamic selection for last month

Posted in reply to PatrickPosthuma

You can use the classification on the slider. You can create a support variable for the month and use that on the classification chosing the first two occurnce.

 

Paz

Occasional Contributor
Posts: 17

Re: Time slider with dynamic selection for last month

Posted in reply to bpazzaglini
Hi Paz,

Sorry I did not get you,please explain.
What do you mean with classification?
To be clear the first/default selection must be from 09-04-2017 till 09-05-2017
Tomorow it should be from 10-04-2017 till 10-05-2017
It must be possible to select manually a wider range.

Best Regards,
Patrick Posthuma
+31 06 53135462
The Netherlands
Occasional Contributor
Posts: 9

Re: Time slider with dynamic selection for last month

Posted in reply to PatrickPosthuma

If you select an object on the report builder on the right side you have a panel in wich you have different section (Role, propertiety, classificatio, filter, ...)

On the classification you can choose for exaple the first ten value on a certain variable.

In your case you can set a filter (not a classification) for example

today() -30 < <your_ data_variable> < today()

You should find the filter thet more suite for you situation

 

Paz

Occasional Contributor
Posts: 17

Re: Time slider with dynamic selection for last month

Posted in reply to bpazzaglini
Hi Paz,
For a slider there is no classification tab and a filter works on the range, not on the 'default/initial' selection
Best Regards,
Patrick Posthuma
+31 06 53135462
The Netherlands
Occasional Contributor
Posts: 9

Re: Time slider with dynamic selection for last month

Posted in reply to PatrickPosthuma

Ranks not classification. I'm used with the italian version, sorry.

I belive the this can help you Check this

I've done a test and it works

 

Paz

Occasional Contributor
Posts: 17

Re: Time slider with dynamic selection for last month

Posted in reply to bpazzaglini

Hi Paz,

 

That is the link I already refer to when I start this post.

This solution changes the range not the actual selection

Best Regards,
Patrick Posthuma
+31 06 53135462
The Netherlands
Occasional Contributor
Posts: 17

Re: Time slider with dynamic selection for last month

Posted in reply to PatrickPosthuma

Anybody a solution for my requirement?

Best Regards,
Patrick Posthuma
+31 06 53135462
The Netherlands
SAS Super FREQ
Posts: 99

Re: Time slider with dynamic selection for last month

Posted in reply to PatrickPosthuma

Hi @PatrickPosthuma,

 

This capability has been added to the latest release of VA running on the SAS 9 platform, VA 7.4. There are options now that allow for setting the slider range values to dynamic minimum and dynamic maximum, which would do exactly what you want. I'm not aware of any workarounds for releases prior to 7.4.

 

Best,

Renato

SAS Employee
Posts: 3

Re: Time slider with dynamic selection for last month

Posted in reply to Renato_sas

Hello @Renato_sas

 

I need this also.

Can you give me more details on how I should do this ? I need the last 6 months to be selected. I will set the maximum value dynamic. So that solves the upper limit. But I can't get to set the lower limit correctly.

Thank you in advance.

 

 

SAS Employee
Posts: 3

Re: Time slider with dynamic selection for last month

Posted in reply to PatrickPosthuma
Hello @PatrickPosthuma
How did you solve this ?
Did you use the dynamic minimum/maximum?
Thank you
Occasional Contributor
Posts: 17

Re: Time slider with dynamic selection for last month

Posted in reply to ilsescheys

Hi @Renato_sas according to me this is still not possible in version 7.4, please set this topic als not solved yet.

Best Regards,
Patrick Posthuma
+31 06 53135462
The Netherlands
Community Manager
Posts: 746

Re: Time slider with dynamic selection for last month

Posted in reply to PatrickPosthuma

Hi @PatrickPosthuma,

 

Thanks for the info! We are looking into your problem a bit more closely. In the meantime, I've "unmarked" the response from @Renato_sas as the solution.

 

Best,

Anna

Occasional Contributor
Posts: 17

Re: Time slider with dynamic selection for last month

Posted in reply to ilsescheys
according to me this is still not possible in version 7.4 Smiley Sad
Best Regards,
Patrick Posthuma
+31 06 53135462
The Netherlands
SAS Employee
Posts: 4

Re: Time slider with dynamic selection for last month

Posted in reply to PatrickPosthuma

I think there is some confusion in this thread about what the problem is that I'd like to try and clarify. And of course if I've misunderstood then please correct me.

 

First, it IS possible in Visual Analytics 7.4 to set a dynamic start and end point for range sliders so that whenever you open the report, the start and end points are the first and last dates in your data, respectively. This is what Renato is referring to.

 

I don't believe this is what Patrick is getting at though. Rather, it sounds like Patrick wants the range slider to automatically be set so the start and end point is the first and last date of the last month in the date range. So if my full range is January to November, I want the selected range to automatically be November 1st (the first date of the last month) to November 15th (the last date of the last month), while maintaining the earliest possible starting point as January 1st in the slider.

 

This is currently not possible. 

 

The closest you could get is to set the end point to be dynamic (not the start point) and then manually adjusting the start point each time the month changes.

 

Alternatively, you could have a drop down list or something else for Month that filters the range slider, then use the dynamic start/end points in the range slider. So if you pick November in the drop down list, the range slider is automatically filtered for the first and last dates in the November range. I don't know if that makes sense for what you're doing though. And of course it still requires a user to do something to get the date ranges to what you want, as opposed to being purely automatic.

 

 

 

 

Ask a Question
Discussion stats
  • 20 replies
  • 1023 views
  • 4 likes
  • 7 in conversation