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

Create new record

  Hall all,

Please take a look at the attached excel and let me know how create a new record from the same table.

I already have the "a" and "b" in my table and I want to create "a*b " .

Thanks,

3 Replies
IAMDV
Master II
Master II

Hi Nima,

Have you tried something like this...

temp:
LOAD customer,
     sales2
FROM

(biff, embedded labels, table is [Sheet1$]);

concatenate(temp)

LOAD customer,
     sales1
FROM

(biff, embedded labels, table is [Sheet1$]);

NoConcatenate(temp)

Final_Table:

LOAD *,

Sales1 + Sales2     AS     TotalSales

Resident temp;

Drop Table temp;

Cheers,

DV

www.QlikShare.com

Not applicable
Author

Thanks for the reply,

But I just want to do the total sales for the customer a + customer b.

Any idea?

somenathroy
Creator III
Creator III

You may try below code snipet:

 

 

A:
LOAD *,1 as iq;
LOAD * Inline
[customer, sales
a, 100
b, 300];

Concatenate(A)
LOAD Concat(DISTINCT customer,',') as customer, sum(sales) as sales  Resident A Group By iq;

DROP Field iq;

Regards,

Som