<?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: User session query in Dashboarding</title>
    <link>https://community.dynatrace.com/t5/Dashboarding/User-session-query/m-p/126508#M1454</link>
    <description>&lt;P&gt;Is there a way to order the result&lt;BR /&gt;i got the results i wanted but not in the right order Monday then thursday ...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23114-1578562533430.png" /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 09 Jan 2020 09:35:37 GMT</pubDate>
    <dc:creator>service_apms</dc:creator>
    <dc:date>2020-01-09T09:35:37Z</dc:date>
    <item>
      <title>User session query</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/User-session-query/m-p/126504#M1450</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a quick question :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Iam trying to list the average duration of a user action by day but also compare it with D-7 (7 days before)&lt;/P&gt;
&lt;P&gt;Iam using the query : with 7 days comparison&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;select day(startTime), month(starttime), AVG(duration) FROM useraction where name is "reprise de devis" group BY day(startTime), month(starttime)&lt;/PRE&gt;
&lt;P&gt;The result i get :&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23097-d-7.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What i want is to display each day with the D-7 beside it not separated like this.&lt;/P&gt;
&lt;P&gt;So on January 1st for example i wanna have 2 bars =&amp;gt; Purple Bar (Current day) Pink Bar (D-7)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;FYI : We used to have this on DCRUM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 09:51:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/User-session-query/m-p/126504#M1450</guid>
      <dc:creator>service_apms</dc:creator>
      <dc:date>2022-08-31T09:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: User session query</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/User-session-query/m-p/126505#M1451</link>
      <description>&lt;P&gt;I think you should use only grouping by month and add extra time filter to tile for -7 days. for the one that has to be comparision. Copy this tile without extra filters and you will have two bars. &lt;/P&gt;&lt;P&gt;Sebastian &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jan 2020 11:15:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/User-session-query/m-p/126505#M1451</guid>
      <dc:creator>skrystosik</dc:creator>
      <dc:date>2020-01-08T11:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: User session query</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/User-session-query/m-p/126506#M1452</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This should be done using the "Datetime" function with the "E" parameter (which is for day of the week), and an interval of "1d" (for 1 day). Try using this with a timeframe of "Last 7 Days" while comparing to the timeframe 7 days ago:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;SELECT DATETIME(starttime, "E", "1d"), AVG(duration)&amp;nbsp;&lt;BR /&gt;FROM useraction&amp;nbsp;&lt;BR /&gt;WHERE name is "reprise de devis"&lt;BR /&gt;GROUP BY DATETIME(starttime, "E", "1d")&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It should look something like this:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23102-1578495622398.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Jonathan&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jan 2020 15:02:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/User-session-query/m-p/126506#M1452</guid>
      <dc:creator>jonathan_schull</dc:creator>
      <dc:date>2020-01-08T15:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: User session query</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/User-session-query/m-p/126507#M1453</link>
      <description>&lt;P&gt;Thank you all for your answers&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Jan 2020 09:04:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/User-session-query/m-p/126507#M1453</guid>
      <dc:creator>service_apms</dc:creator>
      <dc:date>2020-01-09T09:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: User session query</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/User-session-query/m-p/126508#M1454</link>
      <description>&lt;P&gt;Is there a way to order the result&lt;BR /&gt;i got the results i wanted but not in the right order Monday then thursday ...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23114-1578562533430.png" /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Jan 2020 09:35:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/User-session-query/m-p/126508#M1454</guid>
      <dc:creator>service_apms</dc:creator>
      <dc:date>2020-01-09T09:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: User session query</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/User-session-query/m-p/126509#M1455</link>
      <description>&lt;P&gt;Unfortunately using the "E" input sorts the days alphabetically. There are a few things we can do to get closer to the display that you are looking for, but unfortunately it is not possible to sort days by days of the week on a rolling scale that considers what day it currently is. This would be a good thing to put in an RFE, to possibly put into Dynatrace at a later date.&lt;/P&gt;&lt;P&gt;I can think of 2 workarounds for this.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Instead of using "DATETIME(starttime, "E", "1d") " use "DATETIME(starttime, "e", "1d") ". This will display the days of the week as numbers as opposed to the spelled out day of the week. Meaning when sorted it will always display  the days in order Sunday-Saturday. This may be a bit confusing when the current day is in the middle of the week, and being displayed in the middle of the chart.&lt;/LI&gt;&lt;LI&gt;You could also change the query to include MIN(starttime) like below:&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;SELECT DATETIME(starttime, "E", "1d"), AVG(duration), MIN(starttime)&lt;BR /&gt;FROM useraction&amp;nbsp;&lt;BR /&gt;WHERE name&amp;nbsp;is&amp;nbsp;"reprise de devis"&lt;BR /&gt;GROUP BY DATETIME(starttime, "E", "1d")&lt;BR /&gt;ORDER BY MIN(starttime)&lt;/PRE&gt;&lt;P style="margin-left:20px"&gt;If you use this, the results will be displayed sorted by week day, and on a rolling scale that considers the current day. The drawback of using this method, is that it will add in 2 bars to the chart for each day, displaying "MIN(starttime)"&lt;/P&gt;&lt;P style="margin-left:20px"&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jan 2020 16:17:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/User-session-query/m-p/126509#M1455</guid>
      <dc:creator>jonathan_schull</dc:creator>
      <dc:date>2020-01-14T16:17:47Z</dc:date>
    </item>
  </channel>
</rss>

