Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
vmusolov
Partner - Contributor II
Partner - Contributor II

30 day count(distinct) every day

Tried to build a chart, where every day is how many unduplicated users visited in 30 days including this one.

For example on January 30 = count({date={">=01/01/2012 <=30/01/2012"}}distinct user_id)

It works for 1 day, but i need chart.

Can someone give solution?

5 Replies
Anonymous
Not applicable

Is date your dimension ?

Jonathan

vmusolov
Partner - Contributor II
Partner - Contributor II
Author

cycle dimention day(date) and day(date)&month(date)

Anonymous
Not applicable

The set analysis needs to be surrounded by <> brackets. You'll also need to use dynamic dates. Try ...

    count({<TransDate={'>=$(=Today()-30) <=$(=Today())'}>} distinct user_id)

Jonathan

Not applicable

Hi,

Rangesum and above functions may help. Pls. have a look at the attached example.

Regards,

Anonymous
Not applicable

Actually, I see now that you mean you want roling 30 day results, with the data point for each date being for the 30 days previous to that date.

See this post on Rolling 12 months (http://community.qlik.com/thread/38355). You should be able to apply the same logic to the last 30 days.

Jonathan