<?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: Can't use graph in new UI Dashboard in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Can-t-use-graph-in-new-UI-Dashboard/m-p/228317#M338</link>
    <description>&lt;P&gt;After some playing I've found half the root cause of the issue.&lt;BR /&gt;&lt;BR /&gt;On ingestion of the BizEvent the field monthlyRequests is actually seen a string field and to make the new UI use it as a number I had to add the toLong() to the query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;| summarize {`Monthly Requests` = toLong(takeLast(monthlyRequests))},by:{Date = formatTimestamp(bin(timestamp, 1d),format:"MM-dd-YYYY")}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It seems the log and events app does this without having to use the toLong() to convert it to a number so there is an inconsistency between the apps on the platform.&lt;/P&gt;&lt;P&gt;However some charts have appeared but not the required line/bar charts&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mark_forrester_0-1699552944274.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15432i001EFC6210048356/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mark_forrester_0-1699552944274.png" alt="mark_forrester_0-1699552944274.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mark_forrester_1-1699552977675.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15433i0DA88ED2A9CFCF66/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mark_forrester_1-1699552977675.png" alt="mark_forrester_1-1699552977675.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Nov 2023 18:03:20 GMT</pubDate>
    <dc:creator>mark_forrester</dc:creator>
    <dc:date>2023-11-09T18:03:20Z</dc:date>
    <item>
      <title>Can't use graph in new UI Dashboard</title>
      <link>https://community.dynatrace.com/t5/DQL/Can-t-use-graph-in-new-UI-Dashboard/m-p/228311#M336</link>
      <description>&lt;P&gt;So I have a query to take the last value seen per day for a field monthly requests, this filed is a running total per hour of requests and as the name suggests gets reset every month.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;fetch bizevents , scanLimitGBytes: 100
| filter event.type == "XXXXXXX"
| summarize {monthlyRequests = takeLast(monthlyRequests)},by:{bin(timestamp, 1d)}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;I want to graph this on the new UI but the visualization options do not show for any graph&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mark_forrester_0-1699544430700.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15428iA636E0A37533A9D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mark_forrester_0-1699544430700.png" alt="mark_forrester_0-1699544430700.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However exactly the same query in the logs and events explorer does allow bar charting&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mark_forrester_1-1699544574753.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15429iFCF915E90FAEEAAA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mark_forrester_1-1699544574753.png" alt="mark_forrester_1-1699544574753.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any ideas why the new UI is not allowing charting using this Grail query?&lt;BR /&gt;Also if someone can advise how to get the date to be just the date and not add the 00:00:00 for aesthetic reasons that would be great&lt;BR /&gt;&lt;BR /&gt;EDIT, I fixed the displayed timestamp using this line of DQL instead&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;| summarize {monthlyRequests = takeLast(monthlyRequests)},by:{Date = formatTimestamp(bin(timestamp, 1d),format:"dd-MM-YYYY")}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 09 Nov 2023 16:17:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Can-t-use-graph-in-new-UI-Dashboard/m-p/228311#M336</guid>
      <dc:creator>mark_forrester</dc:creator>
      <dc:date>2023-11-09T16:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use graph in new UI Dashboard</title>
      <link>https://community.dynatrace.com/t5/DQL/Can-t-use-graph-in-new-UI-Dashboard/m-p/228312#M337</link>
      <description>&lt;P&gt;Also is there a way to do a bin(value, 1M)&lt;BR /&gt;&lt;BR /&gt;It appears that DQL does not match the older intervals in the product and stops at 1d&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Time literals&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;The following time literals can be used to express durations:&lt;/P&gt;&lt;DIV class=""&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;P class=""&gt;ns: Nanoseconds&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;ms: Milliseconds&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;s: Seconds&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;m: Minutes&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;h: hours&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;d: Days&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Nov 2023 16:07:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Can-t-use-graph-in-new-UI-Dashboard/m-p/228312#M337</guid>
      <dc:creator>mark_forrester</dc:creator>
      <dc:date>2023-11-09T16:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use graph in new UI Dashboard</title>
      <link>https://community.dynatrace.com/t5/DQL/Can-t-use-graph-in-new-UI-Dashboard/m-p/228317#M338</link>
      <description>&lt;P&gt;After some playing I've found half the root cause of the issue.&lt;BR /&gt;&lt;BR /&gt;On ingestion of the BizEvent the field monthlyRequests is actually seen a string field and to make the new UI use it as a number I had to add the toLong() to the query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;| summarize {`Monthly Requests` = toLong(takeLast(monthlyRequests))},by:{Date = formatTimestamp(bin(timestamp, 1d),format:"MM-dd-YYYY")}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It seems the log and events app does this without having to use the toLong() to convert it to a number so there is an inconsistency between the apps on the platform.&lt;/P&gt;&lt;P&gt;However some charts have appeared but not the required line/bar charts&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mark_forrester_0-1699552944274.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15432i001EFC6210048356/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mark_forrester_0-1699552944274.png" alt="mark_forrester_0-1699552944274.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mark_forrester_1-1699552977675.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15433i0DA88ED2A9CFCF66/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mark_forrester_1-1699552977675.png" alt="mark_forrester_1-1699552977675.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 18:03:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Can-t-use-graph-in-new-UI-Dashboard/m-p/228317#M338</guid>
      <dc:creator>mark_forrester</dc:creator>
      <dc:date>2023-11-09T18:03:20Z</dc:date>
    </item>
  </channel>
</rss>

