<?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 Function usage in USQL query in WHERE statement in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Function-usage-in-USQL-query-in-WHERE-statement/m-p/163497#M16219</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If there a way to create USQL query with function (for example - AVG) in WHERE statement?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sample - a query that returns count of user actions where visually complete time more when average for this user action.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;select count(visuallyCompleteTime) FROM useraction where name="%something%" and visuallyCompleteTime &amp;gt; AVG(visuallyCompleteTime)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Tolik.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 May 2021 13:58:02 GMT</pubDate>
    <dc:creator>gofman_anatoly</dc:creator>
    <dc:date>2021-05-27T13:58:02Z</dc:date>
    <item>
      <title>Function usage in USQL query in WHERE statement</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Function-usage-in-USQL-query-in-WHERE-statement/m-p/163497#M16219</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If there a way to create USQL query with function (for example - AVG) in WHERE statement?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sample - a query that returns count of user actions where visually complete time more when average for this user action.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;select count(visuallyCompleteTime) FROM useraction where name="%something%" and visuallyCompleteTime &amp;gt; AVG(visuallyCompleteTime)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Tolik.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 13:58:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Function-usage-in-USQL-query-in-WHERE-statement/m-p/163497#M16219</guid>
      <dc:creator>gofman_anatoly</dc:creator>
      <dc:date>2021-05-27T13:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Function usage in USQL query in WHERE statement</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Function-usage-in-USQL-query-in-WHERE-statement/m-p/163527#M16226</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/12441"&gt;@gofman_anatoly&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you get a chance to look into the below documentation for the&amp;nbsp;Keywords and functions, also the limitation?&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/how-to-use-real-user-monitoring/cross-application-user-session-analytics/custom-queries-segmentation-and-aggregation-of-session-data/" target="_blank"&gt;https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/how-to-use-real-user-monitoring/cross-application-user-session-analytics/custom-queries-segmentation-and-aggregation-of-session-data/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Babar&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 08:45:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Function-usage-in-USQL-query-in-WHERE-statement/m-p/163527#M16226</guid>
      <dc:creator>Babar_Qayyum</dc:creator>
      <dc:date>2021-03-29T08:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Function usage in USQL query in WHERE statement</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Function-usage-in-USQL-query-in-WHERE-statement/m-p/163557#M16232</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;It is not possible to do this with a single USQL query, but it is possible to make this comparison manually between two USQL tiles, or automatically with two API requests.&lt;BR /&gt;I'd recommend either creating a dashboard tile with the Avg user action duration as a Single Value, and another with each user action w/visually complete time printed out in a table for comparison.&lt;BR /&gt;Or using the USQL API to run both queries outside of Dynatrace, extracting entries from one JSON response that exceeded the average found by the other request's response.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 15:26:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Function-usage-in-USQL-query-in-WHERE-statement/m-p/163557#M16232</guid>
      <dc:creator>trevor_masseng1</dc:creator>
      <dc:date>2021-03-29T15:26:23Z</dc:date>
    </item>
  </channel>
</rss>

