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: 
gp_123
Contributor III
Contributor III

How to convert excel formula to QLIK

Hello Everyone,
I want to convert below excel formula in Qlik. 
PFA Excels,

Formula(Column AT) :
=IFERROR(IF(AND($H3="In progress",$AB3="",$L3<>""),"WF",IF(AND($H3="In progress",$AB3<>""),"E2E set up",IF(AND($H3="In progress",$L3=""),"Awating material creation",(VLOOKUP(CONCATENATE($A3,"Assigned",1),Tasks!$A:$H,8,0)))))," ")

Thanks In Advance:)

Labels (1)
1 Solution

Accepted Solutions
justISO
Specialist
Specialist

Hi again, as your excel formula is using vlookup, I would take this approuch: we are loading everything (as what is needed) from DATA excel, additionally we create field 'vlookup_key'  and searching does this key exist in 'Task lookup' table (LEFT JOIN). So now what is left is to convert your excel formula and add it as field '[Task pending 1 NEW]'. For this we load everything again and calculate that. Script could look like this:

DATA_temp:
LOAD
*,
[Number]&'Assigned'&1 as vlookup_key
FROM [lib://AttachedFiles/DATA.xlsx]
(ooxml, embedded labels, table is Sheet1);

LEFT JOIN
LOAD
[Concatenate] as vlookup_key,
[Assignment group]
FROM [lib://AttachedFiles/Task_Lookup.xlsx]
(ooxml, embedded labels, table is Sheet1);

DATA:
LOAD
*,
if( isnull(IF([State]='In progress' and len([Intercompany Processing start date])=0 and len([AGI code])<>0 , 'WF',
IF([State]='In progress' and len([Intercompany Processing start date])<>0, 'E2E set up',
IF([State]='In progress' and len([AGI code])=0, 'Awating material creation', [Assignment group]))) ), '') as [Task pending 1 NEW]
RESIDENT DATA_temp;

drop table DATA_temp;

 

View solution in original post

3 Replies
gp_123
Contributor III
Contributor III
Author

@justISO  Do you have any idea on this?

 

justISO
Specialist
Specialist

Hi again, as your excel formula is using vlookup, I would take this approuch: we are loading everything (as what is needed) from DATA excel, additionally we create field 'vlookup_key'  and searching does this key exist in 'Task lookup' table (LEFT JOIN). So now what is left is to convert your excel formula and add it as field '[Task pending 1 NEW]'. For this we load everything again and calculate that. Script could look like this:

DATA_temp:
LOAD
*,
[Number]&'Assigned'&1 as vlookup_key
FROM [lib://AttachedFiles/DATA.xlsx]
(ooxml, embedded labels, table is Sheet1);

LEFT JOIN
LOAD
[Concatenate] as vlookup_key,
[Assignment group]
FROM [lib://AttachedFiles/Task_Lookup.xlsx]
(ooxml, embedded labels, table is Sheet1);

DATA:
LOAD
*,
if( isnull(IF([State]='In progress' and len([Intercompany Processing start date])=0 and len([AGI code])<>0 , 'WF',
IF([State]='In progress' and len([Intercompany Processing start date])<>0, 'E2E set up',
IF([State]='In progress' and len([AGI code])=0, 'Awating material creation', [Assignment group]))) ), '') as [Task pending 1 NEW]
RESIDENT DATA_temp;

drop table DATA_temp;

 

gp_123
Contributor III
Contributor III
Author

Thank You Once again:)