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: 
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.]))