Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Experts,
I have a table that stores purchase orders data. This table has rows per PO document and item number and a column with the value ordered.
Depending on the currency of the PO, I may have two rows per PO: I always have one row with values in EUR but if the PO currency is different than EUR, I also have a row with the value in that currency. Something like this:
I need to transform this table in order to have one row per PO. Something like this:
Any suggestion on how to create such a table using the data loader?
Thanks in advance for your support.
Group the data while loading, as below
Summary:
Load PONumber
,Sum(if(Currency='EUR',Value)) as ValueInEUR
,Sum(if(Currency='USD',Value)) as ValueInUSD
From SomeSource
Group by PONumber;
Hi Vineeth,
Many hanks for the suggestion! That works for the values in EUR, but for the PO currency is incomplete.
The PO currency may be EUR or any other. If it's the primer, then the value will be the same as in the column in EUR. If it's the latter, I need to see the value in the currency different than EUR.
I also need to identify the currency: if I can see more than one currency per PO, then it is the one different than EUR, if it is only EUR, then it is EUR.
"The PO currency may be EUR or any other"
hi, the sample you posted doesn't specify which currency is the PO currency, there are no indicators
for example 1001 , which field specifies USD is doc currency and not EUR.
do you only have 3 field? can you post a full sample that best represents your actual data
I know the example above is simple, but this is the information I have.
Two examples taken from Qlik.
PO 4500328073 currency is EUR, so I only have 1 row per item. PO 4500445416 currency is USD, which generates two rows: one in the original currency and a second one converted to EUR.
I need to have specific columns, one in PO currency, and another one in EUR.
Thanks for your support.