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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
tomdabek
Contributor III
Contributor III

Can I reload a table performing a calculation on 2 fields?

Once a qvw is loaded & populated with all the data can i manipulate the tables after the load?

Lets say i have a .qvw file with the table called SALES

SALES contains two fields, quantity and price

Can i add a script element that will 'reload' SALES and create a new field called revenue where revenue = quantity * price  ?

Seems simple but i cannot figure this out.

Thank you

2 Replies
Anonymous
Not applicable

noconcatenate

LOAD *,  quantity * price as revenue resident SALES;

drop table SALES;

Anonymous
Not applicable

alternatively use preceeding load:

LOAD *,  quantity * price as revenue;

SALES:

LOAD ...;