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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Add a new column in table

Hello,

I have this table and i want to add a new column  next 2015 with as value (SL(2015) - Sl(2014))-1.

anneau.png

Thks in advance

12 Replies
Not applicable
Author

it doesn't work cause they don't have a same key

sunny_talwar

I had to put a replace because I didn't have access to the source data file. So I added a Replace to do a partial reload. The idea is you need to concatenate another value to your Year field. So in essence a Year list box will look something like this:

Capture.PNG

Because I forcefully (using concatenation) added Diff value to the Year field.

In the attached file script, change the scrip to this:

Periode:

LOAD Year

FROM

C:\Users\babacar.sow\Desktop\Classeur1.xlsx

(ooxml, embedded labels, table is Feuil1);

Ventes:

LOAD Year,

    Sales

FROM

C:\Users\babacar.sow\Desktop\Classeur1.xlsx

(ooxml, embedded labels, table is Feuil2);

Concatenate(Periode)

LOAD * Inline [

Year

Diff

];

HTH

Best,

Sunny

Not applicable
Author

Sorry, but it doesn't work so.

I have to find another way