Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Alonal148
Contributor III
Contributor III

Lookup function

Hello,

The lookup function bellow is not working.

The message I got from Qlik is:

20.21.JPG

The function is:     Lookup ([High],[date],MonthsStart(1,[diffDate]),[Tariff TOU Low]) as [Tariff pisga]

20.2.JPG

And I lookup the value [High] from the bellow table:

20.22.JPG

I do not understand why the massage from Qlik is : "The value not found"

Thank you,

Alona

Labels (1)
5 Replies
lorenzoconforti
Specialist II
Specialist II

You need to provide the field name as a string (in quotes)

 

Lookup ('High','date',MonthsStart(1,[diffDate]),'Tariff TOU Low') as [Tariff pisga]

https://help.qlik.com/en-US/sense/November2019/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecor...

 

 

Alonal148
Contributor III
Contributor III
Author

Hi,

Thank you for your help.

The function is still not working.

I opend new script for the "Vlookup". The script load is O.K, But the new value which I wanted to create from the Vlookup is empty. It's values are zero.

26.2.JPG

lorenzoconforti
Specialist II
Specialist II

The third parameter needs to be without single quotes. Also, be mindful what you have now posted is different from the original post

Alonal148
Contributor III
Contributor III
Author

Hello,

I changed the parmeters becouse the function did not worked and I wanted to try new parameters to see if that is the problem.

I canceled the quots but it still zero.

lorenzoconforti
Specialist II
Specialist II

The syntax should be correct. Can you post a screenshot of how the script looks like now?

Are you sure, based on the data you have, that you have matched results?