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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
pkelly
Specialist
Specialist

List Boxes - Get Selected Value Based on Another Selection

I have two list boxes on my screen nameley Product Family and Species.

We show Quantity and Sales value but only show the quantity if the selected values have the same quantity units.

I have this working okay for Product family.

Species values can fall into different Product Families e.g. Sapele could have an entry in either the Sawn or Machined Product Family with these having units of m3 and lineal metres respectively.

The user does not have to filter on a Product Family, they could go directly to the Species filter.

This is where my question comes in...

Based on the users Species selection, I want to go to the Product Family list box and determine how many Product Familes match the selection.

For example...

The species Idigbo (m3) only belongs to the Sawn Product family whilst the Sapele belongs to both Sawn (m2) and Machined (lineal metres).

If the user selects Idigbo I can show the quantity as it only has the unit m3 whilst the Sapele selection won't display a quantity as I have mixed units.

Any help greatly appreciated...

1 Solution

Accepted Solutions
pkelly
Specialist
Specialist
Author

Managed to come up with a workaround....

View solution in original post

3 Replies
pkelly
Specialist
Specialist
Author

I think GetPossibleCount() may be the answer i.e. count the Quantity Unit.

Is it possible to do an if statement with GetPossibleCount...

I only want to count the Quantity Units if it is <> 'NONE' (within a Product Family there are some items for which we ignore the Qty)...

Have tried...

=GetPossibleCount(IF(pro_QuantityUnit<>'NONE', pro_QuantityUnit))

AND

=IF(pro_QuantityUnit<>'NONE', GetPossibleCount( pro_QuantityUnit))

Without sucess....

pkelly
Specialist
Specialist
Author

Managed to come up with a workaround....

Not applicable

Hi Paul,

Could you please share the solution!

Regards

Rahul