<?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: Expression calculation aggregration in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-calculation-aggregration/m-p/1723231#M451911</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try adding &lt;EM&gt;total&amp;lt;OrderNumber1&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;change:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Avg(aggr(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;to:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;avg(total&amp;lt;OrderNumber1&amp;gt; aggr(&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jun 2020 19:22:33 GMT</pubDate>
    <dc:creator>fosuzuki</dc:creator>
    <dc:date>2020-06-29T19:22:33Z</dc:date>
    <item>
      <title>Expression calculation aggregration</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-calculation-aggregration/m-p/1723209#M451909</link>
      <description>&lt;P&gt; &lt;/P&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am trying to calculate lead time for each order. Each order has 2 events &lt;EM&gt;&lt;STRONG&gt;created assignment&lt;/STRONG&gt;&lt;/EM&gt; and &lt;EM&gt;&lt;STRONG&gt;finished assignment&lt;/STRONG&gt;&lt;/EM&gt;.The data is more in pivot form meaning &lt;EM&gt;&lt;STRONG&gt;created assignment&lt;/STRONG&gt;&lt;/EM&gt; has its own row and &lt;STRONG&gt;&lt;EM&gt;finished assignment&lt;/EM&gt;&lt;/STRONG&gt; has its own row. Data looks something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data1.png" style="width: 478px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36510iCAE7FD2C7CFD70BB/image-dimensions/478x97?v=v2" width="478" height="97" role="button" title="Data1.png" alt="Data1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Using this data, i am trying to calculate the following table: Lead time column is the only expression and all other columns are dimensions. The problem i am facing here is when i am trying to calculate lead time, I want lead time values to show up on &lt;STRONG&gt;&lt;EM&gt;finished&lt;/EM&gt; assignment&lt;/STRONG&gt; event and &lt;EM&gt;&lt;STRONG&gt;created assignment&lt;/STRONG&gt;&lt;/EM&gt; both.However, i get the lead time sometimes on &lt;STRONG&gt;&lt;EM&gt;created assignment&lt;/EM&gt;&lt;/STRONG&gt; and sometimes on &lt;EM&gt;&lt;STRONG&gt;finished assignment&lt;/STRONG&gt;&lt;/EM&gt; but not on both events.(Here is the sample table)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data.png" style="width: 732px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36509i5B8D3D5AE89DEF92/image-dimensions/732x88?v=v2" width="732" height="88" role="button" title="Data.png" alt="Data.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Calculation for Lead time is :&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;Floor(24*60*Interval(Avg(aggr(Rangemin(Frac(Only({&amp;lt;EventId={'FinishedAssignment'},PickUp_MHA={'WSQ2'},Delivery_MHA={'2*','1*'},WeekDay-={'Sat','Sun'},Hour={"&amp;gt;=6&amp;lt;=23"}&amp;gt;}Timestamp(EventTime_sub))),maketime(23))-&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;Rangemax(frac(Only({&amp;lt;EventId={'CreatedAssignment'},PickUp_MHA={'WSQ2'},Delivery_MHA={'2*','1*'}, WeekDay-={'Sat','Sun'},Hour={"&amp;gt;=6&amp;lt;=23"}&amp;gt;}Timestamp(EventTime_sub))),MakeTime(6))+&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;NetWorkDays(Only({&amp;lt;EventId={'CreatedAssignment'},PickUp_MHA={'WSQ2'},Delivery_MHA={'2*','1*'},WeekDay-={'Sat','Sun'}&amp;gt;}Timestamp(EventTime_sub)),&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;Only({&amp;lt;EventId={'FinishedAssignment'},PickUp_MHA={'WSQ2'},Delivery_MHA={'2*','1*'},WeekDay-={'Sat','Sun'}&amp;gt;}Timestamp(EventTime_sub))-1)*MakeTime(8),OrderNumber1)),'mm'))&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I would like my table to be like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data3.png" style="width: 708px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36511iF80C26DF33EEFC6D/image-dimensions/708x107?v=v2" width="708" height="107" role="button" title="Data3.png" alt="Data3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I do not understand what is causing this issue. Can anyone please help?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vidya Sagar&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:24:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-calculation-aggregration/m-p/1723209#M451909</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2024-11-16T00:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Expression calculation aggregration</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-calculation-aggregration/m-p/1723231#M451911</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try adding &lt;EM&gt;total&amp;lt;OrderNumber1&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;change:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Avg(aggr(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;to:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;avg(total&amp;lt;OrderNumber1&amp;gt; aggr(&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 19:22:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-calculation-aggregration/m-p/1723231#M451911</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2020-06-29T19:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Expression calculation aggregration</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-calculation-aggregration/m-p/1723566#M451921</link>
      <description>&lt;P&gt;Thank you..It worked&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 14:15:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-calculation-aggregration/m-p/1723566#M451921</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2020-06-30T14:15:25Z</dc:date>
    </item>
  </channel>
</rss>

