Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to change the expression to show the count of id for current day?

Hi,

I have table with dimension method and Clear.

the expression is count(ID)

The method have data call, email, notice
Clear have data with condition as If(Clear='Work', Clear)

so, I will get under each method the for work the count of iDs. But what I need is the count of Id on current day. So, how can I change the expression

can anyone suggest me please?

1 Solution

Accepted Solutions
ashfaq_haseeb
Champion III
Champion III

True.

Hi with that expression you will get yesterday data

Yesterday

=count({<Date_Field={"$(=date(today()-1))"}>}ID)


Today


=count({<Date_Field={"$(=date(today()))"}>}ID)


Regards

ASHFAQ

View solution in original post

8 Replies
ashfaq_haseeb
Champion III
Champion III

Hi

Try below

=count({<Date_Field={"$(=date(today()-1))"}>}ID)

Regards

ASHFAQ

Not applicable
Author

Thanks. I will get the data for yesterday with this expression so, for today(current day) I would change to

=count({<Date_Field={"$(=date(today()))"}>}ID)

Is that correct?

ashfaq_haseeb
Champion III
Champion III

True.

Hi with that expression you will get yesterday data

Yesterday

=count({<Date_Field={"$(=date(today()-1))"}>}ID)


Today


=count({<Date_Field={"$(=date(today()))"}>}ID)


Regards

ASHFAQ

Not applicable
Author

Thanks. If I have to add another column value means how can I change today expression. I need to write the condition as

Status='Open' and Status='Further'

I need two expressions as with one Status='Open' and another with Status='Further' for today data.

Please can you help me in this.

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

=count({<Status={'Open'}, Date_Field={"$(=date(today()))"}>}ID)


=count({<Status={'Further'}, Date_Field={"$(=date(today()))"}>}ID)


Regards,

Jagan.

ashfaq_haseeb
Champion III
Champion III

Try below

=count({<Status={'Open'},Date_Field={"$(=date(today()))"}>}ID)


count({<,Status={'Further'},Date_Field={"$(=date(today()))"}>}ID)


Regards

ASHFAQ


Not applicable
Author

Thanks.

Not applicable
Author

Thanks.