Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Jul_K
Partner - Contributor II
Partner - Contributor II

Qlik Sense - Dynamic bookmarks not working with a variable

Hi all, 

I want to create a bookmark which is choosing automatically the current booking year and the current booking period. For that I have used the dynamic bookmark option by using the search functionality. 

In the data load editor I have created two variables which are calculating the current booking year and the current booking period depending on the date of today. For the booking year it is 'vGJ' and for the current booking year it is 'vPER_CUM_MAX'. 

In the search field for the relevant filter field I have entered the following:

1) Field GJ (=booking year):   =[GJ] = vGJ

2) Field Periode:  =[Periode] = vPER_CUM_MAX

Both filters are working and are selecting the correct value, for GJ it is selecting '2022' and for the Periode it is selecting '12'. 

Then I saved this selection as a bookmark and the result is this: 

Julia_K_0-1666602511762.png

The GJ has worked and is now dynamic but somehow the Periode is not dynamic, it is set to a fixed value. 

Can somebody pls help? I don't know where's the problem, actually I did the same for those two fields... The variable format is also the same for those two.. 

 

Labels (3)
1 Solution

Accepted Solutions
Jul_K
Partner - Contributor II
Partner - Contributor II
Author

Hi Madhab, 

yes I have a solution to the problem. A guy from Qlik explained me that it is important to type in the formula within the "Selections" area and not in a filter pane on the sheet. That solved my problem. 

Kind regards

Julia

View solution in original post

8 Replies
MendyS
Partner - Creator III
Partner - Creator III

Hi @Jul_K 

try to wrap the var with '$(var)' or with $'(=var)' 

Jul_K
Partner - Contributor II
Partner - Contributor II
Author

Unfortunately that didn't solved the problem. 

Those expressions:

=[Periode] = '$(vPER_CUM_MAX)'

=[Periode] = '$(=vPER_CUM_MAX)'

are also leading to a fixed value in the bookmark.. 

Madhab77
Contributor III
Contributor III

Hi Jul_K,

Did you get the solution, I need the solution, I have similar requirement.

 

Thanks & Regards,

Madhab Sikder

Jul_K
Partner - Contributor II
Partner - Contributor II
Author

Hi Madhab, 

yes I have a solution to the problem. A guy from Qlik explained me that it is important to type in the formula within the "Selections" area and not in a filter pane on the sheet. That solved my problem. 

Kind regards

Julia

Madhab77
Contributor III
Contributor III

Hi Julia,

Its not working for me, I tried like this, but nothing happen when press ENTER after giving the following expression:

Madhab77_0-1670417692415.png

 

The field is year and I am providing =Year=$(vBookmarkYear) in the search for the Year, and when pressing ENTER it is not going ahead. (variable vBookmarkYear having current year)

 

Thanks & Regards,

Madhab Sikder

Jul_K
Partner - Contributor II
Partner - Contributor II
Author

Try =[Year]=$(vBookmarkYear) and press enter. 

If you then see the correct selected year,  you know that it has worked. 

Madhab77
Contributor III
Contributor III

Hi Julia,

I tried as you said, but it did not work:

Madhab77_0-1670419020824.png

 

Thanks & Regards,

Madhab Sikder

Brano
Contributor II
Contributor II

For anyone still looking for a solution, following syntax worked for me in Selections area as Julia advised and Madhab was trying:

=Year=vBookmarkYear