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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Reload based on selection

Hi *,

I'm trying to reload data from a certain table (Sales_RTY) based on the selection I made in the application.
e.g. I select years 2009 and 2008, only this years should be reloaded. Has anyone some hints for my what's the best practice to handle this?

Sales_RTY looks like this:

Sales_RTY:
Sales_id, Sales_amt, Sales_Date, Sales_cst,....

Thanks in advance

elzo

3 Replies
ipauldur
Creator
Creator

Hi elzo,

You can create variable and assign the selected field value into that variable.

Then, you can use that variable to define the "where" condition of load statement.

Hope this will help,

Regards,

Durai.

Not applicable
Author

Hi Durai,

thanks for your help, unfortunatly I didn't get it running?

how can I assign multiple selections (eg. years: 2007,2008,2009) to a variable?

I used FROM Sales WHERE year(Sales.DATE) Like '$(v_reload_years)' in script. This is working as long as I assignt a value manually to my variable

e.g. Set v_reload_years = '2008';

Tried it with creating a variable via document settings and variable value = year (field) . unfortunately this didn't work.

I got the values to my variable with: =GetFieldSelections(Year). Unfortunaltey this isn't working for reload. Any idea?

Thanks


bismart
Creator
Creator

1. Make required selections in application

2. File... Reduce Data... Keep Possible Values

Application will reload only data that meets your selections.