# Differences between Dashboard Data and API export data for the same period

**URL:** <https://community.dynatrace.com/t/differences-between-dashboard-data-and-api-export-data-for-the-same-period/42209>\
**Category:** Dynatrace API\
**Tags:** dynatrace-managed, dashboards, dynatrace-api\
**Created:** [October 20, 2023, 1:40pm UTC](https://community.dynatrace.com/t/differences-between-dashboard-data-and-api-export-data-for-the-same-period/42209 "2023-10-20T13:40:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EvaWang](https://avatars.discourse-cdn.com/v4/letter/e/e9c0ed/32.png) [@EvaWang](https://community.dynatrace.com/u/EvaWang)\
**Post date:** [October 20, 2023, 1:40pm UTC](https://community.dynatrace.com/t/differences-between-dashboard-data-and-api-export-data-for-the-same-period/42209/1 "2023-10-20T13:40:12Z")

</div>

I compared the data of DDU dashboard for the same period with the data exported using the API, and found a difference.&nbsp;I don’t know what caused it, please help me and give me some suggestions.

The picture below shows the data displayed by the Data explorer of a tile in the dashboard. Query data from 2023-04-01 00:00:00 to 2023-10-01 00:00:00, the sum value is 24,082.809.

 ![EvaWang_1-1697807969510.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/b/6bd35269571dbc49bcd8fcaf16a311c37bf82035.png)

Below screenshot is GET /metrics/query query in Metrics in Environment API v2，&nbsp;the sum value is 23,777.604.

 ![EvaWang_2-1697808469239.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/f/4f3403b90dd743624f72699df3486e610a983d5f.png)

 ![EvaWang_3-1697808619057.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/9/396094423bdf9a1fa41a66077ee8431e138d6cf0.png)

 ![EvaWang_4-1697808729406.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/9/692da65fe89ffddd5107d786b1d2f2f4d862ae4c.png)

 ![EvaWang_5-1697808816300.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/2/82ada6d3437513d9bcd2d3fcb323c74dc7e7903c.png)

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [October 21, 2023, 8:11am UTC](https://community.dynatrace.com/t/differences-between-dashboard-data-and-api-export-data-for-the-same-period/42209/2 "2023-10-21T08:11:08Z")

</div>

Hi&nbsp;[@EvaWang](https://community.dynatrace.com/user/67670),

Just a tip. Have you tried to change the resolution in the API request from 1M to a smaller time frame eg. 1w or 1d or 1h or 1m?

Do you get the same result with different resolution?

OR

Set the data exporer resolution to 1M instead of auto and then compare the API result with the Data Explorer result.

I hope it helps.

Best regards,

János

---

<div class="post-metadata">

**Author:** ![EvaWang](https://avatars.discourse-cdn.com/v4/letter/e/e9c0ed/32.png) [@EvaWang](https://community.dynatrace.com/u/EvaWang)\
**Post date:** [October 24, 2023, 2:50pm UTC](https://community.dynatrace.com/t/differences-between-dashboard-data-and-api-export-data-for-the-same-period/42209/3 "2023-10-24T14:50:21Z")

</div>

Thank you János, the solution works for me, I changed the API request to 2d, because the data unit was 2 days during my selected timeframe in Data Explorer. Now, the data are same&nbsp;👍&nbsp;Thanks.
