<?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: how to solve this with Set Analysis and If statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-solve-this-with-Set-Analysis-and-If-statement/m-p/985133#M336122</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you are looking for&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;count({&amp;lt; ProductID={"=count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Status={CREATED} &amp;gt;} &lt;/SPAN&gt;DISTINCT TransactionID)=2"}&amp;gt;} Distinct&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ProductID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Aug 2015 18:27:47 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-08-24T18:27:47Z</dc:date>
    <item>
      <title>how to solve this with Set Analysis and If statement</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-solve-this-with-Set-Analysis-and-If-statement/m-p/985131#M336120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count those ProductIDs where status is created and distinct count of TransactionID =2. so in my below eg, I should get only XYZ002 with&lt;/P&gt;&lt;P&gt;TransID 10002 &amp;amp; 10003. I tried &lt;/P&gt;&lt;P&gt;count({&amp;lt;Status={CREATED}, ProductID={'=count(DISTINCT TransactionID)=2'}&amp;gt;}Distinct &lt;/P&gt;&lt;P&gt;ProductID)&amp;nbsp; but it is not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="zs_itch.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/96856_zs_itch.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 18:11:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-solve-this-with-Set-Analysis-and-If-statement/m-p/985131#M336120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-24T18:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to solve this with Set Analysis and If statement</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-solve-this-with-Set-Analysis-and-If-statement/m-p/985132#M336121</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;=Count({&amp;lt;Status = {"Created"},ProductId = {"=count({&amp;lt;Status = {'Created'}&amp;gt;}Distinct TrxID)=2"}&amp;gt;}Distinct ProductId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 18:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-solve-this-with-Set-Analysis-and-If-statement/m-p/985132#M336121</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2015-08-24T18:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to solve this with Set Analysis and If statement</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-solve-this-with-Set-Analysis-and-If-statement/m-p/985133#M336122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you are looking for&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;count({&amp;lt; ProductID={"=count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Status={CREATED} &amp;gt;} &lt;/SPAN&gt;DISTINCT TransactionID)=2"}&amp;gt;} Distinct&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ProductID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 18:27:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-solve-this-with-Set-Analysis-and-If-statement/m-p/985133#M336122</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-24T18:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to solve this with Set Analysis and If statement</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-solve-this-with-Set-Analysis-and-If-statement/m-p/985134#M336123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to solve it is a bit dependent on how you want to display your result - which you haven't told us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you want the result in a Straight Table and then it is quite simple to display the ProductID which&lt;/P&gt;&lt;P&gt;match your criteria like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add one single dimension which is ProductID and one single expression which is&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count( { &amp;lt; Status = { 'CREATED' } &amp;gt; } TransactionID ) = 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you will have a two column straight table with a single row - XYZ002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want a list of ProductIDs in a text box you could use this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Concat( Aggr( If( $(A1)&amp;nbsp; , ProductID ) , ProductID ) , Chr(10) )&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 18:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-solve-this-with-Set-Analysis-and-If-statement/m-p/985134#M336123</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-08-24T18:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to solve this with Set Analysis and If statement</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-solve-this-with-Set-Analysis-and-If-statement/m-p/985135#M336124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;ProductId = {"=count({&amp;lt;Status = {'CREATED'}&amp;gt;}Distinct TrasactionID)=2"}&amp;gt;}Distinct ProductId)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 18:28:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-solve-this-with-Set-Analysis-and-If-statement/m-p/985135#M336124</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-08-24T18:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to solve this with Set Analysis and If statement</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-solve-this-with-Set-Analysis-and-If-statement/m-p/985136#M336125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count({&amp;lt;Status={CREATED}, ProductID={"=count({$ &amp;lt;Status={&lt;SPAN style="font-size: 13.3333px;"&gt;CREATED&lt;/SPAN&gt;}&amp;gt;} DISTINCT TransactionID)=2"}&amp;gt;}Distinct ProductID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 18:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-solve-this-with-Set-Analysis-and-If-statement/m-p/985136#M336125</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-08-24T18:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to solve this with Set Analysis and If statement</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-solve-this-with-Set-Analysis-and-If-statement/m-p/985137#M336126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone. Special Thanks goes to sweuhl for being the first responder to be correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 23:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-solve-this-with-Set-Analysis-and-If-statement/m-p/985137#M336126</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-24T23:48:44Z</dc:date>
    </item>
  </channel>
</rss>

