Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Triying to sum amounts in the script from different fields on a mapping load

Hi all,

I'm desperate with this one...

I'm using a mapping load to get two kind of amounts (sales price and sales cost):

QV1.bmp

Then I'm bringing the two fields into other table:

QV2.bmp

The only fields in common between this files are "letter" and "invoice" (the ones that I'm using for the mapping).

Mi problem is: in the first file (SALES) there is a sub-invoice field; example:

LetterInvoice

Subinvoice

FOB€COST€

A

1405011.200€1.050€
A140502456€432€
A140503926€817€
A140504621€635€
A140505325€323€
A140506211€225€
A1405071.012€903€

The mapping only gives me the first of this amounts, How can I get the total sum of them?? I need to do this in the script!!

Note that I'm using an ODBC database, I'm not using excel or access files.

1 Solution

Accepted Solutions
geert_gelade
Creator
Creator

In you mapping tables, you can sum the amounts and group by InvoiceNumber

SALESFOB:

MAPPING LOAD INVOICENUMBER, sum(FOB€)

Resident SALES GROUP BY INVOICENUMBER;

View solution in original post

2 Replies
geert_gelade
Creator
Creator

In you mapping tables, you can sum the amounts and group by InvoiceNumber

SALESFOB:

MAPPING LOAD INVOICENUMBER, sum(FOB€)

Resident SALES GROUP BY INVOICENUMBER;

Not applicable
Author

Great Geert Gelade!! It works!!

Thank you so much!