# How to get values of last days of previous month?

**URL:** <https://community.grafana.com/t/how-to-get-values-of-last-days-of-previous-month/86881>\
**Category:** Graphite\
**Created:** [May 2, 2023, 8:42am UTC](https://community.grafana.com/t/how-to-get-values-of-last-days-of-previous-month/86881 "2023-05-02T08:42:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![remabiohazard](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@remabiohazard](https://community.grafana.com/u/remabiohazard)\
**Post date:** [May 2, 2023, 8:42am UTC](https://community.grafana.com/t/how-to-get-values-of-last-days-of-previous-month/86881/1 "2023-05-02T08:42:44Z")

</div>

I have to get values of the only last day to previous month from graphite data.  
When i trie “Relative Time” and “Time Shift”, allways empty data !!  
It’s possible ?

thks

---

<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:** [May 7, 2023, 2:05pm UTC](https://community.grafana.com/t/how-to-get-values-of-last-days-of-previous-month/86881/2 "2023-05-07T14:05:00Z")

</div>

Welcome @remabiohazard to the Grafana forum.

Here is some sample Graphite data for the previous month. You can save the time selector to be Previous Month when you save the dashboard:

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

![image](https://us1.discourse-cdn.com/grafana/original/3X/0/0/0043374d085059db457f22350e6843599f60a321.png)

To display the last value of the month, change to Stat panel and choose the reducer function “Last”

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/d/4/d434ac971c7aa5e378485f34456689be1601d74e.png)
