<?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 Question regarding the usage of aggr in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Question-regarding-the-usage-of-aggr/m-p/1403018#M32682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to calculate standard deviation divided by the avg value . I know the basic function but there is a problem.&lt;/P&gt;&lt;P&gt;I want to calculate the &lt;SPAN style="font-size: 13.3333px;"&gt;standard &lt;/SPAN&gt;deviation at product level considering the other filters ( Like Date,Customer , Supplier) .&lt;/P&gt;&lt;P&gt;In table my dimension is Week that is fine and working fine but It is summing the quantity across the products while calculating the &lt;SPAN style="font-size: 13.3333px;"&gt;standard &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;deviation. I want it to do the aggregation at product level while calculating the &lt;SPAN style="font-size: 13.3333px;"&gt;stdev/avg and the show the average. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Not sure how exactly we neef to write it&amp;nbsp; hence showing two different approaches in below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/stdev(&amp;nbsp; if((LeadTimeInWeeks &amp;gt;=AbsDeltaWeek), aggr(sum(DemandQty),&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;DeltaWeek&lt;/STRONG&gt;&lt;/SPAN&gt;),Null()))&lt;/P&gt;&lt;P&gt;/avg(if((LeadTimeInWeeks &amp;gt;=AbsDeltaWeek), &lt;SPAN style="font-size: 13.3333px;"&gt;aggr(sum(DemandQty),&lt;STRONG style="text-decoration: underline;"&gt;ProductName&lt;/STRONG&gt;)&lt;/SPAN&gt;,Null()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik documentation can add more example for &lt;SPAN style="font-size: 13.3333px;"&gt;aggr , I feel.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Nov 2017 08:49:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-30T08:49:50Z</dc:date>
    <item>
      <title>Question regarding the usage of aggr</title>
      <link>https://community.qlik.com/t5/App-Development/Question-regarding-the-usage-of-aggr/m-p/1403018#M32682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to calculate standard deviation divided by the avg value . I know the basic function but there is a problem.&lt;/P&gt;&lt;P&gt;I want to calculate the &lt;SPAN style="font-size: 13.3333px;"&gt;standard &lt;/SPAN&gt;deviation at product level considering the other filters ( Like Date,Customer , Supplier) .&lt;/P&gt;&lt;P&gt;In table my dimension is Week that is fine and working fine but It is summing the quantity across the products while calculating the &lt;SPAN style="font-size: 13.3333px;"&gt;standard &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;deviation. I want it to do the aggregation at product level while calculating the &lt;SPAN style="font-size: 13.3333px;"&gt;stdev/avg and the show the average. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Not sure how exactly we neef to write it&amp;nbsp; hence showing two different approaches in below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/stdev(&amp;nbsp; if((LeadTimeInWeeks &amp;gt;=AbsDeltaWeek), aggr(sum(DemandQty),&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;DeltaWeek&lt;/STRONG&gt;&lt;/SPAN&gt;),Null()))&lt;/P&gt;&lt;P&gt;/avg(if((LeadTimeInWeeks &amp;gt;=AbsDeltaWeek), &lt;SPAN style="font-size: 13.3333px;"&gt;aggr(sum(DemandQty),&lt;STRONG style="text-decoration: underline;"&gt;ProductName&lt;/STRONG&gt;)&lt;/SPAN&gt;,Null()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik documentation can add more example for &lt;SPAN style="font-size: 13.3333px;"&gt;aggr , I feel.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2017 08:49:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Question-regarding-the-usage-of-aggr/m-p/1403018#M32682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-30T08:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding the usage of aggr</title>
      <link>https://community.qlik.com/t5/App-Development/Question-regarding-the-usage-of-aggr/m-p/1403019#M32683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I resolved with the help of video found on youtbute. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Segoe UI',sans-serif;"&gt;&lt;A class="jive-link-external-small" href="https://www.youtube.com/watch?v=-YsJmdzMHbs" rel="nofollow" target="_blank"&gt;https://www.youtube.com/watch?v=-YsJmdzMHbs&lt;/A&gt;&lt;/SPAN&gt;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2017 08:04:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Question-regarding-the-usage-of-aggr/m-p/1403019#M32683</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-01T08:04:59Z</dc:date>
    </item>
  </channel>
</rss>

