<?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: How can I query the number of unique users over a time period in Dashboarding</title>
    <link>https://community.dynatrace.com/t5/Dashboarding/How-can-I-query-the-number-of-unique-users-over-a-time-period/m-p/114371#M750</link>
    <description>&lt;P&gt;Hi Barry,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Yes, sadly this is not supported yet. The only way to get this is by removing the dateTime function and just use the startTime, but then you will not get them bucketed by day.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;SELECT starttime, COUNT(Distinct(internalUserId)) FROM usersession where userType = 'REAL_USER' and internalUserId IS NOT NULL and useraction.application = 'My App Name' GROUP BY starttime LIMIT 5000&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jul 2020 10:09:54 GMT</pubDate>
    <dc:creator>christian_gusta</dc:creator>
    <dc:date>2020-07-07T10:09:54Z</dc:date>
    <item>
      <title>How can I query the number of unique users over a time period</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/How-can-I-query-the-number-of-unique-users-over-a-time-period/m-p/114369#M748</link>
      <description>&lt;P&gt;Id like to create a query that will show me the number of &lt;STRONG&gt;unique&lt;/STRONG&gt; users per day.&lt;/P&gt;&lt;P&gt;I would like this data displayed in a line chart&lt;/P&gt;&lt;P&gt;The query that I tried is as follows &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;SELECT DATETIME(starttime, 'MM-dd') , COUNT(Distinct(internalUserId)) FROM usersession where userType = 'REAL_USER' and internalUserId IS NOT NULL and useraction.application = 'My App Name' &amp;nbsp; GROUP BY DATETIME(starttime, 'MM-dd') &amp;nbsp;ORDER BY DATETIME(starttime, 'MM-dd') LIMIT 5000&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The issue I have is that when trying this I get an error stating: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Using distinct counts within date/time aggregations is not yet supported!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;My query works correctly if I remove the DISTINCT selector but the count value seems unrealistically high. This is probably because a single user id can occur in multiple sessions.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;How can I get a result from dynatrace that will allow me to plot the number of unique users over a linear time period?  &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 13:54:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/How-can-I-query-the-number-of-unique-users-over-a-time-period/m-p/114369#M748</guid>
      <dc:creator>barry_duggan</dc:creator>
      <dc:date>2020-07-03T13:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I query the number of unique users over a time period</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/How-can-I-query-the-number-of-unique-users-over-a-time-period/m-p/114370#M749</link>
      <description>&lt;P&gt;Hi Barry,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;My first thought would be to user the UserID rather than the internaluserID, as that seems to provide me with more reasonable results.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;SELECT DATETIME(starttime, 'MM-dd') , COUNT(userID) FROM usersession where userType = 'REAL_USER' and internalUserId IS NOT NULL and useraction.application = My app GROUP BY DATETIME(starttime, 'MM-dd') ORDER BY DATETIME(starttime, 'MM-dd') LIMIT 5000&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael Oxendine&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 17:38:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/How-can-I-query-the-number-of-unique-users-over-a-time-period/m-p/114370#M749</guid>
      <dc:creator>michael_oxendin</dc:creator>
      <dc:date>2020-07-06T17:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I query the number of unique users over a time period</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/How-can-I-query-the-number-of-unique-users-over-a-time-period/m-p/114371#M750</link>
      <description>&lt;P&gt;Hi Barry,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Yes, sadly this is not supported yet. The only way to get this is by removing the dateTime function and just use the startTime, but then you will not get them bucketed by day.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;SELECT starttime, COUNT(Distinct(internalUserId)) FROM usersession where userType = 'REAL_USER' and internalUserId IS NOT NULL and useraction.application = 'My App Name' GROUP BY starttime LIMIT 5000&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 10:09:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/How-can-I-query-the-number-of-unique-users-over-a-time-period/m-p/114371#M750</guid>
      <dc:creator>christian_gusta</dc:creator>
      <dc:date>2020-07-07T10:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I query the number of unique users over a time period</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/How-can-I-query-the-number-of-unique-users-over-a-time-period/m-p/114372#M751</link>
      <description>&lt;P&gt;If we Omit Distinct and just use IS NOT NULL will there be duplicate counts for internalUserID ?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 11:13:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/How-can-I-query-the-number-of-unique-users-over-a-time-period/m-p/114372#M751</guid>
      <dc:creator>barry_duggan</dc:creator>
      <dc:date>2020-07-07T11:13:54Z</dc:date>
    </item>
  </channel>
</rss>

