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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

One months DAU

Hi.

I have simple Daily Active Users (DAU) Bar Chart.

It has one dimension – “day” and one expression – “count (distinct vistorId)”

The question is: How can I to calculate “one months DAU” – all users, which visited site in period between “this day” and “this day”-30 days.

Thank you.

Sample data:

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Attached a sample QVW with your data.

View solution in original post

13 Replies
swuehl
Champion III
Champion III

You can do this with set analysis.

Your day field needs to be a QV date field, its saying something like '06/03/2015' for today, right? And shows also a numeric representation?

Then try something like

=count({<day = {">=$(=Date(today()-30))<=$(=today())"}>} distinct visitorId)

Not applicable
Author

This formula is correct, but I need calculation for every day in my chart, not only for today.

The formula should be something like this:

count({<day = {">=$(=day-30)<=$(=day)"}>} distinct visitorId)
But I can not use the data from dimension in set analysis.

sunny_talwar
MVP
MVP

You will need RangeSum(Above)) in your case then...

Try something like this:

=RangeSum(Above(Count(DISTINCT visitorId), 0, 30))

HTH

Best,

Sunny

swuehl
Champion III
Champion III

You probably need below()

=RangeSum(Below(Count(DISTINCT visitorId), 0, 30))

sunny_talwar
MVP
MVP

Yup, depending on how the data is sorted, she might need above or below

sunny_talwar
MVP
MVP

PFA a sample with two options (second option is available only for straight table and first option may need to be altered if you are using a pivot table)

Best,

Sunny

Not applicable
Author

This formula calculate distinct vistiors per every day and then sum it.

I neen to find DISTINCT vistiors for these 30 days

sunny_talwar
MVP
MVP

Would you be able to share some sample data to work on?

Best,

Sunny

swuehl
Champion III
Champion III

Maybe like attached?