# Like to determine which lines are active for the day for dashboard

**URL:** <https://community.tulip.co/t/like-to-determine-which-lines-are-active-for-the-day-for-dashboard/9283>\
**Category:** Support, Troubleshooting, & Help\
**Created:** [September 13, 2023, 6:19pm UTC](https://community.tulip.co/t/like-to-determine-which-lines-are-active-for-the-day-for-dashboard/9283 "2023-09-13T18:19:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![daman.sahota](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@daman.sahota](https://community.tulip.co/u/daman.sahota)\
**Post date:** [September 13, 2023, 6:19pm UTC](https://community.tulip.co/t/like-to-determine-which-lines-are-active-for-the-day-for-dashboard/9283/1 "2023-09-13T18:19:05Z")

</div>

I have an app making entries into a table which includes the production line name and its specific metrics that its outputting. This is a manual entry app until we put all inspections into tulip.

I would like to know how many lines are active on a given day. How do I compute this? is there like the power bi function Count(distinct) in Tulip. I trying to display this on a dashboard.

---

<div class="post-metadata">

**Author:** ![John](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/john/32/4971_2.png) [@John](https://community.tulip.co/u/John)\
**Post date:** [September 15, 2023, 2:51pm UTC](https://community.tulip.co/t/like-to-determine-which-lines-are-active-for-the-day-for-dashboard/9283/2 "2023-09-15T14:51:12Z")

</div>

Hi @daman.sahota, great question.

The short answer is that this is definitely possible to do, but how you do it depends a lot on how your data is structured. Here’s how I’ve done this in the past.

If I want to see have many of a given entity are active at a time, I create an analytic starting with the `COUNT WHERE TRUE` Function. Here I used the `STATUS` field from my table, and used `IN PROGRESS` as the status I want to look at.

 ![Screenshot 2023-09-15 at 10.47.24 AM](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/5/5513ea620ab8599b9d34cf73d65aa4edef131dee.png)

The next step is to specify the time range. I used the built in Date Range tool for this. Here, I can select the range that makes the most sense for me, including Today, Yesterday, or longer periods.

 ![Screenshot 2023-09-15 at 10.46.04 AM](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/0/0bb31a323906889eaeb9b36a1386543146c041f9.jpeg)

There are certainly ways that this can get more complicated, and hopefully this is enough to get you started!
