<?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: Aggregate Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1633010#M446594</link>
    <description>&lt;P&gt;yes i can&lt;/P&gt;</description>
    <pubDate>Wed, 09 Oct 2019 12:38:59 GMT</pubDate>
    <dc:creator>qlikviewaf</dc:creator>
    <dc:date>2019-10-09T12:38:59Z</dc:date>
    <item>
      <title>Aggregate Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1632884#M446581</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;i have the following data structure.&lt;/P&gt;&lt;P&gt;I would like to create new dimension that works in the following way:&lt;/P&gt;&lt;P&gt;If at "&lt;STRONG&gt;order number&lt;/STRONG&gt;" level there's one &lt;STRONG&gt;item number&amp;nbsp;&lt;/STRONG&gt;that starts with PPT170* then the new dimesion needs to be 'PPT Item' otherwise use "CustomDescription".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i used this formula but is not working:&lt;/P&gt;&lt;P&gt;=Aggr(If(Match(ItemNumber,'PPT170*'),'PPT Item',CustomDescription),Order_Number)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any idea?&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="forum.PNG" style="width: 494px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20960i44D109E4BE2CDEA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="forum.PNG" alt="forum.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 08:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1632884#M446581</guid>
      <dc:creator>qlikviewaf</dc:creator>
      <dc:date>2019-10-09T08:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1632894#M446583</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;try with&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Aggr(If(Match(&lt;STRONG&gt;Left(ItemNumber,6),&lt;/STRONG&gt;'PPT170'),'PPT Item',CustomDescription),OrderNumber,ItemNumber)&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 08:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1632894#M446583</guid>
      <dc:creator>StarinieriG</dc:creator>
      <dc:date>2019-10-09T08:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1632895#M446584</link>
      <description>&lt;P&gt;so if I understand you correct, this new dimension will be at order level right?&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if(Aggr(count(If(wildmatch(ItemNumber,'PPT170*'),CustomDescription)),Order_Number)&amp;gt;0,'PPT Item',&lt;SPAN&gt;CustomDescription&lt;/SPAN&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 09:01:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1632895#M446584</guid>
      <dc:creator>asinha1991</dc:creator>
      <dc:date>2019-10-09T09:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1632914#M446585</link>
      <description>&lt;P&gt;With this formula, only the item PPT17014 is set as "PPT Item"; i would like to have all items belonging to the same order number having PPT Item.&lt;/P&gt;&lt;P&gt;I explained my self?&lt;BR /&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forum 2.PNG" style="width: 505px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20971i7A74A44D4E16C4E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="forum 2.PNG" alt="forum 2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 09:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1632914#M446585</guid>
      <dc:creator>qlikviewaf</dc:creator>
      <dc:date>2019-10-09T09:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1632921#M446586</link>
      <description>&lt;P&gt;With this formula, only the item PPT17014 is set as "PPT Item"; i would like to have all items belonging to the same order number having PPT Item.&lt;/P&gt;&lt;P&gt;I explained my self?&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 09:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1632921#M446586</guid>
      <dc:creator>qlikviewaf</dc:creator>
      <dc:date>2019-10-09T09:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1632942#M446588</link>
      <description>&lt;P&gt;did you try what I suggested?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this should work at order level&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 10:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1632942#M446588</guid>
      <dc:creator>asinha1991</dc:creator>
      <dc:date>2019-10-09T10:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1632944#M446589</link>
      <description>&lt;P&gt;yes, i tried, exactly same results..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 10:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1632944#M446589</guid>
      <dc:creator>qlikviewaf</dc:creator>
      <dc:date>2019-10-09T10:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1632994#M446593</link>
      <description>&lt;P&gt;Could you create a new dimension inside script?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 12:04:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1632994#M446593</guid>
      <dc:creator>StarinieriG</dc:creator>
      <dc:date>2019-10-09T12:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1633010#M446594</link>
      <description>&lt;P&gt;yes i can&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 12:38:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1633010#M446594</guid>
      <dc:creator>qlikviewaf</dc:creator>
      <dc:date>2019-10-09T12:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1633013#M446596</link>
      <description>&lt;P&gt;maybe this&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=if(Aggr(alt(count(Total If(wildmatch(ItemNumber,'PPT170*'),CustomDescription)),0),Order_Number)&amp;gt;0,'PPT Item',&lt;/SPAN&gt;&lt;SPAN&gt;CustomDescription)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 12:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1633013#M446596</guid>
      <dc:creator>asinha1991</dc:creator>
      <dc:date>2019-10-09T12:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1633063#M446606</link>
      <description>&lt;P&gt;Then maybe this could work:&lt;/P&gt;&lt;P&gt;TAB:&lt;/P&gt;&lt;P&gt;LOAD * From YourTable;&lt;/P&gt;&lt;P&gt;Left Join (TAB)&lt;BR /&gt;LOAD&lt;BR /&gt;OrderNumber,&lt;BR /&gt;Concat(distinct If(Left(ItemNumber,6)='PPT170',ItemNumber),',') AS NewField_temp&lt;BR /&gt;Resident TAB&lt;BR /&gt;Group By&lt;BR /&gt;OrderNumber&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;NEW:&lt;BR /&gt;LOAD *,&lt;BR /&gt;If(Len(NewField_temp)&amp;gt;0,'PPT Item',CustomDescription) as NewField&lt;BR /&gt;Resident TAB;&lt;/P&gt;&lt;P&gt;DROP Table TAB;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 13:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Function/m-p/1633063#M446606</guid>
      <dc:creator>StarinieriG</dc:creator>
      <dc:date>2019-10-09T13:40:57Z</dc:date>
    </item>
  </channel>
</rss>

