Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Returning Vs New User Login

Hi QV Experts,

In the dashboard attached we can see that some users have only logged in one time and some users multiple times in a day and some users have logged in several times in different days.

Based on the given data how can we show returning Vs new users per day(date) in a bar chart?

swuehl

stalwar1

1 Solution

Accepted Solutions
sunny_talwar

You can try just this

=Sum(Aggr(If(Len(Trim(Above(User))) > 0, 1, 0), User, Date))

=Sum(Aggr(If(Len(Trim(Above(User))) = 0, 1, 0), User, Date))

But then make sure your Date is sorted in ascending order in the script

View solution in original post

5 Replies
sunny_talwar

Do you have QV12? If you do then try this:

Capture.PNG

Dimension

Date

Expressions

=Sum(Aggr(If(Len(Trim(Above(User))) > 0, 1, 0), User, (Date, (NUMERIC))))

=Sum(Aggr(If(Len(Trim(Above(User))) = 0, 1, 0), User, (Date, (NUMERIC))))

Not applicable
Author

Thanks for the instant reply stalwar1‌ but unfortunately I am on version 11.2 and in this version your suggested expression gives me allocated memory exceeded error. Is there a workaround for version 11.2?

Earlier I had tried below for returning and new respectively but this gave me the same error as well.

If(Sum( Aggr( Count(DISTINCT [Date]), User) )>1)

If(Sum( Aggr( Count(DISTINCT [Date]), User) )=1)

Any workaround for version 11.2?

sunny_talwar

You can try just this

=Sum(Aggr(If(Len(Trim(Above(User))) > 0, 1, 0), User, Date))

=Sum(Aggr(If(Len(Trim(Above(User))) = 0, 1, 0), User, Date))

But then make sure your Date is sorted in ascending order in the script

sunny_talwar

Another alternative can be a script based solution where we create flags and use those flags in set analysis

Not applicable
Author

Thank you stalwar1‌. The suggested solution works. Appreciate your quick turnaround.