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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
aj1
Contributor
Contributor

Select value based on value in variable

Hello- I have two variable Alias and Name

 

I am wanting to derive the name of the user from the alias like:

vAlias = 'T11526T'

vName = GetFieldSelection([Name], vAlias)

 

So that the name will be populated based on the corresponding alias.

what is the best way to do this? I have tried GetFieldSelection, and it did not work.

1 Solution

Accepted Solutions
aj1
Contributor
Contributor
Author

Just got this solution to work.

Used set analysis with the ONLY expression to select the name

=ONLY({$<[Alias]={$(UserAlias)}>}[Name])

View solution in original post

1 Reply
aj1
Contributor
Contributor
Author

Just got this solution to work.

Used set analysis with the ONLY expression to select the name

=ONLY({$<[Alias]={$(UserAlias)}>}[Name])