<?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 if statement with set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-statement-with-set-analysis/m-p/1094977#M363801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i have like an 3 Orders contain a like 4 type of pizza L,M,S i need to get the total Quantity for large pizza so i use this&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;PAYMENT_METHOD -= {'Invitation'},ITEM_FAMILY_GROUP ={[Large Pizza]}&amp;gt;}QUANTITY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if i need to get the &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Large Pizza Quantity&amp;nbsp; &lt;/STRONG&gt;from all orders that only contain more than on &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Large Pizza; &lt;/STRONG&gt; i try to add the if condition based on the Order Number but it doesn't work , i feel confused regarding how can i put if condition inside set analysis.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;this the data sample :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ahmad Kastero with order key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you see the second document &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #fdfdfd;"&gt;&lt;STRONG&gt;New Microsoft Excel Worksheet.xlsx &lt;/STRONG&gt; and filter on order &lt;STRONG&gt;86 &lt;/STRONG&gt; you can see there is more than on Large Pizza so for this order i will take the count of large pizza item and the rest of orders how contain only one large pizza i will ignore it .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ahmad Kastero&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Mar 2016 15:32:55 GMT</pubDate>
    <dc:creator>jood_ahmad</dc:creator>
    <dc:date>2016-03-04T15:32:55Z</dc:date>
    <item>
      <title>if statement with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-with-set-analysis/m-p/1094977#M363801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i have like an 3 Orders contain a like 4 type of pizza L,M,S i need to get the total Quantity for large pizza so i use this&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;PAYMENT_METHOD -= {'Invitation'},ITEM_FAMILY_GROUP ={[Large Pizza]}&amp;gt;}QUANTITY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if i need to get the &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Large Pizza Quantity&amp;nbsp; &lt;/STRONG&gt;from all orders that only contain more than on &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Large Pizza; &lt;/STRONG&gt; i try to add the if condition based on the Order Number but it doesn't work , i feel confused regarding how can i put if condition inside set analysis.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;this the data sample :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ahmad Kastero with order key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you see the second document &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #fdfdfd;"&gt;&lt;STRONG&gt;New Microsoft Excel Worksheet.xlsx &lt;/STRONG&gt; and filter on order &lt;STRONG&gt;86 &lt;/STRONG&gt; you can see there is more than on Large Pizza so for this order i will take the count of large pizza item and the rest of orders how contain only one large pizza i will ignore it .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ahmad Kastero&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 15:32:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-with-set-analysis/m-p/1094977#M363801</guid>
      <dc:creator>jood_ahmad</dc:creator>
      <dc:date>2016-03-04T15:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: if statement with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-with-set-analysis/m-p/1094978#M363802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahmad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont quite understand your question, can you explain it more in what output you expect to get?&lt;/P&gt;&lt;P&gt;The only thing i can think of here, is your [If Condition] field can be added into your set analysis like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;PAYMENT_METHOD -= {'Invitation'},ITEM_FAMILY_GROUP ={[Large Pizza]},&lt;STRONG&gt;[If condition]={'1'}&lt;/STRONG&gt;&amp;gt;}QTY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 15:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-with-set-analysis/m-p/1094978#M363802</guid>
      <dc:creator>-SW-</dc:creator>
      <dc:date>2016-03-04T15:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: if statement with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-with-set-analysis/m-p/1094979#M363803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Ahmad Kastero wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;but if i need to get the &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Large Pizza Quantity&amp;nbsp; &lt;/STRONG&gt;from all orders that only contain more than on &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Large Pizza; &lt;/STRONG&gt; i try to add the if condition based on the Order Number but it doesn't work , i feel confused regarding how can i put if condition inside set analysis.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I don't understand this part. What are you trying to do? What is the expected output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 15:58:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-with-set-analysis/m-p/1094979#M363803</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-04T15:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: if statement with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-with-set-analysis/m-p/1094980#M363804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this suits your requirement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 16:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-with-set-analysis/m-p/1094980#M363804</guid>
      <dc:creator>satishkurra</dc:creator>
      <dc:date>2016-03-04T16:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: if statement with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-with-set-analysis/m-p/1094981#M363805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I completely understand what you are trying to do, but from the data set that was provided in the sample excel file, you can do something like this to get Large Pizzas, where the QTY was greater than 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( { &amp;lt; ITEM_FAMILY_GROUP={'Large Pizza'}, QTY={'&amp;gt;1'} &amp;gt;} QTY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Note that the sample dataset didn't include PAYMENT_METHOD so I didn't include it on the set analysis above because I don't know what the data looks like.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 16:10:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-with-set-analysis/m-p/1094981#M363805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-04T16:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: if statement with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-with-set-analysis/m-p/1094982#M363806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sunny ,&lt;/P&gt;&lt;P&gt;i try to get the Quantity&amp;nbsp; of pizza&amp;nbsp; from all my orders but this number i need it only for that orders contain more than one Large Pizza; if my orders contain one large pizza i will not count it if more i will count it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 16:11:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-with-set-analysis/m-p/1094982#M363806</guid>
      <dc:creator>jood_ahmad</dc:creator>
      <dc:date>2016-03-04T16:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: if statement with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-with-set-analysis/m-p/1094983#M363807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Think you can simple add:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Sum({&amp;lt;PAYMENT_METHOD -= {'Invitation'},ITEM_FAMILY_GROUP ={[Large Pizza]}&amp;gt;} If(QUANTITY&amp;gt;1,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;QUANTITY))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 16:12:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-with-set-analysis/m-p/1094983#M363807</guid>
      <dc:creator>jolivares</dc:creator>
      <dc:date>2016-03-04T16:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: if statement with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-with-set-analysis/m-p/1094984#M363808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some of the fields are missing in your sample file (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PAYMENT_METHOD). But is this what you are looking for?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;ITEM_FAMILY_GROUP = {'Large Pizza'}&lt;SPAN style="color: #ff0000;"&gt;, QTY = {'&amp;gt;1'}&lt;/SPAN&gt;&amp;gt;} QTY)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 16:24:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-with-set-analysis/m-p/1094984#M363808</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-04T16:24:09Z</dc:date>
    </item>
  </channel>
</rss>

