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

Announcements
Solving the Informatica Dilemma: On-Demand Briefing - Watch On Demand!
cancel
Showing results for 
Search instead for 
Did you mean: 
CasperQlik
Creator
Creator

Max 1 selection in some sheets

Hi Qlik Community

I have an app with multiple sheets.

All sheets have the option to select values in the year field. But on a select few sheets I need to restrict the user so that charts can only show 1 year at a time on those select sheets. I hope the issue is clear.

So far I have tried creating a separate "Year" field and combining it with alternate states works fine for those sheets that needs to behave differently. However, when I use the option to restrict that new year field to "Always one selected value" then the app just acts weird in my opinion. I get this box at the top with all my possible states and I don't understand how to proceed from here. Any help is appreciated and alternative solutions are welcome too.

 

CasperQlik_0-1737107162328.png

 

1 Solution

Accepted Solutions
marcus_sommer

I think I wouldn't go with such approaches else restricting the expressions within the charts to the selection state, maybe like:

sum({< Year = {"$(=max(Year))"}>} Value)

and adjusting the user-documentation that always the max. Year is taken - in regard to all years respectively the selected ones.

View solution in original post

4 Replies
marcus_sommer

I think I wouldn't go with such approaches else restricting the expressions within the charts to the selection state, maybe like:

sum({< Year = {"$(=max(Year))"}>} Value)

and adjusting the user-documentation that always the max. Year is taken - in regard to all years respectively the selected ones.

CasperQlik
Creator
Creator
Author

This does work to some extent. I just need to make it clear what the user is seeing. I'll run it by the users.

CasperQlik
Creator
Creator
Author

Is it possible to make it the latest selection and not the max()?

marcus_sommer

Yes, maybe with something like: 

sum({$1< Year = {"$(=max(Year))"}>} Value)

or

sum({< Year = {"$(=max({$1} Year))"}>} Value)