Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
awigham
Contributor
Contributor

Active users against user profiles

Hi all,

I have 2 tables: one showing user accounts, and one an audit log showing logins/account creations etc.

I want to be able to show the number of active users (from the audit log) as a % of the number of user profiles by month and client. I think I may need to create use Canonical dates but this is well beyond my current ability!

Does anyone have any suggestions?

4 Replies
Moiz
Partner - Contributor
Partner - Contributor

Hello,

How do you identify that the user is active ? & Do both the tables have Date Field ?

You can use Set Analysis to show the % of active users simply as :

Aggr(Count({<" Status Flag"={"Active"}>}distinct Users)/Count (Distinct Total Users),Client, Month)

 

Status Flag is the Field that tells us if the user is active or inactive.

awigham
Contributor
Contributor
Author

The user is active if they appear on the audit log. If they don't they're not active.

Model is here:

clipboard_image_0.png

Moiz
Partner - Contributor
Partner - Contributor

hello,

I think the active users should be calculated using event_type field .

The attached qvf might help you.

Regards,

Moiz

awigham
Contributor
Contributor
Author

Thanks.

Can't seem to get correct results from that. If I add client and date filter panes it is telling me that 75% of users for Client001 were active in August and Sep.

The data has 4 active events for client 1: 2 in Aug and 2 in Sep which are from 2 users, EMail001 and Email008.

idaccess_dateaccess_timeuser_affected_iduser_affected_emailevent_type
38600701/08/201929:37.317800Email001Login - success
38605801/09/201943:12.017373Email001Login - success
38601101/08/201957:21.717373Email008Login - success
38605701/09/201942:44.617373Email008Log out

 

In Aug, Client001 had 9 users, and in Sept they had 20 users. So in Aug 2/9 users were active (22%) and in Sep 2/20 (10%)