Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Sarchiz
Partner - Contributor II
Partner - Contributor II

dynamic bookmark and getfieldselections in chart subtitle

Hi , 

So I have a dynamic bookmark set on current week:

{<week={"=week=Week(Today())"}>}

It works ok.

I need to put the current selected week or weeks in a chart subtitle.

This only works properly if you select weeks manually, otherwise it displays the expression used in the dynamic bookmark.

I am using getfieldselections in subtitle. 

Any ideas ?

Labels (1)
1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

so you can use something like 

=if(wildmatch(GetFieldSelections(week),'*Week(Today())*'),week(today()),GetFieldSelections(week))

View solution in original post

7 Replies
lironbaram
Partner - Master III
Partner - Master III

hi 

just put the expression:Week(Today())

in your chart title

Sarchiz
Partner - Contributor II
Partner - Contributor II
Author

Thanks , but it is not what I am looking for. 

I need the subtitle to show the selected week/weeks , regardless of what is active : the bookmark or user selection.

For when the bookmark is active it shows the expression not the actual week.

lironbaram
Partner - Master III
Partner - Master III

so use 

getfieldselections(Week) in your sub title

 

Sarchiz
Partner - Contributor II
Partner - Contributor II
Author

here lies the problem, 

using : getfieldselections(Week)  when dynamic bookmark is active shows the expression not the actual week.

 

 

lironbaram
Partner - Master III
Partner - Master III

so you can use something like 

=if(wildmatch(GetFieldSelections(week),'*Week(Today())*'),week(today()),GetFieldSelections(week))

Sarchiz
Partner - Contributor II
Partner - Contributor II
Author

wow, it worked ! 

I guess I will research more about of this wildmatch  🙂

thanks a lot !

arasaraja_cts
Partner - Contributor III
Partner - Contributor III

May be you can use Concat(Week(Today()) , ',')