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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
smilingjohn
Specialist
Specialist

Set analysis

HI All,

Why is this expression not working ?

is there anything that i need to change ?

=sum({$<year=("$(=year(Today())))"}>}runs)

Thanks in Advance

1 Solution

Accepted Solutions
qlikview979
Specialist
Specialist

Instead  of Year  put "Date"

View solution in original post

16 Replies
Anil_Babu_Samineni

Yes you have to change it like below

=sum({$<year= {"year = Year(Today())"}>}runs)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
swuehl
MVP
MVP

I think there is one closing ) too much:

=sum({$<year=("$(=year(Today()))"}>}runs)

prma7799
Master III
Master III

=sum({$<YEAR = {"($=Year(Today()))"}>}runs)

smilingjohn
Specialist
Specialist
Author

Hi Anil,

This is not working

Anil_Babu_Samineni

As stefan notice one parenthesis looks like extra

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
smilingjohn
Specialist
Specialist
Author

This is giving me the whole total ,

I want to display for the current year today the sum of runs

smilingjohn
Specialist
Specialist
Author

HI stefan ,

THis is what i get the expression higlighted by the red lines ..and is nto giving the desired output

Errordate.PNG

prma7799
Master III
Master III

instead of open braces (     put    curly braces    {

Anil_Babu_Samineni

Try this?

=sum({$<year=('$(=Year(Today()))'}>}runs)

or

=sum({$<year=('$(=Max(year))'}>} runs)

Note - I've seen reply to Stefan. Try above

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful