<?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: If statement where buckets may overlap in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statement-where-buckets-may-overlap/m-p/1169914#M633295</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to create a link table, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [CUS ID]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Cards' as NewField&lt;/P&gt;&lt;P&gt;RESIDENT YourTable&lt;/P&gt;&lt;P&gt;WHERE CC =1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD [CUS ID]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Marked' as NewField&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;RESIDENT YourTable&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;WHERE Sav=1 AND Cur =1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jun 2016 13:37:12 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-06-10T13:37:12Z</dc:date>
    <item>
      <title>If statement where buckets may overlap</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-where-buckets-may-overlap/m-p/1169913#M633294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 256px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;CUS ID&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;CC&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Sav&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Cur&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logic is something like, &lt;/P&gt;&lt;P&gt;if CC = 1 then 'Cards',&lt;/P&gt;&lt;P&gt;if Sav = 1 and Cur = 1, 'Marked'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you help with the correct IF statement for this. Some CUS ID's should end up with 2 values; ie they fall into both the Cards and Marked bucket&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Stu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 13:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-where-buckets-may-overlap/m-p/1169913#M633294</guid>
      <dc:creator />
      <dc:date>2016-06-10T13:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: If statement where buckets may overlap</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-where-buckets-may-overlap/m-p/1169914#M633295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to create a link table, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [CUS ID]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Cards' as NewField&lt;/P&gt;&lt;P&gt;RESIDENT YourTable&lt;/P&gt;&lt;P&gt;WHERE CC =1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD [CUS ID]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Marked' as NewField&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;RESIDENT YourTable&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;WHERE Sav=1 AND Cur =1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 13:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-where-buckets-may-overlap/m-p/1169914#M633295</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-10T13:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: If statement where buckets may overlap</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-where-buckets-may-overlap/m-p/1169915#M633296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(CC = 1 and Sav = 1 and Cur = 1, 'Both',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(CC = 1, 'Cards', If(Sav = 1 and Cur = 1, 'Marked')))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 13:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-where-buckets-may-overlap/m-p/1169915#M633296</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-10T13:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: If statement where buckets may overlap</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-where-buckets-may-overlap/m-p/1169916#M633297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/127525_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 13:41:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-where-buckets-may-overlap/m-p/1169916#M633297</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-10T13:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: If statement where buckets may overlap</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-where-buckets-may-overlap/m-p/1169917#M633298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;if(len(cards)&amp;lt;&amp;gt;0 and len(marked),1,0) as flag;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;if( CC = 1, 'Cards') as cards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Sav = 1 and Cur = 1, 'Marked') as marked&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;load * inline [CUSID,&amp;nbsp;&amp;nbsp;&amp;nbsp; CC,&amp;nbsp;&amp;nbsp;&amp;nbsp; Sav,&amp;nbsp;&amp;nbsp;&amp;nbsp; Cur&lt;/P&gt;&lt;P&gt;1,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&lt;/P&gt;&lt;P&gt;2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&lt;/P&gt;&lt;P&gt;3,&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&lt;/P&gt;&lt;P&gt;4,&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&lt;/P&gt;&lt;P&gt;5,&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&lt;/P&gt;&lt;P&gt;6,&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&lt;/P&gt;&lt;P&gt;7,&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&lt;/P&gt;&lt;P&gt;8,&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&lt;/P&gt;&lt;P&gt;9,&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flag is 1 for not empty cards and not empty marked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 13:44:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-where-buckets-may-overlap/m-p/1169917#M633298</guid>
      <dc:creator>florentina_doga</dc:creator>
      <dc:date>2016-06-10T13:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: If statement where buckets may overlap</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-where-buckets-may-overlap/m-p/1169918#M633299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 13:56:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-where-buckets-may-overlap/m-p/1169918#M633299</guid>
      <dc:creator />
      <dc:date>2016-06-10T13:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: If statement where buckets may overlap</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-where-buckets-may-overlap/m-p/1169919#M633300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, thanks for the help but i needed multiple values for those Customers who appear more than once &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 13:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-where-buckets-may-overlap/m-p/1169919#M633300</guid>
      <dc:creator />
      <dc:date>2016-06-10T13:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: If statement where buckets may overlap</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-where-buckets-may-overlap/m-p/1169920#M633301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds good &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 14:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-where-buckets-may-overlap/m-p/1169920#M633301</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-10T14:01:38Z</dc:date>
    </item>
  </channel>
</rss>

