Skip to main content
Announcements
Announcing Qlik Talend® Cloud and Qlik Answers™ to accelerate AI adoption! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
cafcptg2011
Creator
Creator

set analysis expression - how to..

Hi to everyone,

I have this tabela -> that it shows the total customers that we created in our database by year. And I need to know how many customers have sale in the same year of creation:

Cap1.PNG

What I need is (on second column):

Cap2.PNG

My set analysis expression is:

count({$< CreationYear = {'=CreationYear'}, Code ={"=sum({$< SalesYear={'=$(CreationYear)'}>}Qty)>0"}  >} distinct Code)

I have also attachment my qvw test file..

Could someone please help me.

Kind Regards,

CC

1 Solution

Accepted Solutions
sunny_talwar

May be try this

Count({$<Code ={"=CreationYear = Min(SalesYear)"}>} DISTINCT Code)


Capture.PNG

View solution in original post

2 Replies
sunny_talwar

May be try this

Count({$<Code ={"=CreationYear = Min(SalesYear)"}>} DISTINCT Code)


Capture.PNG

cafcptg2011
Creator
Creator
Author

it's correct!! 🙂

Thank you very much for help!!