Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
belgarathza
Contributor II
Contributor II

Tickets Logged Today

Hi

I'm busy creating a dashboard with a viewset which will contain the field "Tickets logged today".I'm battling to get the distinct count for all the Tickets logged for the specifc date. It either gives me all the tickets or it only shows 1. I'm currently using the following formula: "

=Count(DISTINCT([Num]=If([Open Date]=Today(),''))) "

Is there another way of getting the results?

Regards

Terence

1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi Terence,

You can do this:

=Count(if(Date(floor([Open Date]))=Today(),Num))

But it's easier if you create an OpenDate in your script without timestamp (or just separate the timestamp into another field).

View solution in original post

6 Replies
Not applicable

Hi,

you can use this expression

count(distinct if([Open Date]=Today(), TicketID))

Hope this helps.

Regards,

Amay.

Anonymous
Not applicable

If [Num] is your Ticket ID or something similar you should be able to do something along the lines of:

count({$<[Open Date]={$(=Today())}>} distinct [Num])

alexandros17
Partner - Champion III
Partner - Champion III

count({$ <[Open Date]={'$(=today())'}>} DISTINCT Num)

hope it helps

belgarathza
Contributor II
Contributor II
Author

Hi All

Thank you for the quick responses, I've attached some of the data and a qv file to give more information.

Regards

Terence

Anonymous
Not applicable

Hi Terence,

You can do this:

=Count(if(Date(floor([Open Date]))=Today(),Num))

But it's easier if you create an OpenDate in your script without timestamp (or just separate the timestamp into another field).

belgarathza
Contributor II
Contributor II
Author

Hi 🙂

Thank you very much, it works.:-)

I adjusted the formula slightly to assist with the distinct count and it works perfectly.

=Count(Distinct(if(Date(floor([Open Date]))=Today(),Num)))

Regards

Terence