Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Not applicable

Adding new calculated collum to table

Hi everyone

I am loading data tables from an sql database into qlikview. I have a table containing a collum with "sales values" and one with with the "conversion rate" for the currency. I would like to create a "new collum" containing the calculated values sales values * currency rate. How would I have to script this?

Thank you very much for your help!

3 Replies
bbi_mba_76
Valued Contributor

Re: Adding new calculated collum to table

Hi,

load *, [sales values] * [conversion rate] as NewField;

SQL your select ...;

Not applicable

Re: Adding new calculated collum to table

in the load statement add (sales_vales * currency_rate) as new_col

load ................

....................... as new_col

SQL SELECT.......;

Not applicable

Re: Adding new calculated collum to table

Awesome!  Thanks a lot

Community Browser