Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
alerse
Contributor III
Contributor III

Lookup a caption from table

Hi

I'm trying to get a caption for a text object from a simple table. E.g.

Object Name Caption

Name1 Caption for name 1

Name2 Caption for name 2

What should the expression be? I've tried

=(if([Object Name]='Name1',[Caption],0))


But that didn't work... Somehow I need to search through the table?

Your help will be appreciated!

Eon



Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Your solution needs to have one value returned. Try this:

=

Maxstring(If([Object Name] = 'Name1',[Caption]))

View solution in original post

2 Replies
Anonymous
Not applicable

Your solution needs to have one value returned. Try this:

=

Maxstring(If([Object Name] = 'Name1',[Caption]))

alerse
Contributor III
Contributor III
Author

perfect, thanks so much!!