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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

A total on the function if

Hello,


I have a table by customer code on which I managed to calculate the number of new customers. The objective is to get only this sum in an object without the table of details.

Min_date= aggr(  min({<Date=>}    Date),[Code Client])

New = if (aggr(  min({<Date=>}    Date),[Code Client])<AddMonths(vDateDébut,-24), 1, 0)

new_client.JPG




Thank you for your help

1 Solution

Accepted Solutions
sunny_talwar

Or may be this

Sum(If(Aggr(Min({<Date=>} Date), [Code Client]) < AddMonths(vDateDébut,-24), 1, 0))

View solution in original post

3 Replies
sunny_talwar

May be this

Sum(Aggr(If(Min({<Date=>} Date) < AddMonths(vDateDébut,-24), 1, 0), [Code Client]))

sunny_talwar

Or may be this

Sum(If(Aggr(Min({<Date=>} Date), [Code Client]) < AddMonths(vDateDébut,-24), 1, 0))

Anonymous
Not applicable
Author

Thanks lot for your help it's work