Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I'm using Google Timeline Extension and want the user to be able to sort by different dates (columns in my dataset)
If I put the following expression into my lead column as Sort by Expression it works fine:
=rank([Timeline Dates.ASORT.autoCalendar.Date])
Then I figured, if I create a button for each date type I want to sort by and then use the button expression to set a variable with the above expression then I will have a dynamic sort which can be triggered by the user. However I cannot get it to work 😞
I defined my variable in the button as follows:
button1: set $(vSort) = rank([Timeline Dates.ASORT.autoCalendar.Date])
button2: set $(vSort) = rank([Timeline Dates.BSORT.autoCalendar.Date])
...
button8: set $(vSort) = rank([Timeline Dates.CSORT.autoCalendar.Date])
Then I entered the variable vSort into the Sort by Expression in the Google Timeline Extension, but the data is not sorted when pushing the buttons.
Can anyone tell me what I'm doing wrong? Or even better how to get the button sort to work?
Br,
Keld
Can you provide a picture of your settings?
A couple suggestions:
Can you provide a picture of your settings?
A couple suggestions:
Hi Trey,
Thank you for your reply. It helped me to figure out the problem is to set the variable value, because when I hard code the 'rank([Timeline Dates.BSORT.autoCalendar.Date])' in the variable definition it works and the chart is sorted by this column.
I'm using a Variable Extension (https://github.com/erikwett/qsVariable) to set the variable value. I just checked the version of this extension in our system and it is very old, so I will ask for it to be updated to the newst version and hope that this would help.
Just for your info. I did not succed in getting any values but 0 out in the KPI or text box when inserting the variable.
Br,
Keld