Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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



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!!