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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
knightwriter
Creator III
Creator III

Count Yesterday?

Hi All,

I am trying to count the number of cars sold 'yesterday' after I refresh my dashboard on a daily basis.

How do I show this in a straight table and in a text object?

The expression I have tried is;

=count(distinct(if (InDay ([Cars]='Sold, Today(), -1), [Car Id], )))

Many thanks

1 Solution

Accepted Solutions
knightwriter
Creator III
Creator III
Author

Hi All,

thanks for your comments.

I used

=count(distinct(if(Inday([Cars], Today(), -1) and [Car status]= 'Sold', [Car type], )))

View solution in original post

5 Replies
sunny_talwar

May be this:

=Count({<Date = {"$(=Date(Max(Date) - 1))"}>}DISTINCT [Car Id])

Kushal_Chawda

try,

count({<Cars ={'Sold'},Date ={"$(=date(today()-1,'Yourdateformat'))"}>} distinct [Car Id])

qlikmsg4u
Specialist
Specialist

try this

=Count({<Date = {"$(=max(Date)-1)"}>}Distinct Carid)

Not applicable

Hi

count({<Cars ={'Sold'},Date ={"$(=Date(Max(Date) - 1))"}>} distinct [Car Id])

knightwriter
Creator III
Creator III
Author

Hi All,

thanks for your comments.

I used

=count(distinct(if(Inday([Cars], Today(), -1) and [Car status]= 'Sold', [Car type], )))