<?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 Concat in Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Concat-in-Set-Analysis/m-p/1438146#M34647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to cook something up for a client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;The idea:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The client has a couple of products, lets call them superproducts. On their orders, they list a total price per orderline, but each orderline contains a few products, some of which are these superproducts. But the [#Net Amount] for these sub order lines are listed as 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the client wanted a list of all the order numbers where a superproduct was part of the sub orderlines and with the [#Net Amount] per order.&lt;/P&gt;&lt;P&gt;So far so good, I got the list by using an If-test on the Document Number (=Order Number)&lt;/P&gt;&lt;P&gt;Then he wanted a graph which shows the [#Net Amount] per month in a fiscal year. So I had to turn my If-test into set analysis and this is what I came up with:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[%Document Number]={"=$(=Concat(Aggr(If(WildMatch(Concat(Product), '* Screenline 22C-U *')&amp;gt;0,[%Document Number],Null()),[%Document Number]),';'))"}&amp;gt;}[# Net Amount Part])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, If I use the&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Concat(Aggr(If(WildMatch(Concat(Product), '* Screenline 22C-U *')&amp;gt;0,[%Document Number],Null()),[%Document Number]),';') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;in a text box, it gives me a ; list, which for some reason doesn't work with set analysis?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any help regarding the formula or syntax is appreciated, thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #339966;"&gt;Edit: When selected one Document Number, the formula works, it's when I try multiple, it fails. Perhaps something wrong with how the numbers are listed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim Poismans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Aug 2017 13:52:34 GMT</pubDate>
    <dc:creator>timpoismans</dc:creator>
    <dc:date>2017-08-21T13:52:34Z</dc:date>
    <item>
      <title>Concat in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Concat-in-Set-Analysis/m-p/1438146#M34647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to cook something up for a client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;The idea:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The client has a couple of products, lets call them superproducts. On their orders, they list a total price per orderline, but each orderline contains a few products, some of which are these superproducts. But the [#Net Amount] for these sub order lines are listed as 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the client wanted a list of all the order numbers where a superproduct was part of the sub orderlines and with the [#Net Amount] per order.&lt;/P&gt;&lt;P&gt;So far so good, I got the list by using an If-test on the Document Number (=Order Number)&lt;/P&gt;&lt;P&gt;Then he wanted a graph which shows the [#Net Amount] per month in a fiscal year. So I had to turn my If-test into set analysis and this is what I came up with:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[%Document Number]={"=$(=Concat(Aggr(If(WildMatch(Concat(Product), '* Screenline 22C-U *')&amp;gt;0,[%Document Number],Null()),[%Document Number]),';'))"}&amp;gt;}[# Net Amount Part])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, If I use the&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Concat(Aggr(If(WildMatch(Concat(Product), '* Screenline 22C-U *')&amp;gt;0,[%Document Number],Null()),[%Document Number]),';') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;in a text box, it gives me a ; list, which for some reason doesn't work with set analysis?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any help regarding the formula or syntax is appreciated, thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #339966;"&gt;Edit: When selected one Document Number, the formula works, it's when I try multiple, it fails. Perhaps something wrong with how the numbers are listed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim Poismans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 13:52:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Concat-in-Set-Analysis/m-p/1438146#M34647</guid>
      <dc:creator>timpoismans</dc:creator>
      <dc:date>2017-08-21T13:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Concat in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Concat-in-Set-Analysis/m-p/1438147#M34648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try P() instead!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you post a sample app&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/68931"&gt;P() &amp;amp;amp; E() and where do you use them?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 14:00:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Concat-in-Set-Analysis/m-p/1438147#M34648</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-08-21T14:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Concat in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Concat-in-Set-Analysis/m-p/1438148#M34649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum({&amp;lt;[%Document Number]=P(1{Product='&lt;B&gt; 22SL Screenline 22C-U&amp;nbsp; (22 mm)'} [%Document Number])&amp;gt;}[# Net Amount Part])&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is what I came up with using P, but it gives me an error in expression. Not too familiar with the use of it though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cannot post a sample app, working on the client's hub so don't have access to it. But I do have an example image&lt;/P&gt;&lt;P&gt;&lt;IMG alt="OrderLine example.png" class="jive-image image-1" src="/legacyfs/online/174081_OrderLine example.png" style="height: 137px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The column 'Item' stands for the Orderline. Only the first product in the orderline has the [#Net Amount], the underlying products don't. But one of those products is a superproduct, so I need the [#Net Amount] of that Order, but I can't just select on it, as it shows 0.00 for that superproduct under [#Net Amount].&lt;/P&gt;&lt;P&gt;So the basic idea is that I need the [#Net Amount] of an order, if that order contains a superproduct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 14:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Concat-in-Set-Analysis/m-p/1438148#M34649</guid>
      <dc:creator>timpoismans</dc:creator>
      <dc:date>2017-08-21T14:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Concat in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Concat-in-Set-Analysis/m-p/1438149#M34650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;[%Document Number] = p({&amp;lt;Product = {'* Screenline 22C-U *'}&amp;gt;})&amp;gt;}[# Net Amount Part])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 16:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Concat-in-Set-Analysis/m-p/1438149#M34650</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-21T16:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Concat in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Concat-in-Set-Analysis/m-p/1438150#M34651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, Sunny. Solved the issue!&lt;/P&gt;&lt;P&gt;Could you explain me why&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[%Document Number]=P(&lt;STRONG style="text-decoration: underline;"&gt;1&lt;/STRONG&gt;{Product='&lt;B&gt; 22SL Screenline 22C-U&amp;nbsp; (22 mm)'} &lt;STRONG style="text-decoration: underline;"&gt;[%Document Number]&lt;/STRONG&gt;)&amp;gt;}[# Net Amount Part])&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the highlighted parts aren't needed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 08:14:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Concat-in-Set-Analysis/m-p/1438150#M34651</guid>
      <dc:creator>timpoismans</dc:creator>
      <dc:date>2017-08-22T08:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Concat in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Concat-in-Set-Analysis/m-p/1438151#M34652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean these&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;[%Document Number] = p({&lt;SPAN style="color: #ff0000;"&gt;1&lt;/SPAN&gt;&amp;lt;Product = {'* Screenline 22C-U *'}&amp;gt;} &lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[%Document Number]&lt;/STRONG&gt;)&amp;gt;}[# Net Amount Part])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field name within p() is optional, you can add it if you want. On the other hand 1 depends on your requirement where if you want to ignore selections in the inner set analysis, you can add it, else you don't need it. In the end it all depends on your requirement &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 11:08:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Concat-in-Set-Analysis/m-p/1438151#M34652</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-22T11:08:21Z</dc:date>
    </item>
  </channel>
</rss>

