Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
q11hhg
Contributor III
Contributor III

distinct count customer up until the max date

Hi there,

I am trying to get the number of customers historically up until the date selection in the report.

Could you please help me?

Count(distinct{$<[Document Date] = {">=$(=Date(Max([Document Date]))"}>}[CustomerID])

Labels (1)
1 Solution

Accepted Solutions
q11hhg
Contributor III
Contributor III
Author

HI @Taoufiq_Zarra  Thanks for the help, I have figured out:

Count(distinct{<[Document Date] = {"<=$(=Max([Document Date]))"}>}[CustomerID])

View solution in original post

2 Replies
Taoufiq_Zarra

@q11hhg  Maye be like :

=Count({1<[Document Date]={">=$(=getfieldselections([Document Date]))"}>} distinct [CustomerID])

 

if  iunderstood correctly

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
q11hhg
Contributor III
Contributor III
Author

HI @Taoufiq_Zarra  Thanks for the help, I have figured out:

Count(distinct{<[Document Date] = {"<=$(=Max([Document Date]))"}>}[CustomerID])