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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
nareshthavidishetty
Creator III
Creator III

Sheet Selection Triggers

Hi,

We have sheet trigger by making max(year) as Select in field Action for one sheet.

Now when we navigate to that shhet we have Max(year) was selected.

Here when we moved to next sheet the same max(year) is selected by default.

But the user no need to max(year) selection in other sheets.

For that we have create another action like clear field action( Field=Year) while leaving the sheet.

Here is the issue.

If the user makes a year selection other that max(year) and then if he moved to next sheet the selction is cleard.

But i need to capture the ramdom year seletions and aslo when ever he moved back to the sheet it should show max(year).

Thanks..

Labels (1)
6 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Use set analysis rather than sheet triggers to have the best user experience and performance.

For the sheet needing max(year), add the set expression (bold) to the expressions on the sheet:

     Sum({<year = {"$(=Max(year))"}>} amount)       // to allow max(year) to follow selections

     or

     Sum({1<year = {"$(=Max(year))"}>} amount)     // to ignore all selections


For the other sheet(s), omit that set expression.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jonathandienst
Partner - Champion III
Partner - Champion III

It may also be necessary to override other date selections on the first sheet, especially for the second suggestion, like:

    Sum({1<year = {"$(=Max(year))"}, MonthYear>} amount)   // to prevent a selection in MonthYear from interfering

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

You can do one thing.

Create a variable which stores the Year Selected.

Now in next sheet trigger, after clear selection, you can make selection in year field as per the value available in variable.

This way your selections can be moved to other sheet.

No need to change any thing in 1st Sheet where you want to show Max(year)

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
nareshthavidishetty
Creator III
Creator III
Author

Hi,

I belive with logic posted we can't do a comparision between 2 years.

Because we have used the max year.

But we need the comapritive analysis as well.

Thanks.

nareshthavidishetty
Creator III
Creator III
Author

Hi,

Can you please explain in brief.

Thanks..

YoussefBelloum
Champion
Champion

Hi jontydkpi,

can you please explain why did you add MonthYear here on the set analysis when you already have 1 to ignore all other selections ?