Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I got a table formatted like:
Date, CustomerID, Login
2019-05-27, 1, 1
2019-05-27, 2, 1
2019-05-27, 3, 0
2019-05-26, 1, 1
So I know for every Date, for every Customer if he had a Login at that day or not. What I want to do now is to show how many distinct Customers had a Login every Day in a selected TimeRange.
I tried like this:
count(distinct {<count(distinct DATE) = count(Login)>}customerID). I figured out, why this doesnt work, by now. Set Analysis works as an imagined selection, so Qlik can't count an imagined Selection on multiple table rows. Is there any other solution to my problem?
I thought about building an extra table just for this metric. My problem is: The user can't custom select a TimeRange then, to count the customers, who logged in every day at the specific TimeRange.
Thanks for your Help in Advance
Percicator
Just to understand your table structure:
Date, CustomerID, Login
2019-05-27, 1, 1
2019-05-27, 2, 1
2019-05-27, 3, 0
2019-05-27, 1, 1
Date: the first login? the last user login?
CustomerID: hope it´s the login ID of the customer.
Login: looks like a total of logins or the number of connections?
I believe this will work:
=count({<CustomerID=E({<Login={0}>})>}DISTINCT CustomerID)
-Rob
http://masterssummit.com
http://qlikviewcookbook.com
http://www.easyqlik.com