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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count with a specific criteria


Hi,

I am building a report for our Consultations department.

Currently all the "Details" of clients who visit the office, is captured on an excel spread sheet.

This list goes back a few years.

I am trying to count the number of times that a client has visit our offices. That is straight forward. However, when I Count, and start using the list boxes to select i.e yesterdays date, it only indicates 1( as client only visited once that day).

Is it possible to bring up the names of clients who visited yesterday, but show me the combined total times client has visit, and not 1?

14 Replies
Not applicable
Author


Hope this works. Could it be due to my link to a sql database?

If it does open, look at the "Client details" sheet. the "Total visits to office" chart, should now only give me the visits as per clients on left chart.

anbu1984
Master III
Master III

Are you not getting correct result using this expr?

count({1}left(AccountNumber,6))

142308.png

Not applicable
Author

Hi Anbu,

Yes I am getting the correct answer.

But I would like it to now dynamically change to only show the stats, for those few clients who was in office on selected day.

michael_anthony
Creator II
Creator II

What about If (count (visit_id)> 0, count({1} visit_id).  It should ony calc the total visits if had at least one in the selected date.

Or could do the test as a calculated dimension. 

Not applicable
Author

Yes. Thanks Michael. That works perfect.