# Stat widget mini graph discrepancy

**URL:** <https://community.grafana.com/t/stat-widget-mini-graph-discrepancy/123763>\
**Category:** Stat Panel\
**Created:** [June 11, 2024, 10:35pm UTC](https://community.grafana.com/t/stat-widget-mini-graph-discrepancy/123763 "2024-06-11T22:35:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kasubram](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/kasubram/32/46040_2.png) [@kasubram](https://community.grafana.com/u/kasubram)\
**Post date:** [June 11, 2024, 10:35pm UTC](https://community.grafana.com/t/stat-widget-mini-graph-discrepancy/123763/1 "2024-06-11T22:35:40Z")

</div>

- What Grafana version and what operating system are you using?  
9.5.19 (Hosted on Azure)

- **What** are you trying to achieve?  
Trying to use stat widget to show availability of the service.

- **How** are you trying to achieve it?  
Writing a kql-M query to calculate the availability.

- What happened?  
The stat says 100%, but the graph shows a dip.

- What did you **expect** to happen?  
If I select “Table view” in the stat widget, for few hours it shows the availability as 99.7. Seems like when it sums all the availability in the time series, its rounding up to 100. I was expecting the actual value and round it up.

- Can you copy/paste the configuration(s) that you are having problems with?

- Did you receive any errors in the Grafana UI or in related logs? If so, please tell us **exactly** what they were.  
No errors,

Stat widget discrepancy  
 ![image](https://us1.discourse-cdn.com/grafana/original/3X/8/e/8ebc482b6eca4a62cab82b94eb830caa458e59cb.png)

The table view.

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/6/0/6020c89d59db08e5ac472cfd99a8241902d2686c.png)  
shows few hours it was at 99.9.

---

<div class="post-metadata">

**Author:** ![grant2](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/grant2/32/42281_2.png) [@grant2](https://community.grafana.com/u/grant2)\
**Post date:** [June 11, 2024, 11:32pm UTC](https://community.grafana.com/t/stat-widget-mini-graph-discrepancy/123763/2 "2024-06-11T23:32:03Z")

</div>

Welcome @kasubram to the Grafana forum.

Is the **Calculation** (on the right) set to Last, Mean, or something else?

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/f/1/f1195e805af3e5011dcdd8b31f34ed2b06653e00.png)

vs.

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/f/9/f9b83614b3d56b1fc4b0cbf570ff791c5c04f6c7.png)

table view for above:

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/b/8/b899cff897d0c8b1ed4a401fe21a271139e1008e.png)
