Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
BI & Data Trends 2021. Discover the top 10 trends emerging in today. Join us on Dec. 8th REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor

count new in last 7 days who

Hi,

The below expression should result the counting new customers who appeared over last 7 days.

can you help please to find why the below expression does not work:

count({$<[Customer Name]
={"=min({$<Turnover={'>0'},[Offer Creation Date]={'<=$(=max([Offer Creation Date]))'}>}[Offer Creation Date])>=$(=max([Offer Creation Date])-7)"}>}
distinct [Customer Name])

Thanks 

Jacek

 

2 Replies
Highlighted

Hi ,

I did not understand first part of section access but I tried with the date range, please try 

count(distinct({$<[Customer Name]={"=min({$<Turnover={'>0'},

[Offer Creation Date]={">=$(=Date(max([Offer Creation Date])-7))<=$(=Date(max([Offer Creation Date])))"}>} [Customer Name]))

 

Thanks

Highlighted
Contributor
Contributor

Thanks, the expression is still not working. It should count only customers who made turnover in last 7 days for the first time ever.