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

Year(field) in Set Analysis doesn't work

Before asking , I have found a similar topic but it doesn't work when trying to adapt mine.

I want to filter the result by counting only the records of this year

if I display the =YEAR(SCContract__c.StartDate__c) then I get 2013 , 2014 ...

here my expression

I want to consider all the values , so I did use the {1

but how to evaluate the Year of the StartDate ?

=COUNT({1<{$(=YEAR(SCContract__c.StartDate__c))}={'2014'}>}SCCContract__c.StartDate__c)

Thanks for your explainations

Alban

2 Replies
SergeyMak
Partner Ambassador
Partner Ambassador

As I know you can't use formula in the left part in set analysis.

Just do YEAR(SCContract__c.StartDate__c) AS YearStartDate in load script

and then use

COUNT({1<YearStartDate={2014}>}SCCContract__c.StartDate__c) as your expression

Regards,
Sergey
its_anandrjs

Try with

Max(YearFieldValue) in the expression