<?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: Aggr Expression help. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-Expression-help/m-p/1361565#M831702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/2454"&gt;sunny&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA sample file and QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get the sum of SF on distinct Code instead of 1000 it should return 500.Is it doable ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jun 2017 13:49:47 GMT</pubDate>
    <dc:creator>apthansh</dc:creator>
    <dc:date>2017-06-13T13:49:47Z</dc:date>
    <item>
      <title>Aggr Expression help.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Expression-help/m-p/1361561#M831692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;I have the below exoression in bar chart and my dimension is year &amp;amp; Qtr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt; I need to get the sum on Distinct Code.How can I do that ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(sum(if([Type]='Direct Lease',SQF_Committed)) &amp;lt;=0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; sum(if([Type]='Direct Lease',SQF_Committed_Planned),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(if([Type]='Direct Lease',SQF_Committed))),CodeKey))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I tried the bwlow exoression,but it dosnt work.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Sum(Aggr(sum(if([Type]='Direct Lease',SQF_Committed)) &amp;lt;=0,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp; sum(if([Type]='Direct Lease',SQF_Committed_Planned),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(if([Type]='Direct Lease',SQF_Committed))),distinct CodeKey))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Expression-help/m-p/1361561#M831692</guid>
      <dc:creator>apthansh</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Expression help.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Expression-help/m-p/1361562#M831693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you trying to do, but are you missing an if statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Sum({&amp;lt;Type = {'Direct Lease'}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;SQF_Committed) &amp;lt;= 0,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Sum({&amp;lt;Type = {'Direct Lease'}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;SQF_Committed_Planned&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;),&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Sum({&amp;lt;Type = {'Direct Lease'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;SQF_Committed))&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;, CodeKey))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Sum(Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Sum({&amp;lt;Type = {'Direct Lease'}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;SQF_Committed) &amp;lt;= 0,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Sum({&amp;lt;Type = {'Direct Lease'}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;SQF_Committed_Planned&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;),&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Sum({&amp;lt;Type = {'Direct Lease'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;SQF_Committed))&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;, CodeKey, Year, Qtr))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 13:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Expression-help/m-p/1361562#M831693</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-13T13:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Expression help.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Expression-help/m-p/1361563#M831695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(Aggr(sum(if([Type]='Direct Lease',SQF_Committed)) &amp;lt;=0,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; sum(if([Type]='Direct Lease',SQF_Committed_Planned),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(if([Type]='Direct Lease',SQF_Committed))),CodeKey))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This expression works fine but when I have same CodeKey twice its double counting the SQF.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I want to get the sum of SQF on distinct CodeKey.Can I do that ?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;@sunnyt&amp;nbsp; &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 13:31:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Expression-help/m-p/1361563#M831695</guid>
      <dc:creator>apthansh</dc:creator>
      <dc:date>2017-06-13T13:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Expression help.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Expression-help/m-p/1361564#M831700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to show the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 13:33:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Expression-help/m-p/1361564#M831700</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-13T13:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Expression help.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Expression-help/m-p/1361565#M831702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/2454"&gt;sunny&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA sample file and QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get the sum of SF on distinct Code instead of 1000 it should return 500.Is it doable ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 13:49:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Expression-help/m-p/1361565#M831702</guid>
      <dc:creator>apthansh</dc:creator>
      <dc:date>2017-06-13T13:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Expression help.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Expression-help/m-p/1361566#M831704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;[Type] = {'Direct Lease'}&amp;gt;}Aggr (Avg({&amp;lt;[Type] = {'Direct Lease'}&amp;gt;} SF), Code))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;=Sum(Aggr (Avg({&amp;lt;[Type] = {'Direct Lease'}&amp;gt;} SF), Code))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 14:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Expression-help/m-p/1361566#M831704</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-13T14:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Expression help.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Expression-help/m-p/1361567#M831705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome.You are my saving grace &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 12:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Expression-help/m-p/1361567#M831705</guid>
      <dc:creator>apthansh</dc:creator>
      <dc:date>2017-06-15T12:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Expression help.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Expression-help/m-p/1361568#M831706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello there...&lt;/P&gt;&lt;P&gt;can I put Max on this expression to get the Maximun SF among all the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 18:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Expression-help/m-p/1361568#M831706</guid>
      <dc:creator>apthansh</dc:creator>
      <dc:date>2017-06-16T18:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Expression help.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Expression-help/m-p/1361569#M831707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe so... have you tried it isn't working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 19:00:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Expression-help/m-p/1361569#M831707</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-16T19:00:58Z</dc:date>
    </item>
  </channel>
</rss>

