Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
AVINASH22
Contributor II
Contributor II

DOUCUMENT TRIGGER

In my dashboard i have 5 years of data.Requirements is that on open the dashboard, recent year data and previous year data is to be selected...so how to implement this by using trigger.

1 Solution

Accepted Solutions
Claudiu_Anghelescu
Specialist
Specialist

1. Create 2 variables:

  max1=max(Year)

   max2= max(Year)-1

 

2. Trigger -> Select in field:

 Year

='(' & $(max1) & '|' & $(max2) & ')'

 

 

See my attached sample.

To help community find solutions, please don't forget to mark as correct.

View solution in original post

1 Reply
Claudiu_Anghelescu
Specialist
Specialist

1. Create 2 variables:

  max1=max(Year)

   max2= max(Year)-1

 

2. Trigger -> Select in field:

 Year

='(' & $(max1) & '|' & $(max2) & ')'

 

 

See my attached sample.

To help community find solutions, please don't forget to mark as correct.