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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
renjithpl
Specialist
Specialist

Return string from field if value meets expectation

Hi All,

I have a table like below:

CategoryRating
Pencil4
Pen0
Eraser2


i want to bring the string into a text box, with below condition.

=If(Rating >3, Category)

My output should be. Pencil

This is just a small table, but i have more than 50 Categories.

Please help me. THanks in advance

Ranjit

1 Solution

Accepted Solutions
Anonymous
Not applicable

You shuld use an aggregation function...

try something like that: concat(DISTINCT If(Rating >3, Category))

regards

Matteo

View solution in original post

3 Replies
Anonymous
Not applicable

You shuld use an aggregation function...

try something like that: concat(DISTINCT If(Rating >3, Category))

regards

Matteo

Not applicable

Hi!!!

Here, your possible output values count are 0,1 or >1.

and text box can only hold one value. so you have to make your ouput as one value by using concat function.

use below function:

=concat(If(Rating >3, Category),';')

Regards,

Dixit Patel

renjithpl
Specialist
Specialist
Author

It worked cool, thanks a lot dude..