# Tulip Analyses Interval not showing as KPI

**URL:** https://community.tulip.co/t/tulip-analyses-interval-not-showing-as-kpi/8226
**Category:** Support, Troubleshooting, & Help
**Created:** [May 2, 2023, 4:16pm UTC](https://community.tulip.co/t/tulip-analyses-interval-not-showing-as-kpi/8226 "2023-05-02T16:16:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![knowlec](https://avatars.discourse-cdn.com/v4/letter/k/2bfe46/32.png) [@knowlec](https://community.tulip.co/u/knowlec)
#### Post date: [May 2, 2023, 4:16pm UTC](https://community.tulip.co/t/tulip-analyses-interval-not-showing-as-kpi/8226/1 "2023-05-02T16:16:03Z")

</div>

Hi,

I want to display a interval as a KPI in a dashboard.  
However for some reason i cant get it to show.

if I just select the variable in my KPI, it shows “00:00:00”. and when I try to convert it to seconds it gives me a “0”.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/2/20b911efbe36be1b8b0d99764480447dbdc3a24c.png)  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/f/fb0f498fd77df1d4536797976d435d28df096d57.png)

however in my app i can see the seconds go in my variable:

![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/b/bc4464cc39eba82319c2e0e5e4a190a49ea912d7.png)

I know I could just use the variable as my KPI instead of using the Number box in my analysis dashboard, but I’m just wondering why it wont show up? am I missing something obvious?

fyi, I’m using the Work Instruction app and the Stopwatch custom widget for this testing

---

<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: [May 8, 2023, 6:53pm UTC](https://community.tulip.co/t/tulip-analyses-interval-not-showing-as-kpi/8226/2 "2023-05-08T18:53:05Z")

</div>

@knowlec, thanks for the question. i want to throw two thoughts out there to get the troubleshooting going.

1. Most likely problem here is that you’re not using an aggregation function in your expression. Can you see if it works if you add a sum() or average()?
2. If the analytic is evaluating to 0 second it can also indicate a trigger error when storing data to the variable. Can you confirm that you’re saving the variable and populating it with the right time information?

Hope this helps!

---

<div class="post-metadata">

### Author: ![knowlec](https://avatars.discourse-cdn.com/v4/letter/k/2bfe46/32.png) [@knowlec](https://community.tulip.co/u/knowlec)
#### Post date: [May 9, 2023, 2:05pm UTC](https://community.tulip.co/t/tulip-analyses-interval-not-showing-as-kpi/8226/3 "2023-05-09T14:05:11Z")

</div>

@John hi john,  
thanks for your response,  
i tried putting a SUM() and a AVG() around the calculation but its still giving me a 0 result

For your second option, i assumed the value was being recorded correctly as it was showing the seconds when i displayed the variable in my screenshot above  
Im not saving the variable to a record though, its just in the app and i want to display the interval time each time the app is run without having to save each record
