
Contributor III
2018-12-28
06:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Count with condition on Date = yesterday
Hi guys,
I'm filling a table in my dashboard, and I'd like to count, for each user, the number of customers managed yesterday.
I have my column with all the users, and I'm adding a new column with the count (distinct) of the customers, but I can't do it.
- I have declared yesterday (and it works) as:
Let yesterday=date(firstworkdate(Today()-1, 1)
- I'm working with my source column DocDta, correctly managed as date values:
- My customers' list it's like that:
I tried many ways but I can't fill my column properly (in the first case I get "-" as result, in the second one I get always 0):
=if(date(DocDta)=yesterday, count(distinct CUSTOMER_ItemDes))
=count({<DocDta={yesterday}>} distinct CUSTOMER_ItemDes)
Thank you very much for your help!
1,422 Views
1 Solution
Accepted Solutions

MVP
2018-12-28
07:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try like this
=Count({<DocDta = {"$(=yesterday)"}>} DISTINCT CUSTOMER_ItemDes)
or
=Count({<DocDta = {"$(=$(yesterday))"}>} DISTINCT CUSTOMER_ItemDes)
1,408 Views
2 Replies

MVP
2018-12-28
07:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try like this
=Count({<DocDta = {"$(=yesterday)"}>} DISTINCT CUSTOMER_ItemDes)
or
=Count({<DocDta = {"$(=$(yesterday))"}>} DISTINCT CUSTOMER_ItemDes)
1,409 Views

Contributor III
2018-12-28
08:13 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The first one works, thank you!!
1,395 Views
