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: 
Not applicable

Conditional aggregate

Hi All,

I have the following expression which works fine: "=Sum(Aggr(FirstSortedValue([Loan($)],-Date),[Grower No.])) ". In my data, I have a column with "Year" in it. How can I tweak the expression so that it only sums up where Year = 2014 for example. I am getting myself in a twist trying to use the if function here.

Thank you

Herbert

1 Reply
swuehl
MVP
MVP

Maybe like

=Sum({<Year = {2014}>} Aggr(FirstSortedValue({<Year = {2014}>} [Loan($)],-Date),[Grower No.]))