<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DQL Monthly Query for problems in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/DQL-Monthly-Query-for-problems/m-p/271272#M1758</link>
    <description>&lt;P&gt;Try putting the year first, and you don't need to do the join.&lt;/P&gt;&lt;P&gt;fetch dt.davis.problems&lt;BR /&gt;| summarize TotalProblemMonthly=count(),&lt;BR /&gt;ServiceNowTickets=countIf(matchesPhrase(labels.alerting_profile, "ServiceNow")),&lt;BR /&gt;by:{Month = formatTimestamp(timestamp, format: "yyyy-MM")}&lt;BR /&gt;| sort Month desc&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2025 20:02:49 GMT</pubDate>
    <dc:creator>StrangerThing</dc:creator>
    <dc:date>2025-02-27T20:02:49Z</dc:date>
    <item>
      <title>DQL Monthly Query for problems</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Monthly-Query-for-problems/m-p/271270#M1757</link>
      <description>&lt;P&gt;hi all, i am trying to do&amp;nbsp;Monthly Problem Count and ServiceNow Ticket Count Over the Last 4 Months in one tile.&lt;/P&gt;&lt;P&gt;fetch dt.davis.problems&lt;BR /&gt;| summarize TotalProblemMonthly=count(), by:{Month = formatTimestamp(timestamp, format: "MM-yyyy")}&lt;BR /&gt;| join [fetch dt.davis.problems&lt;BR /&gt;| filter matchesPhrase(labels.alerting_profile,"ServiceNow")&lt;BR /&gt;| summarize ServiceNowTickets=count(), by:{Month = formatTimestamp(timestamp, format: "MM-yyyy")}], on:{Month}&lt;/P&gt;&lt;P&gt;the result coming out not sorted i want to sort it based on a month, however if i use sort command will not use the year ad well which is a problem. look at the result image. any recommendation to fix the query to sort it?&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-27 144024.png" style="width: 644px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26727i798E297274FEFB2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-02-27 144024.png" alt="Screenshot 2025-02-27 144024.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 19:41:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Monthly-Query-for-problems/m-p/271270#M1757</guid>
      <dc:creator>Eyad</dc:creator>
      <dc:date>2025-02-27T19:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: DQL Monthly Query for problems</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Monthly-Query-for-problems/m-p/271272#M1758</link>
      <description>&lt;P&gt;Try putting the year first, and you don't need to do the join.&lt;/P&gt;&lt;P&gt;fetch dt.davis.problems&lt;BR /&gt;| summarize TotalProblemMonthly=count(),&lt;BR /&gt;ServiceNowTickets=countIf(matchesPhrase(labels.alerting_profile, "ServiceNow")),&lt;BR /&gt;by:{Month = formatTimestamp(timestamp, format: "yyyy-MM")}&lt;BR /&gt;| sort Month desc&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 20:02:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Monthly-Query-for-problems/m-p/271272#M1758</guid>
      <dc:creator>StrangerThing</dc:creator>
      <dc:date>2025-02-27T20:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: DQL Monthly Query for problems</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Monthly-Query-for-problems/m-p/271273#M1759</link>
      <description>&lt;P&gt;Perfect!, my other question. why it says line graph is unsuitable. if i want the results in graph.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 20:15:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Monthly-Query-for-problems/m-p/271273#M1759</guid>
      <dc:creator>Eyad</dc:creator>
      <dc:date>2025-02-27T20:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: DQL Monthly Query for problems</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Monthly-Query-for-problems/m-p/271292#M1762</link>
      <description>&lt;P&gt;You should use rounded timestamps, not string representation. Also to do proper bar chart it is better to use timerange so single bar spans the time it applies to:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.davis.problems
| summarize { TotalProblemMonthly=count() , ServiceNowTickets=countIf(matchesPhrase(labels.alerting_profile, "ServiceNow")) },
  by:{ timeframe=timeframe( from: timestamp@M, to: timestamp@M+1M ) }
| sort timeframe desc&lt;/LI-CODE&gt;&lt;P&gt;I used time alignment operators:&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-query-language/operators#time-alignment" target="_blank"&gt;https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-query-language/operators#time-alignment&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Result look like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_0-1740729792108.png" style="width: 953px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26731i41C766CAAD82CC08/image-dimensions/953x308?v=v2" width="953" height="308" role="button" title="krzysztof_hoja_0-1740729792108.png" alt="krzysztof_hoja_0-1740729792108.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_1-1740730602967.png" style="width: 766px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26732i0D0DC6DACA657BD1/image-dimensions/766x268?v=v2" width="766" height="268" role="button" title="krzysztof_hoja_1-1740730602967.png" alt="krzysztof_hoja_1-1740730602967.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 08:18:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Monthly-Query-for-problems/m-p/271292#M1762</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2025-02-28T08:18:37Z</dc:date>
    </item>
  </channel>
</rss>

