Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
aarohipatel
Creator II
Creator II

Help with datapull

Hi,

Attached are the tables where I am trying to pull the data from

Control Table: is a table which is updated every month.

Datapull table is the table from which I am trying to pull the data from.

What I want to do is: create a variable vMONTH_KEY which pull the MONTH_KEY from the Control Table and then I want to give a where clause in the datapull that pulls data for only relevant to vMONTH_KEY.

In the attached file: MONTH_KEY in Control file is '1' which is for June and would like to pull data only for June into the qvw.

Want to do the dynamic datapull through the variable to pull only the data based on the MONTH_KEY in Control File.

Thanks

1 Solution

Accepted Solutions
richard_chilvers
Specialist
Specialist

I haven't looked in detail, but if you simply want to retrieve a value from the data already loaded in your 1st table, so you can use it when loading data into your 2nd table, you might find PEEK a useful function. The help, or this forum, might explain its use.

It might also be handy to give each of your 2 tables a name, or DROP the 1st table once you've populated your variable, vMONTH_KEY.

View solution in original post

1 Reply
richard_chilvers
Specialist
Specialist

I haven't looked in detail, but if you simply want to retrieve a value from the data already loaded in your 1st table, so you can use it when loading data into your 2nd table, you might find PEEK a useful function. The help, or this forum, might explain its use.

It might also be handy to give each of your 2 tables a name, or DROP the 1st table once you've populated your variable, vMONTH_KEY.