Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
AIShatiLove
Contributor III
Contributor III

calculated field in set analysis

Hi, how to write set analysis expresion if in left part i have calculated field:

sum({<Year(date)={'=>2017'}>} [values])  - error in expression
what syntax should I use here?

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan

Hi @AIShatiLove 

Try lke below

Bring year field from script,

sum({<Year={">=2017"}>} [values])  
Or

sum({<date={">=$(=MakeDate(2017,01,01))"}>} [values])  

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
marcus_sommer

The left part must be always a native field but you could try it in this way:

sum({< date ={"=>makedate(2017)"}>} [values])

- Marcus

MayilVahanan

Hi @AIShatiLove 

Try lke below

Bring year field from script,

sum({<Year={">=2017"}>} [values])  
Or

sum({<date={">=$(=MakeDate(2017,01,01))"}>} [values])  

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.