Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Saimani
Contributor II
Contributor II

current week selection in qliksense

Hi Everyone,

I am having an qliksense app containing of Map chart and Table chart  .

when i open the app the data present in that should be of max week  which means the map chart and table chart should display max week data.

I applied default selection and bookmark but its not working

if any one have alternative idea please share me ASAP

4 Replies
rubenmarin1

Hi, you can create a yearweek field in script like: Year(DateField) & Num(Week(DateField),'00') as NumYearWeek.

Then you can use this field in set analysis like: Sum({<NumYearWeek={$(=Max(NumYearWeek))}>} FieldtoSum)

This will filter expression to return the max selcted week, if you want to always show the higher week ignoring selections you can use a set analysis like: {<NumYearWeek={$(=Max({1}NumYearWeek))}>}

Set analysis has to be set in all expression to work, you can try with one and when it works as you expect translate it to other expressions

Saimani
Contributor II
Contributor II
Author

Thanks for the information.

But when i load the application entire application is to be reflected with max week data.

(similar to document triggers in qlikview)

 

Saimani
Contributor II
Contributor II
Author

Thanks for the information ruben,

By applying default bookmark selection iam getting max year and max week for old data.

but when i update new data in the load script , iam not getting the latest year and week selection.