<?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 Fix DQL makeTimeseries Error: Parameter Must Be an Expression in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Fix-DQL-makeTimeseries-Error-Parameter-Must-Be-an-Expression/m-p/289195#M2740</link>
    <description>&lt;P&gt;&lt;EM&gt;SPL:&lt;BR /&gt;|chart values(Total) as Total by date_hour,TimeDiffFinal&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;DQL&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;| makeTimeseries Total=collectDistinct(Total), by:{date_hour, TimeDiffFinal}, time:LatestTime&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;So, basically i have converted values into collectDistinct in dynatrace.&lt;BR /&gt;&lt;BR /&gt;Getting ERROR -&lt;SPAN&gt;The parameter has to be an expression-based timeseries aggregation.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Dec 2025 12:40:14 GMT</pubDate>
    <dc:creator>anujjain504</dc:creator>
    <dc:date>2025-12-17T12:40:14Z</dc:date>
    <item>
      <title>Fix DQL makeTimeseries Error: Parameter Must Be an Expression</title>
      <link>https://community.dynatrace.com/t5/DQL/Fix-DQL-makeTimeseries-Error-Parameter-Must-Be-an-Expression/m-p/289195#M2740</link>
      <description>&lt;P&gt;&lt;EM&gt;SPL:&lt;BR /&gt;|chart values(Total) as Total by date_hour,TimeDiffFinal&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;DQL&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;| makeTimeseries Total=collectDistinct(Total), by:{date_hour, TimeDiffFinal}, time:LatestTime&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;So, basically i have converted values into collectDistinct in dynatrace.&lt;BR /&gt;&lt;BR /&gt;Getting ERROR -&lt;SPAN&gt;The parameter has to be an expression-based timeseries aggregation.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 12:40:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fix-DQL-makeTimeseries-Error-Parameter-Must-Be-an-Expression/m-p/289195#M2740</guid>
      <dc:creator>anujjain504</dc:creator>
      <dc:date>2025-12-17T12:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR - makeTimeseries - "The parameter has to be an expression-based timeseries aggregation." - collectDistinct()</title>
      <link>https://community.dynatrace.com/t5/DQL/Fix-DQL-makeTimeseries-Error-Parameter-Must-Be-an-Expression/m-p/289232#M2744</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I think, that the error happens because makeTimeseries requires a numeric aggregation (e.g., countDistinct, sum, avg, last), while collectDistinct() returns a list, which can’t form a timeseries.&lt;BR /&gt;&lt;BR /&gt;You can try with this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch logs, scanLimitGBytes: -1
| summarize Total_list = collectDistinct(Total),
  by: { date_hour = bin(timestamp, 1h), TimeDiffFinal }
| sort date_hour asc, TimeDiffFinal asc&lt;/LI-CODE&gt;&lt;P&gt;You should recive table and list of values&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 14:34:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fix-DQL-makeTimeseries-Error-Parameter-Must-Be-an-Expression/m-p/289232#M2744</guid>
      <dc:creator>t_pawlak</dc:creator>
      <dc:date>2025-11-07T14:34:13Z</dc:date>
    </item>
  </channel>
</rss>

