Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Alternate states-qlikview

Hi,

I had a case where i need to compare two product  list boxes and display the result in line chart. I acheived this using altrenate states. But my problem here is the charts and list boxes should be conditionally enabled based on selection in another list box.

For example

Assume list box as below.

Products

Executive

If products is selected, everything related to them should be displayed(2 list boxes and charrt).Similar to executive. Please help me to acheive  this

Thanks

Kausalya

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Perhaps, you are struggling with alternate sate reference for enabling condition. If so, try like:

=Only({<selections=$::selections>}selections)='By Product'

Note: $:: refers the default state.

View solution in original post

7 Replies
tresesco
MVP
MVP

Check this attached qvw.

tresesco
MVP
MVP

Try to share a qvw with sample data.

Not applicable
Author

Hi

Try this QVW may help you

In this the chart is enabled with set analysis.

Not applicable
Author

Kausalya,

Can you clarify a bit more

what is the exact requiremetn

do u require Alternate States or Filter condition

do provide some more info

Not applicable
Author

alternate state for comparison of products/executives and filter for enabling/disabling of list boxes and charts

Not applicable
Author

For listbox enabling / disabling;

1) Listboxes should not be disabled, because as the listboxes acts as filteration and selection purpose

(List boxes can be disabled/enabled)

2) Charts can be disabled based on the conditions

charts->properties_>presentation->Show->Conditional->GetselectedCount(listboxnaemyouareusing)>0

if the user made one selection the chart will be enabled with the above codition

This may help you

tresesco
MVP
MVP

Perhaps, you are struggling with alternate sate reference for enabling condition. If so, try like:

=Only({<selections=$::selections>}selections)='By Product'

Note: $:: refers the default state.