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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to create Dynamic Table Box

I have source like this

ID
DateAmount
11-Jan-1810000
12-Jan-1820000
13-Jan-1830000
14-Jan-1840000
15-Jan-1850000
25-Jan-1870000

The goal is like this

ID1-Jan-182-Jan-183-jan-184-Jan-185-Jan-18
11000020000300004000050000
270000

i use generic load but the data separated for each date. the problem is how to union them to one table and create dynamic table box or straight table without manually add new date field to table box properties on presentation layer, because user will add new data daily and didn't know how use qlikview, they know only reload and export excel.

Please Answer this without qvw file, because i use Personal Edition. Thanks

10 Replies
isingh30
Specialist
Specialist

isingh30
Specialist
Specialist

Can you share your data or app?

isingh30
Specialist
Specialist

Transform your data in straight table. You have to use set statement in main script. Please define file path in the set  statement.Use '*' in the file name at the end of the load statement. This will fetch every file starts with the name & automatically update the data.

swuehl
MVP
MVP

Maybe just read your data in like shown in your first table, no transformations.

Then use a pivot table with two dimensions ID and Date, Date pivoted to the top. As Expression maybe just

=Only(Amount)

If new data comes in, this will automatically be reflected in your chart.

isingh30
Specialist
Specialist

I didn't understand this - If new data comes in, this will automatically be reflected in your chart. Request you to please explain a bit. Thank you!

swuehl
MVP
MVP

If you don't transform the data tables using GENERIC LOAD, new data records will just be added to the table shown as first table in the OP, no new tables / fields are generated.

New data for new dates are hence just new field values, so using a pivot table will just add the new data to the dimensional values, without the need to add a new field as dimension or expression.

IMO, this is how we should build the charts (no need to change the dimensions / expressions when new data is loaded).

Anonymous
Not applicable
Author

i'm success now union all table from generic load to one table, but how i can automaticaly add new field(Date) as column to straight table without add it from properties, i try it on calculated dimension or expression with subfield() but it just add spesific date base on index

Anonymous
Not applicable
Author

This good Solution, but when i drag the date field

the teble box will be like this

IDDate1-Jan-182-Jan-183-jan-184-Jan-185-Jan-18
11000020000300004000050000
270000

how can i achieve this

ID1-Jan-182-Jan-183-jan-184-Jan-185-Jan-18
11000020000300004000050000
270000
isingh30
Specialist
Specialist

Your data source is flat file?