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

VLookup

Hey,

Does anyone know how to convert this Excel V-Lookup into a QV formula?

=TODAY()-(VLOOKUP(VLOOKUP(J2,A:L,10),A:L,11))

Thanks!!

19 Replies
amayuresh
Creator III
Creator III

Examples:

Lookup:

1.PNG

ApplyMap():

1.PNG

2.PNG

Not applicable
Author

Thanks, I have a basic ApplyMap working. How would I do a nested ApplyMap?

Here is the working one

Today()- ApplyMap('Ref', Dependent, null()) as Dependency2

Here is the nested VLookup I'm trying to mirror

=IF(Ref="","",TODAY()-(VLOOKUP(VLOOKUP(Dependent,Risk!A:L,Dependent),Ref,TargetDate)))

I attempted with an nested ApplyMap but appear to have broken it

amayuresh
Creator III
Creator III

Please post sample data of both tables

robert_mika
Master III
Master III

What is the parameter diff?

Could you elaborate?

Feeling Qlikngry?

How To /Missing Manual(25 articles)

robert_mika
Master III
Master III

Post your formula.

Not applicable
Author

Hi,

Here is the nested formula I am trying, It has syntax errors, any ideas?

Today()- ApplyMap(ApplyMap('Ref', Dependent, null()), 'Ref', Dependent, null()) as Dependency1,

Not applicable
Author

I also tried this one:

Today()- ApplyMap('Ref',ApplyMap('Ref', Dependent, null()), Dependent, null()) as Dependency1,

amayuresh
Creator III
Creator III

Please check below is my example:

Script:

2.PNG

Output:

1.PNG

Anonymous
Not applicable
Author

To create the temp table and resident the to the particular table it may be get the values.

amayuresh
Creator III
Creator III

As per your formula mentioned above (VLOOKUP(Dependent,Risk!A:L,Dependent)), you have more than two columns from source table so use lookup() function to get the target column value.