# Count On No activity

**URL:** <https://pug.phocassoftware.com/t/count-on-no-activity/667>\
**Category:** Ask the Community\
**Created:** [July 31, 2018, 1:09pm UTC](https://pug.phocassoftware.com/t/count-on-no-activity/667 "2018-07-31T13:09:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JonKemp](https://sea1.discourse-cdn.com/flex015/user_avatar/pug.phocassoftware.com/jonkemp/32/334_2.png) [@JonKemp](https://pug.phocassoftware.com/u/JonKemp)\
**Post date:** [July 31, 2018, 1:09pm UTC](https://pug.phocassoftware.com/t/count-on-no-activity/667/1 "2018-07-31T13:09:01Z")

</div>

Hi All,  
Does anyone know how to perform a count on customers with no orders?

I can get the “No Activity” list, but I want to be able to count the number of customers on a monthly basis for trending.

I suspect this will require another feed in where I perform the counts, but prior to doing this, has anyone got any good ways of doing this?

Here is an example of what I am after:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/phocassoftware/original/1X/38fefaa9e50dd0c1c640a8b29a1129d95a0290d5.jpg)

Thanks

---

<div class="post-metadata">

**Author:** ![JonKemp](https://sea1.discourse-cdn.com/flex015/user_avatar/pug.phocassoftware.com/jonkemp/32/334_2.png) [@JonKemp](https://pug.phocassoftware.com/u/JonKemp)\
**Post date:** [August 2, 2018, 5:50pm UTC](https://pug.phocassoftware.com/t/count-on-no-activity/667/3 "2018-08-02T17:50:24Z")

</div>

Thanks @john.sefton,

This had already been done. I am after a physical number on the grid not total number of rows.  
It looks like either we export to excel (based on your suggestion) to produce a chart or construct something in Phocas to get a physical value as per my screenshot I am trying to generate.

So based on the number of replies I think I need to construct a SQL script and add it to the database somehow.  
I will update the post with the workaround when tested.

---

<div class="post-metadata">

**Author:** ![JonKemp](https://sea1.discourse-cdn.com/flex015/user_avatar/pug.phocassoftware.com/jonkemp/32/334_2.png) [@JonKemp](https://pug.phocassoftware.com/u/JonKemp)\
**Post date:** [August 2, 2018, 7:20pm UTC](https://pug.phocassoftware.com/t/count-on-no-activity/667/5 "2018-08-02T19:20:54Z")

</div>

Hi,

I maybe missing something here, but if there are no records since “no activity” is selected, what would I be counting? The report is based on the absence of data. My current thinking is to create a flag on the customer to state of they have/haven’t made an order that year. Not pretty but should work.
