# How can I display weekday names in stat panel

**URL:** <https://community.grafana.com/t/how-can-i-display-weekday-names-in-stat-panel/58360>\
**Category:** Stat Panel\
**Tags:** transformations, stat-panel\
**Created:** [January 1, 2022, 5:16pm UTC](https://community.grafana.com/t/how-can-i-display-weekday-names-in-stat-panel/58360 "2022-01-01T17:16:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom84](https://avatars.discourse-cdn.com/v4/letter/t/90db22/32.png) [@tom84](https://community.grafana.com/u/tom84)\
**Post date:** [January 1, 2022, 5:16pm UTC](https://community.grafana.com/t/how-can-i-display-weekday-names-in-stat-panel/58360/1 "2022-01-01T17:16:40Z")

</div>

hi,

I am trying to display the daily energy delivered by my photovoltaic panels using the stat panel. I have configured telegraf to read the inverter power every 10 seconds and write it into an InfluxDB. Getting the daily energy is done using the following query:  
SELECT integral(“WR\_P\_AC”) / 3600 FROM “modbus” WHERE $timeFilter GROUP BY time(24h) fill(null) tz(‘CET’)  
which delivers this (formatted) data:

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/3/2/322290eb4d499ae82928a61baae360a2aea1fc56.png)

now, my idea was to add a transformation to set the field name to the corresponding time to display the weekday in each value field:

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/a/6/a648f946aef5df71d4adb22d04002f2f496db8d9.jpeg)

at this point, the time gets formatted and interpreted as number.

how can I achieve formatting the time as weekday and display it as such?

thanks a lot!

---

<div class="post-metadata">

**Author:** ![anon70503803](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@anon70503803](https://community.grafana.com/u/anon70503803)\
**Post date:** [January 21, 2022, 12:28am UTC](https://community.grafana.com/t/how-can-i-display-weekday-names-in-stat-panel/58360/2 "2022-01-21T00:28:33Z")

</div>

Hello 👋 and welcome to the forum, @tom84

this should be possible one way or another. You might need to do some regex work. Can you share your raw, unformatted data?

> **[show-inspect-data](https://cln.sh/PTgRFb)**
>
> GIF uploaded to CleanShot Cloud

---

<div class="post-metadata">

**Author:** ![tom84](https://avatars.discourse-cdn.com/v4/letter/t/90db22/32.png) [@tom84](https://community.grafana.com/u/tom84)\
**Post date:** [February 14, 2022, 7:47pm UTC](https://community.grafana.com/t/how-can-i-display-weekday-names-in-stat-panel/58360/3 "2022-02-14T19:47:40Z")

</div>

![image](https://us1.discourse-cdn.com/grafana/original/3X/7/b/7b0de9a995873cc8ad17a9a534699fb097b30926.png)  
the data looks pretty much like in your gif…

---

<div class="post-metadata">

**Author:** ![tom84](https://avatars.discourse-cdn.com/v4/letter/t/90db22/32.png) [@tom84](https://community.grafana.com/u/tom84)\
**Post date:** [February 21, 2022, 5:36am UTC](https://community.grafana.com/t/how-can-i-display-weekday-names-in-stat-panel/58360/4 "2022-02-21T05:36:16Z")

</div>

two more screenshots: the time column can be formatted as weekday:

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/5/5/5547aed497222e4b03af26224dfdc58b76fb82db.png)  
but when i add a transformation to use the time as field name then I can not find a way to apply the formatting options:  
 ![image](https://us1.discourse-cdn.com/grafana/original/3X/a/a/aa945b9fa82f2787a7b08a16269d39b5acf3df62.png)

---

<div class="post-metadata">

**Author:** ![blessdismann](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/blessdismann/32/31101_2.png) [@blessdismann](https://community.grafana.com/u/blessdismann)\
**Post date:** [March 21, 2023, 12:01am UTC](https://community.grafana.com/t/how-can-i-display-weekday-names-in-stat-panel/58360/5 "2023-03-21T00:01:34Z")

</div>

Solution? I am trying to build something similar right now

---

<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:** [March 21, 2023, 12:50am UTC](https://community.grafana.com/t/how-can-i-display-weekday-names-in-stat-panel/58360/6 "2023-03-21T00:50:57Z")

</div>

Please share your query, any transformations used, and resulting output.
