# Issue when stacking time series with mixed datasource (Grafana version 9.1)

**URL:** <https://community.grafana.com/t/issue-when-stacking-time-series-with-mixed-datasource-grafana-version-9-1/117859>\
**Category:** Time Series Panel\
**Tags:** stacking\
**Created:** [March 25, 2024, 7:21pm UTC](https://community.grafana.com/t/issue-when-stacking-time-series-with-mixed-datasource-grafana-version-9-1/117859 "2024-03-25T19:21:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lpinochi](https://avatars.discourse-cdn.com/v4/letter/l/58f4c7/32.png) [@lpinochi](https://community.grafana.com/u/lpinochi)\
**Post date:** [March 25, 2024, 7:21pm UTC](https://community.grafana.com/t/issue-when-stacking-time-series-with-mixed-datasource-grafana-version-9-1/117859/1 "2024-03-25T19:21:23Z")

</div>

- What Grafana version and what operating system are you using?  
Grafana version 9.1 OS: Redhat linux 8.4

- **What** are you trying to achieve?  
Correctly stack time series from different datasources.

- **How** are you trying to achieve it?  
I have 2 queries. One is a openTSDB query, and the other one is a PNP.  
In time series options, I use the stack option in Normal.

- What happened?  
Opentsdb has a donwsample of 5 minutes. PNP has a downsample of 5 minutes too, but the time series shows values per minute, repeating values, since it only changes every five 5 minutes.  

- What did you **expect** to happen?  
I have this same query in Grafana 6.7, both datasources are the same and time series are stacked together correctly.  

- Can you copy/paste the configuration(s) that you are having problems with?  
If you need any settings, please let me know.

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

- Did you follow any online instructions? If so, what is the URL?  
I found no instructions for issues like this.

---

<div class="post-metadata">

**Author:** ![sowdenraymond](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/sowdenraymond/32/38541_2.png) [@sowdenraymond](https://community.grafana.com/u/sowdenraymond)\
**Post date:** [March 26, 2024, 6:20am UTC](https://community.grafana.com/t/issue-when-stacking-time-series-with-mixed-datasource-grafana-version-9-1/117859/2 "2024-03-26T06:20:39Z")

</div>

can you show a table view of your data?

---

<div class="post-metadata">

**Author:** ![lpinochi](https://avatars.discourse-cdn.com/v4/letter/l/58f4c7/32.png) [@lpinochi](https://community.grafana.com/u/lpinochi)\
**Post date:** [March 26, 2024, 7:57pm UTC](https://community.grafana.com/t/issue-when-stacking-time-series-with-mixed-datasource-grafana-version-9-1/117859/3 "2024-03-26T19:57:55Z")

</div>

Hi, sorry for the delay, Here a attach in table format.  
For queries taken from the openTSDB, I have values every 5 min:

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/0/f/0f74bd14f91bde7710a711dd68b526b53def53ce.png)  
And for PNP, as i said before, it shows values per minute:  
 ![image](https://us1.discourse-cdn.com/grafana/original/3X/3/a/3aadf0e46541963fb87e2233d5c9c6879c7c5348.png)

Please let me know if you need anything else. Thanks.

---

<div class="post-metadata">

**Author:** ![sowdenraymond](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/sowdenraymond/32/38541_2.png) [@sowdenraymond](https://community.grafana.com/u/sowdenraymond)\
**Post date:** [March 27, 2024, 6:48am UTC](https://community.grafana.com/t/issue-when-stacking-time-series-with-mixed-datasource-grafana-version-9-1/117859/4 "2024-03-27T06:48:27Z")

</div>

can you try add a concatenate transform?

before:

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

after:

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

---

<div class="post-metadata">

**Author:** ![lpinochi](https://avatars.discourse-cdn.com/v4/letter/l/58f4c7/32.png) [@lpinochi](https://community.grafana.com/u/lpinochi)\
**Post date:** [March 27, 2024, 1:11pm UTC](https://community.grafana.com/t/issue-when-stacking-time-series-with-mixed-datasource-grafana-version-9-1/117859/5 "2024-03-27T13:11:31Z")

</div>

Thanks, it looks like the graph is fine now. The only issue is that i am getting the “data outside time range” message. I am trying to figure it out

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/3/d/3d8043e04ad58220f66f542c716bb33cbc76b300.png)  
Let me know if you found a similar message like this before. Regards.
