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

Lookup function

Hi,

I have the following exchange rate table that is loaded using;

currency_rate:

Mapping LOAD Currency,

     Rate

FROM [_indata\rates.xls] (biff, embedded labels);

CurrencyRate
CHF1.0560
EUR1.2657
RMB0.1583
SEK0.1398
USD1

I want to multiple a price with the applible EUR Rate but the script below doesn't return any data.

Price_Data:

LOAD [Part Number] as part_key,

     [SAP Standard Price],

     [SAP Standard Price]*lookup('Rate','Currency','EUR','currency_rate') as [SAP Standard Price $],

...

How do I write the script to get the desired [SAP Standard Price $]?

Best regards,

Jonas

1 Solution

Accepted Solutions
Not applicable
Author

The following code worked;

Price_Data:

LOAD [Part Number] as part_key,

     [SAP Standard Price],

     [SAP Standard Price]*ApplyMap('currency_rate','EUR') as [SAP Standard Price $],

...

Best regards,

Jonas

View solution in original post

1 Reply
Not applicable
Author

The following code worked;

Price_Data:

LOAD [Part Number] as part_key,

     [SAP Standard Price],

     [SAP Standard Price]*ApplyMap('currency_rate','EUR') as [SAP Standard Price $],

...

Best regards,

Jonas