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: 
Not applicable

Input Box with pre defined listed values - formula instead of written list

Hi,

I have an input box that works fine with a predifined list of values typed in e.g.

;Very Easy;Somewhat Easy;Undecided;Somewhat Difficult;Very Difficult

error loading image

However im trying to add a forumla that has these predifined values stored in a field called 'Answer Options'. The formula picks up the values correctly which but doesnt make them appear as a list. My formula is:

=ONLY({1<[Question Number]={"1"}>}[Answer Options])

error loading image

error loading image

Any help?

1 Solution

Accepted Solutions
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

try replacing semi-colons with commas and see if it works

View solution in original post

5 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

function Only() can't be used for multiple values - it can only return a single available value. The syntax for your case is this:

=concat({1<[Question Number]={"1"}>} [Answer Options], ',')

You may wonder why do we use a coma instead of a semi-colon (I'm wondering, too), but this is the way it works - the list is presented correctly with the coma, and incorrectly with semi-colon, for some reason...

cheers,

Not applicable
Author

Hi Oleg,

Thanks for your help. But the list still comes up as 1 value.

Perhaps a look at the data sheet that feeds the field 'Answer Options' explains how my data is organised. Im trying to use the box in red from the formula.

Any ideas?

Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

try replacing semi-colons with commas and see if it works

Not applicable
Author

hi oleg excellent advise

many thanks

Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

let me take back what I said before about only() - in your case, you already combined multiple values into a single field, so the use of only() was totally appropriate...

I just tested the list with commas, and it works just fine. See attached