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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Counting Selective Users

I have the following Table

USER_IDONLINE_BOOKING_COUNTPHONE_BOOKING_COUNTWALK_IN_BOOKING_COUNTWALK_IN_BOOKING_COUNT_NON_PEAK
3193310
7361000
5470120
3113520
4741100
6802020
3571011
9081322
4822220
5650022
2773522

1. I want COUNT THE USERS of PHONE, ONLINE, WALK_IN BOOKING  but  EXCLUDE IF WALK_IN_NON_PEAK=>0, PHONE=0, ONLINE=0. ie trying to Isolate users who book only using WALK_IN_NON_PEAK. (Example User ID 565)

2. SUM  of bookings for ONLINE, PHONE, WALK_IN  exclude USER if user books only WALK_IN-NON_PEAK

Thank you

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

1. COUNT({<WALK_IN_BOOKING_COUNT_NON_PEAK={'>=0'},ONLINE_BOOKING_COUNT={0},PHONE_BOOKING_COUNT={0}>}USERID)

... >= 0 ? Doesn't make sense to me to include 0's, but whatever. You asked for it. You can't isolate 565 this way though.

2.  SUM({<WALK_IN_BOOKING_COUNT_NON_PEAK={'>0'}>} XXXXX_BOOKING_COUNT)


talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

1. COUNT({<WALK_IN_BOOKING_COUNT_NON_PEAK={'>=0'},ONLINE_BOOKING_COUNT={0},PHONE_BOOKING_COUNT={0}>}USERID)

... >= 0 ? Doesn't make sense to me to include 0's, but whatever. You asked for it. You can't isolate 565 this way though.

2.  SUM({<WALK_IN_BOOKING_COUNT_NON_PEAK={'>0'}>} XXXXX_BOOKING_COUNT)


talk is cheap, supply exceeds demand