Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Karl_Hart
Creator
Creator

Show result based on condition (not based on selection)

I'm trying to have a text box that shows the description of a specified code

I want to write something along the lines of

=[PI Description] where [PI Code] = 'GK300'

This will always show the Description of the Code GK300.

What I dont want to do (but it works) is

=If([PI Code]='GK300', [PI Description])

as this will only show the description if GK300 is selected.

I hope this makes sense. Any ideas?

1 Solution

Accepted Solutions
simenkg
Specialist
Specialist

only({$<[PI Code]={'GK300'}>}[PI Description])

View solution in original post

2 Replies
simenkg
Specialist
Specialist

only({$<[PI Code]={'GK300'}>}[PI Description])

Karl_Hart
Creator
Creator
Author

Thanks, I've not come across the "only" function before. I'll read up on it.