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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How create a TriggerDoc on the lastDate(Year)?

Hi,

I'm new on Qlikview and i'm a little bit stuck... I'm trying to build a trigger on my Document QV. It have to auto-select, when the document is launch, the Field [YearQ] and the last value (So 2014). [YearQ] inclued those values {2012, 2013, 2014}.

I've try

    =Max[[AnnéeQ]]
    =Year(Today())=[AnnéeQ] 

But that didn't work.

Could you help me pliz ?

Thx, in advice  

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Check enclosed file....

View solution in original post

8 Replies
its_anandrjs
Champion III
Champion III

Use =Max( [AnnéeQ] ) i think it will works you use wrong brackets.

ger_alegria
Partner - Creator
Partner - Creator

Try only with max(AnnéeQ). That should works.

MK_QSL
MVP
MVP

Check enclosed file....

its_anandrjs
Champion III
Champion III

Use Max() function like

=Max( Yourfieldname )

with brackets

Not applicable
Author

Hi Anand and thank you,

No, I've try it. That didn't work.

its_anandrjs
Champion III
Champion III

What is your year field name

use in trigger like =Max(Youryearfield)

if it is [YearQ]

then use =Max([YearQ])

Not applicable
Author

Thank you all,

That's strange cause now that's working.

Not applicable
Author

That's exactly what i've done.

But when I try '=Min([Year])' to check if that's work that still auto-select 2014.

But I'm agree your solution works ^^ so i'm fine with this problem.