<?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 create Set Analysis in combination with If statement? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-Set-Analysis-in-combination-with-If-statement/m-p/31514#M770754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2018 18:06:25 GMT</pubDate>
    <dc:creator>mrichman</dc:creator>
    <dc:date>2018-05-30T18:06:25Z</dc:date>
    <item>
      <title>How to create Set Analysis in combination with If statement?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Set-Analysis-in-combination-with-If-statement/m-p/31509#M770749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I best approach the following issue. I have two fields, which likely have the same values (type1 and type2) and want to count based on customer ID. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-family: Roboto, sans-serif; font-size: 13px;"&gt;Data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-family: Roboto, sans-serif; font-size: 13px;"&gt;LOAD * inline [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-family: Roboto, sans-serif; font-size: 13px;"&gt;Customer|Type1|Type2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-family: Roboto, sans-serif; font-size: 13px;"&gt;Astrida|TV|Radio&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-family: Roboto, sans-serif; font-size: 13px;"&gt;Astrida|TV|Ref&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-family: Roboto, sans-serif; font-size: 13px;"&gt;Astrida|TV|TV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-family: Roboto, sans-serif; font-size: 13px;"&gt;] (delimiter is '|');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-family: Roboto, sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-family: Roboto, sans-serif; font-size: 13px;"&gt;In word: only count Customer if Type1 and Type2 have the equal field, and ignore all rows which do not comply with the formula. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-family: Roboto, sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-family: Roboto, sans-serif; font-size: 13px;"&gt;Thanks in advance. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Set-Analysis-in-combination-with-If-statement/m-p/31509#M770749</guid>
      <dc:creator>mrichman</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Set Analysis in combination with If statement?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Set-Analysis-in-combination-with-If-statement/m-p/31510#M770750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT If(Type1 = Type2, Customer))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can create a flag in the script like this&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: Roboto, sans-serif; color: #263238;"&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #263238; font-style: inherit; font-family: Roboto, sans-serif;"&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #263238; font-style: inherit; font-family: Roboto, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Type1 = Type2, 1, 0) as MatchFlag;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #263238; font-style: inherit; font-family: Roboto, sans-serif;"&gt;LOAD * inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #263238; font-style: inherit; font-family: Roboto, sans-serif;"&gt;Customer|Type1|Type2&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #263238; font-style: inherit; font-family: Roboto, sans-serif;"&gt;Astrida|TV|Radio&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #263238; font-style: inherit; font-family: Roboto, sans-serif;"&gt;Astrida|TV|Ref&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #263238; font-style: inherit; font-family: Roboto, sans-serif;"&gt;Astrida|TV|TV&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: Roboto, sans-serif; color: #263238;"&gt;&lt;STRONG&gt;] (delimiter is '|');&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and then this expression&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;MatchFlag = {1}&amp;gt;} Customer)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;or&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum(MatchFlag)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 14:32:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Set-Analysis-in-combination-with-If-statement/m-p/31510#M770750</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-30T14:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Set Analysis in combination with If statement?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Set-Analysis-in-combination-with-If-statement/m-p/31511#M770751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;do you want just to load the rows depending on your croteria ?&lt;/P&gt;&lt;P&gt;if yes, add where Type1=Type2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to count after loading, you can add something like&lt;/P&gt;&lt;P&gt;t:&lt;/P&gt;&lt;P&gt;noconcatenate&lt;/P&gt;&lt;P&gt;load distinct Customer where Type1=Type2&lt;/P&gt;&lt;P&gt;resident Data;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 14:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Set-Analysis-in-combination-with-If-statement/m-p/31511#M770751</guid>
      <dc:creator>olivierrobin</dc:creator>
      <dc:date>2018-05-30T14:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Set Analysis in combination with If statement?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Set-Analysis-in-combination-with-If-statement/m-p/31512#M770752</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;&lt;/P&gt;&lt;P&gt;Thanks for the prompt reply. What if field Type1 and Type2 are case sensitive for example TV vs Tv?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 15:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Set-Analysis-in-combination-with-If-statement/m-p/31512#M770752</guid>
      <dc:creator>mrichman</dc:creator>
      <dc:date>2018-05-30T15:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Set Analysis in combination with If statement?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Set-Analysis-in-combination-with-If-statement/m-p/31513#M770753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then make them insensitive using Upper(), Lower(), or Capitalize()&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;Count(DISTINCT If(Lower(Type1) = Lower(Type2), Customer))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 16:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Set-Analysis-in-combination-with-If-statement/m-p/31513#M770753</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-30T16:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Set Analysis in combination with If statement?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Set-Analysis-in-combination-with-If-statement/m-p/31514#M770754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 18:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Set-Analysis-in-combination-with-If-statement/m-p/31514#M770754</guid>
      <dc:creator>mrichman</dc:creator>
      <dc:date>2018-05-30T18:06:25Z</dc:date>
    </item>
  </channel>
</rss>

