<?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: USQL for getting numbers of users by country in Real User Monitoring</title>
    <link>https://community.dynatrace.com/t5/Real-User-Monitoring/USQL-for-getting-numbers-of-users-by-country/m-p/252788#M6152</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/41008"&gt;@soportetr&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Let me quote the answer of one of our specialists:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG data-stringify-type="bold"&gt;userId&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;- for tagged users&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG data-stringify-type="bold"&gt;internalUserId&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;- for anonymous users&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG data-stringify-type="bold"&gt;COUNT&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;- general amount of values&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG data-stringify-type="bold"&gt;COUNT(DISTINCT)&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;- amount of unique values. And its result can be approzimate and fuzzy. It is in our USQL documentation&amp;nbsp;&lt;/SPAN&gt;&lt;A class="c-link" href="https://docs.dynatrace.com/docs/platform-modules/digital-experience/session-segmentation/custom-queries-segmentation-and-aggregation-of-session-data#:~:text=Example-,Results%20returned,-by%20the%20COUNT" target="_blank" rel="noopener noreferrer" data-stringify-link="https://docs.dynatrace.com/docs/platform-modules/digital-experience/session-segmentation/custom-queries-segmentation-and-aggregation-of-session-data#:~:text=Example-,Results%20returned,-by%20the%20COUNT" data-sk="tooltip_parent"&gt;link&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;If extrapolation took place - the results will be very approximate and will be big chance that they will not match.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. Per country:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;SELECT country, COUNT(DISTINCT userId) FROM usersession GROUP BY country&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. Per month:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;SELECT MONTH(startTime), COUNT(DISTINCT userId) FROM usersession GROUP BY MONTH(startTime)&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if it helps!&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2024 11:56:55 GMT</pubDate>
    <dc:creator>GosiaMurawska</dc:creator>
    <dc:date>2024-08-07T11:56:55Z</dc:date>
    <item>
      <title>USQL for getting numbers of users by country</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/USQL-for-getting-numbers-of-users-by-country/m-p/247571#M6046</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I have been trying a query to get the amount of users connected per month and also get the users connected per country but the numbers do not match.&lt;/P&gt;
&lt;P&gt;What would be the most optimal USQL for those queries?&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 06:54:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/USQL-for-getting-numbers-of-users-by-country/m-p/247571#M6046</guid>
      <dc:creator>soportetr</dc:creator>
      <dc:date>2024-06-07T06:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: USQL for getting numbers of users by country</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/USQL-for-getting-numbers-of-users-by-country/m-p/252788#M6152</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/41008"&gt;@soportetr&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Let me quote the answer of one of our specialists:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG data-stringify-type="bold"&gt;userId&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;- for tagged users&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG data-stringify-type="bold"&gt;internalUserId&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;- for anonymous users&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG data-stringify-type="bold"&gt;COUNT&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;- general amount of values&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG data-stringify-type="bold"&gt;COUNT(DISTINCT)&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;- amount of unique values. And its result can be approzimate and fuzzy. It is in our USQL documentation&amp;nbsp;&lt;/SPAN&gt;&lt;A class="c-link" href="https://docs.dynatrace.com/docs/platform-modules/digital-experience/session-segmentation/custom-queries-segmentation-and-aggregation-of-session-data#:~:text=Example-,Results%20returned,-by%20the%20COUNT" target="_blank" rel="noopener noreferrer" data-stringify-link="https://docs.dynatrace.com/docs/platform-modules/digital-experience/session-segmentation/custom-queries-segmentation-and-aggregation-of-session-data#:~:text=Example-,Results%20returned,-by%20the%20COUNT" data-sk="tooltip_parent"&gt;link&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;If extrapolation took place - the results will be very approximate and will be big chance that they will not match.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. Per country:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;SELECT country, COUNT(DISTINCT userId) FROM usersession GROUP BY country&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. Per month:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;SELECT MONTH(startTime), COUNT(DISTINCT userId) FROM usersession GROUP BY MONTH(startTime)&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if it helps!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 11:56:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/USQL-for-getting-numbers-of-users-by-country/m-p/252788#M6152</guid>
      <dc:creator>GosiaMurawska</dc:creator>
      <dc:date>2024-08-07T11:56:55Z</dc:date>
    </item>
  </channel>
</rss>

