# Get temperature History over last 4 hours

**URL:** <https://forum.inductiveautomation.com/t/get-temperature-history-over-last-4-hours/23547>\
**Category:** Ignition Early Access\
**Created:** [March 22, 2019, 9:41pm UTC](https://forum.inductiveautomation.com/t/get-temperature-history-over-last-4-hours/23547 "2019-03-22T21:41:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shawn.Schwark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/shawn.schwark/32/14045_2.png) [@Shawn.Schwark](https://forum.inductiveautomation.com/u/Shawn.Schwark)\
**Post date:** [March 22, 2019, 9:41pm UTC](https://forum.inductiveautomation.com/t/get-temperature-history-over-last-4-hours/23547/1 "2019-03-22T21:41:23Z")

</div>

I’m trying to configure a perspective app for monitoring temperatures and can’t seem to get the label to format correctly. I have a Label set to tag history and it pulls the history and gives me an average but how can I format this label to only show the number.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/a/ad70a2751989dc741a54ea21162513ec4f6ad866.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/5796be2bab4ae8e5844f8a81ae3238344a97352d.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 22, 2019, 9:44pm UTC](https://forum.inductiveautomation.com/t/get-temperature-history-over-last-4-hours/23547/2 "2019-03-22T21:44:37Z")

</div>

Change the ‘Value Format’, or scroll down and add a transform that will pull out the single scalar value of the dataset.

---

<div class="post-metadata">

**Author:** ![Shawn.Schwark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/shawn.schwark/32/14045_2.png) [@Shawn.Schwark](https://forum.inductiveautomation.com/u/Shawn.Schwark)\
**Post date:** [March 26, 2019, 1:10pm UTC](https://forum.inductiveautomation.com/t/get-temperature-history-over-last-4-hours/23547/3 "2019-03-26T13:10:26Z")

</div>

I’m looking through the documentation and can’t seem to find a way to strip that down to a single number with a transform when the label is placed from a tag directly it just shows the number I’m not sure why it shows the tag path at all.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [March 26, 2019, 3:23pm UTC](https://forum.inductiveautomation.com/t/get-temperature-history-over-last-4-hours/23547/4 "2019-03-26T15:23:10Z")

</div>

Transform:

```auto
return system.dataset.toPyDataSet(value)[0]['Average']

```
