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

Load Expression from excel and use them during load

Hi guys,

i have two tables structured as below:

MAPPING_TABLE:

MapKeyMapFormula
aField1+Field2+Field3
bField1+Field2+Field3
cField1+Field2+Field3
dField1+Field2+Field3

FACT_TABLE:

KeyField1Field2Field3
a111
b222
c333
d444

and i would like to use the declared formulas on this mapping table to obtain resulst on another table...so:

MAPPING_TABLE:

Mapping

Load

     MapKey,

     MapFormula

From MAPPING_TABLE.xls;

FACT_TABLE:
Load

     Key,

     Field1,

     Field2,

     Field3,

     Applymap('MAPPING_TABLE',Key) as Result

From FACT_TABLE.qvd(qvd);

but the resut is

KeyResult
aField1+Field2+Field3
bField1+Field2+Field3
cField1+Field2+Field3
dField1+Field2+Field3

and i would like to obtain:

KeyResult
a3
b6
c9
d12

Any idea ?

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
3 Replies
joshrussin
Creator III
Creator III

Are you trying to obtain a cumulative field from the mapping table?

joshrussin
Creator III
Creator III

look at these examples using just the data table, see if these help

micheledenardi
Specialist II
Specialist II
Author

No,

i don't want to obtain a cumulative result.

I want to specify a formula (Ex. sum(Field1+Field2+Field3)) on the mapping table and then use applymap() to calculate the result of the formula by using the Field1, Field2, Field3 of my final table.

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.