Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Conditional and ID

Hi everyone:)

I have an question.

for example:

ID  name

1 Fabian

2 andre

3 saskia

4 max

I have a variable:

vID = ID

vID2 = ID-1

vID3 = ID-2

so now, I need to select a id = for example 3 for saskia but I like also a textbox with the variable vID2...

my solution but it's not working:

if(ID = $(vID2), name)

it's not working ... what now?


1 Solution

Accepted Solutions
sunny_talwar

Minor correction in the expression:

=Only({<ID = {$(vID2)}>}name)

View solution in original post

5 Replies
alex_millan
Creator III
Creator III

Guess you want to select an ID and have the name for the ID-1 shown in a textbox?

If so, try to put the expression in the textbox:

=Only({<ID = {$(vID2)}>}name)

So you can reference the name to the ID corresponding to the variable vID2

Hope that helps

Regards

sunny_talwar

Minor correction in the expression:

=Only({<ID = {$(vID2)}>}name)

alex_millan
Creator III
Creator III

Thanks Sunny!!! I really missed it. Edit in my previous post.

sunny_talwar

Awesome

Not applicable
Author

THANK YOU