<?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: Rolling operations in SAS ESP using aggregate and compute windows in Streaming Analytics</title>
    <link>https://communities.sas.com/t5/Streaming-Analytics/Rolling-operations-in-SAS-ESP-using-aggregate-and-compute/m-p/503675#M104</link>
    <description>Yeah, I was stupid. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Fri, 12 Oct 2018 10:42:53 GMT</pubDate>
    <dc:creator>jovic92</dc:creator>
    <dc:date>2018-10-12T10:42:53Z</dc:date>
    <item>
      <title>Rolling operations in SAS ESP using aggregate and compute windows</title>
      <link>https://communities.sas.com/t5/Streaming-Analytics/Rolling-operations-in-SAS-ESP-using-aggregate-and-compute/m-p/502841#M100</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some logical problem. I need to implement next logic in my flow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sample source:&lt;/P&gt;&lt;P&gt;deviceName&amp;nbsp; &amp;nbsp; deviceType&amp;nbsp; &amp;nbsp; time&amp;nbsp; &amp;nbsp; &amp;nbsp;telemetry_counterTotal&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; A1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;X&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9PM&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10800&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; A1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;X&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10PM&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10600&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; A1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;X&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11PM&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula for desired columns (let's call it here computedColumn) is (telemetry_counterTotal / 100.00 ) + LAG(computedColumn, 1*)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*This is computedColumn from the previous iteration, but if it's the first iteration, of course, it's zero.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Desired output:&lt;/P&gt;&lt;P&gt;deviceName&amp;nbsp; &amp;nbsp; deviceType&amp;nbsp; &amp;nbsp; time&amp;nbsp; &amp;nbsp; &amp;nbsp;telemetry_counterTotal&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; computedColumn&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; A1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;X&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11PM&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10800&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;329.00&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; A1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;X&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10PM&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10600&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;221.00&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; A1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;X&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9PM&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11500&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;115.00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my code sample, I don't have big experience&amp;nbsp;with DS2 so I tried to go around, but not sure if it even possible do this only with aggregate and compute windows, but I think this can't be so big problem. Any hint, suggestion and especially, code sample would be really helpful. Also, any kind of documentation or examples with similar problems I would appreciate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;project name="project_test_f" threads="1" heartbeat-interval="1" pubsub="auto"&amp;gt;
  &amp;lt;metadata&amp;gt;
    &amp;lt;meta id="layout"&amp;gt;{"cq":{"Aggregate1":{"x":-185,"y":300},"Compute1":{"x":-160,"y":170},"Compute2":{"x":-185,"y":435},"Copy1":{"x":-150,"y":35},"sigfox_source":{"x":-180,"y":-100}}}&amp;lt;/meta&amp;gt;
    &amp;lt;meta id="studioModifiedBy"&amp;gt;sasboot&amp;lt;/meta&amp;gt;
    &amp;lt;meta id="studioModified"&amp;gt;1539092809002&amp;lt;/meta&amp;gt;
    &amp;lt;meta id="studioUploadedBy"&amp;gt;sasboot&amp;lt;/meta&amp;gt;
    &amp;lt;meta id="studioUploaded"&amp;gt;1538120251741&amp;lt;/meta&amp;gt;
  &amp;lt;/metadata&amp;gt;
  &amp;lt;mas-modules&amp;gt;
    &amp;lt;mas-module module="New_Module_1" language="ds2" func-names="get_calc_total"&amp;gt;
      &amp;lt;code&amp;gt;&amp;lt;![CDATA[data esp.out ;
   declare counterTotal2 ;
   retain counterTotal_last counterTotal_lag;
   method run() ;
      set esp.in ;
      if isnull(counterTotal_lag) then counterTotal2 =counterTotal_last/100 ;
   end ;
enddata ;]]&amp;gt;&amp;lt;/code&amp;gt;
    &amp;lt;/mas-module&amp;gt;
  &amp;lt;/mas-modules&amp;gt;
  &amp;lt;contqueries&amp;gt;
    &amp;lt;contquery name="cq"&amp;gt;
      &amp;lt;windows&amp;gt;
        &amp;lt;window-source pubsub="true" index="pi_EMPTY" output-insert-only="true" name="sigfox_source"&amp;gt;
          &amp;lt;schema&amp;gt;
            &amp;lt;fields&amp;gt;
              &amp;lt;field name="attributes_avgSnr" type="string"/&amp;gt;
              &amp;lt;field name="attributes_integrationName" type="string"/&amp;gt;
              &amp;lt;field name="attributes_isDeviceMounted" type="int32"/&amp;gt;
              &amp;lt;field name="attributes_latAntenna" type="string"/&amp;gt;
              &amp;lt;field name="attributes_lngAntenna" type="string"/&amp;gt;
              &amp;lt;field name="attributes_messageType" type="string"/&amp;gt;
              &amp;lt;field name="attributes_rssi" type="string"/&amp;gt;
              &amp;lt;field name="attributes_sampleTime" type="stamp"/&amp;gt;
              &amp;lt;field name="attributes_snr" type="string"/&amp;gt;
              &amp;lt;field name="attributes_station" type="string"/&amp;gt;
              &amp;lt;field name="deviceName" type="string" key="true"/&amp;gt;
              &amp;lt;field name="deviceType" type="string" key="true"/&amp;gt;
              &amp;lt;field name="telemetry_battIntStat" type="string"/&amp;gt;
              &amp;lt;field name="telemetry_batteryReading" type="int32"/&amp;gt;
              &amp;lt;field name="telemetry_counterTotal" type="int32"/&amp;gt;
              &amp;lt;field name="telemetry_pulses12hFrame" type="int32"/&amp;gt;
              &amp;lt;field name="telemetry_pulses24h12hFrame" type="int32"/&amp;gt;
              &amp;lt;field name="telemetry_pulses36h24hFrame" type="int32"/&amp;gt;
            &amp;lt;/fields&amp;gt;
          &amp;lt;/schema&amp;gt;
        &amp;lt;/window-source&amp;gt;
        &amp;lt;window-copy pubsub="true" output-insert-only="true" index="pi_EMPTY" name="Copy1"/&amp;gt;
        &amp;lt;window-compute pubsub="true" index="pi_EMPTY" collapse-updates="false" name="Compute1"&amp;gt;
          &amp;lt;schema&amp;gt;
            &amp;lt;fields&amp;gt;
              &amp;lt;field name="attributes_avgSnr" type="string"/&amp;gt;
              &amp;lt;field name="attributes_integrationName" type="string"/&amp;gt;
              &amp;lt;field name="attributes_isDeviceMounted" type="int32"/&amp;gt;
              &amp;lt;field name="attributes_latAntenna" type="string"/&amp;gt;
              &amp;lt;field name="attributes_lngAntenna" type="string"/&amp;gt;
              &amp;lt;field name="attributes_messageType" type="string"/&amp;gt;
              &amp;lt;field name="attributes_rssi" type="string"/&amp;gt;
              &amp;lt;field name="attributes_sampleTime" type="stamp"/&amp;gt;
              &amp;lt;field name="attributes_snr" type="string"/&amp;gt;
              &amp;lt;field name="attributes_station" type="string"/&amp;gt;
              &amp;lt;field name="deviceName" type="string" key="true"/&amp;gt;
              &amp;lt;field name="deviceType" type="string" key="true"/&amp;gt;
              &amp;lt;field name="telemetry_battIntStat" type="string"/&amp;gt;
              &amp;lt;field name="telemetry_batteryReading" type="int32"/&amp;gt;
              &amp;lt;field name="telemetry_counterTotal" type="int32"/&amp;gt;
              &amp;lt;field name="telemetry_pulses12hFrame" type="int32"/&amp;gt;
              &amp;lt;field name="telemetry_pulses24h12hFrame" type="int32"/&amp;gt;
              &amp;lt;field name="telemetry_pulses36h24hFrame" type="int32"/&amp;gt;
              &amp;lt;field name="computedColumn" type="int32"/&amp;gt;
            &amp;lt;/fields&amp;gt;
          &amp;lt;/schema&amp;gt;
          &amp;lt;output&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[attributes_avgSnr]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[attributes_integrationName]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[attributes_isDeviceMounted]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[attributes_latAntenna]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[attributes_lngAntenna]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[attributes_messageType]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[attributes_rssi]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[attributes_sampleTime]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[attributes_snr]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[attributes_station]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[telemetry_battIntStat]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[telemetry_batteryReading]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[telemetry_counterTotal]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[telemetry_pulses12hFrame]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[telemetry_pulses24h12hFrame]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[telemetry_pulses36h24hFrame]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[0]]&amp;gt;&amp;lt;/field-expr&amp;gt;
          &amp;lt;/output&amp;gt;
        &amp;lt;/window-compute&amp;gt;
        &amp;lt;window-aggregate pubsub="true" index="pi_EMPTY" collapse-updates="false" name="Aggregate1"&amp;gt;
          &amp;lt;schema&amp;gt;
            &amp;lt;fields&amp;gt;
              &amp;lt;field name="attributes_avgSnr" type="string"/&amp;gt;
              &amp;lt;field name="attributes_integrationName" type="string"/&amp;gt;
              &amp;lt;field name="attributes_isDeviceMounted" type="int32"/&amp;gt;
              &amp;lt;field name="attributes_latAntenna" type="string"/&amp;gt;
              &amp;lt;field name="attributes_lngAntenna" type="string"/&amp;gt;
              &amp;lt;field name="attributes_messageType" type="string"/&amp;gt;
              &amp;lt;field name="attributes_rssi" type="string"/&amp;gt;
              &amp;lt;field name="attributes_sampleTime" type="stamp"/&amp;gt;
              &amp;lt;field name="attributes_snr" type="string"/&amp;gt;
              &amp;lt;field name="attributes_station" type="string"/&amp;gt;
              &amp;lt;field name="deviceName" type="string" key="true"/&amp;gt;
              &amp;lt;field name="deviceType" type="string" key="true"/&amp;gt;
              &amp;lt;field name="telemetry_battIntStat" type="string"/&amp;gt;
              &amp;lt;field name="telemetry_batteryReading" type="int32"/&amp;gt;
              &amp;lt;field name="telemetry_counterTotal" type="int32"/&amp;gt;
              &amp;lt;field name="telemetry_pulses12hFrame" type="int32"/&amp;gt;
              &amp;lt;field name="telemetry_pulses24h12hFrame" type="int32"/&amp;gt;
              &amp;lt;field name="telemetry_pulses36h24hFrame" type="int32"/&amp;gt;
              &amp;lt;field name="computedColumn" type="int32"/&amp;gt;
            &amp;lt;/fields&amp;gt;
          &amp;lt;/schema&amp;gt;
          &amp;lt;output&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[ESP_aLast(attributes_avgSnr)]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[ESP_aLast(attributes_integrationName)]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[ESP_aLast(attributes_isDeviceMounted)]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[ESP_aLast(attributes_latAntenna)]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[ESP_aLast(attributes_lngAntenna)]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[ESP_aLast(attributes_messageType)]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[ESP_aLast(attributes_rssi)]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[ESP_aLast(attributes_sampleTime)]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[ESP_aLast(attributes_snr)]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[ESP_aLast(attributes_station)]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[ESP_aLast(telemetry_battIntStat)]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[ESP_aLast(telemetry_batteryReading)]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[ESP_aLast(telemetry_counterTotal)]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[ESP_aLast(telemetry_pulses12hFrame)]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[ESP_aLast(telemetry_pulses24h12hFrame)]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[ESP_aLast(telemetry_pulses36h24hFrame)]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[ESP_aLag(computedColumn, 1)]]&amp;gt;&amp;lt;/field-expr&amp;gt;
          &amp;lt;/output&amp;gt;
        &amp;lt;/window-aggregate&amp;gt;
        &amp;lt;window-compute pubsub="true" index="pi_EMPTY" collapse-updates="false" name="Compute2"&amp;gt;
          &amp;lt;schema&amp;gt;
            &amp;lt;fields&amp;gt;
              &amp;lt;field name="attributes_avgSnr" type="string"/&amp;gt;
              &amp;lt;field name="attributes_integrationName" type="string"/&amp;gt;
              &amp;lt;field name="attributes_isDeviceMounted" type="int32"/&amp;gt;
              &amp;lt;field name="attributes_latAntenna" type="string"/&amp;gt;
              &amp;lt;field name="attributes_lngAntenna" type="string"/&amp;gt;
              &amp;lt;field name="attributes_messageType" type="string"/&amp;gt;
              &amp;lt;field name="attributes_rssi" type="string"/&amp;gt;
              &amp;lt;field name="attributes_sampleTime" type="stamp"/&amp;gt;
              &amp;lt;field name="attributes_snr" type="string"/&amp;gt;
              &amp;lt;field name="attributes_station" type="string"/&amp;gt;
              &amp;lt;field name="deviceName" type="string" key="true"/&amp;gt;
              &amp;lt;field name="deviceType" type="string" key="true"/&amp;gt;
              &amp;lt;field name="telemetry_battIntStat" type="string"/&amp;gt;
              &amp;lt;field name="telemetry_batteryReading" type="int32"/&amp;gt;
              &amp;lt;field name="telemetry_counterTotal" type="int32"/&amp;gt;
              &amp;lt;field name="telemetry_pulses12hFrame" type="int32"/&amp;gt;
              &amp;lt;field name="telemetry_pulses24h12hFrame" type="int32"/&amp;gt;
              &amp;lt;field name="telemetry_pulses36h24hFrame" type="int32"/&amp;gt;
              &amp;lt;field name="computedColumn" type="int32"/&amp;gt;
            &amp;lt;/fields&amp;gt;
          &amp;lt;/schema&amp;gt;
          &amp;lt;output&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[attributes_avgSnr]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[attributes_integrationName]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[attributes_isDeviceMounted]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[attributes_latAntenna]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[attributes_lngAntenna]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[attributes_messageType]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[attributes_rssi]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[attributes_sampleTime]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[attributes_snr]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[attributes_station]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[telemetry_battIntStat]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[telemetry_batteryReading]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[telemetry_counterTotal]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[telemetry_pulses12hFrame]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[telemetry_pulses24h12hFrame]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[telemetry_pulses36h24hFrame]]&amp;gt;&amp;lt;/field-expr&amp;gt;
            &amp;lt;field-expr&amp;gt;&amp;lt;![CDATA[telemetry_counterTotal/100 + computedColumn]]&amp;gt;&amp;lt;/field-expr&amp;gt;
          &amp;lt;/output&amp;gt;
        &amp;lt;/window-compute&amp;gt;
      &amp;lt;/windows&amp;gt;
      &amp;lt;edges&amp;gt;
        &amp;lt;edge source="sigfox_source" target="Copy1"/&amp;gt;
        &amp;lt;edge source="Copy1" target="Compute1"/&amp;gt;
        &amp;lt;edge source="Compute1" target="Aggregate1"/&amp;gt;
        &amp;lt;edge source="Aggregate1" target="Compute2"/&amp;gt;
      &amp;lt;/edges&amp;gt;
    &amp;lt;/contquery&amp;gt;
  &amp;lt;/contqueries&amp;gt;
&amp;lt;/project&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there are any additional&amp;nbsp;questions, I'm here. I have trying&amp;nbsp;last three days to get this done but haven't luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 18:52:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Streaming-Analytics/Rolling-operations-in-SAS-ESP-using-aggregate-and-compute/m-p/502841#M100</guid>
      <dc:creator>jovic92</dc:creator>
      <dc:date>2018-10-09T18:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling operations in SAS ESP using aggregate and compute windows</title>
      <link>https://communities.sas.com/t5/Streaming-Analytics/Rolling-operations-in-SAS-ESP-using-aggregate-and-compute/m-p/502887#M101</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure I fully understand your problem, but why don't you simply use a compute first to do calculate a temporary field equal to&amp;nbsp;&lt;SPAN&gt;telemetry_counterTotal/100 then an&amp;nbsp;aggregate window to do a ESP_aSum() on this field?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Fred&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 20:27:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Streaming-Analytics/Rolling-operations-in-SAS-ESP-using-aggregate-and-compute/m-p/502887#M101</guid>
      <dc:creator>FredCombaneyre</dc:creator>
      <dc:date>2018-10-09T20:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling operations in SAS ESP using aggregate and compute windows</title>
      <link>https://communities.sas.com/t5/Streaming-Analytics/Rolling-operations-in-SAS-ESP-using-aggregate-and-compute/m-p/503675#M104</link>
      <description>Yeah, I was stupid. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 12 Oct 2018 10:42:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Streaming-Analytics/Rolling-operations-in-SAS-ESP-using-aggregate-and-compute/m-p/503675#M104</guid>
      <dc:creator>jovic92</dc:creator>
      <dc:date>2018-10-12T10:42:53Z</dc:date>
    </item>
  </channel>
</rss>

