Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
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:

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Attached a sample QVW with your data.

View solution in original post

13 Replies
swuehl
MVP
MVP

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

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

Try something like this:

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

HTH

Best,

Sunny

swuehl
MVP
MVP

You probably need below()

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

sunny_talwar

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

sunny_talwar

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

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

Best,

Sunny

swuehl
MVP
MVP

Maybe like attached?