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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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
MVP
MVP

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
MVP
MVP

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

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

- Marcus

MayilVahanan
MVP
MVP

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.