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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
eliran
Creator III
Creator III

Force selection in a field in order to show data on graph

Hi,

Easy question for you guys, I want to show data on a graph but only if a selection is being made.

I can't enable 'Always one field selected' from the list box properties, I just want the user will select one of the options from that list box.

I've done it in the past but I just forgot where it can be done :S

Regards,

Eliran.

1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi Elrian,

You can use "Conditional Show" on the layout tab.

Count (DISTINCT fieldname)=1

This should work.

View solution in original post

4 Replies
Anonymous
Not applicable

Hi Elrian,

You can use "Conditional Show" on the layout tab.

Count (DISTINCT fieldname)=1

This should work.

eliran
Creator III
Creator III
Author

Dennis,

I remembered something else but hey.. It's simple, it's working.. So thanks 🙂

Regards,

Eliran.

matt_crowther
Specialist
Specialist

Eliran,

My method of choice is the GetSelectedCount() function - I'm assuming it was designed for this very reason.

eg: getselectedcount(FieldX), so in teh Calculation Condition of the General Tab: 'getselectedcount(FieldX)>n'

I assume the only difference between this and the previous solution will be load on the application - but either way should be next to nothing.

Hope that helps,

Matt - Visual Analytics Ltd

Not applicable

Hi Eliran,

to enable the 'Always one field selected' select an item in your list box, then go to properties e check the option.

After that you will not be able to deselect any items.

by

Marco