<?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 and set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446717#M1156478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression is wrong. &lt;/P&gt;&lt;P&gt;It can be &lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;if(x='ab' and y='cd', 0, Count(Distinct z))&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;or&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Count(Distinct if(x='ab' and y='cd', z))&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only the 2nd may be translated in Set Analysis :&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Count({&amp;lt;x={ab}, y={cd}&amp;gt;} Distinct z)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin Favier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Feb 2013 15:22:59 GMT</pubDate>
    <dc:creator>martin59</dc:creator>
    <dc:date>2013-02-18T15:22:59Z</dc:date>
    <item>
      <title>IF and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446716#M1156477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;somebody knows how this IF-statement would look like in set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(x= 'ab' and y='cd', 0, count distinct(z))&lt;/P&gt;&lt;P&gt;thanks for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 15:17:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446716#M1156477</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2013-02-18T15:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: IF and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446717#M1156478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression is wrong. &lt;/P&gt;&lt;P&gt;It can be &lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;if(x='ab' and y='cd', 0, Count(Distinct z))&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;or&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Count(Distinct if(x='ab' and y='cd', z))&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only the 2nd may be translated in Set Analysis :&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Count({&amp;lt;x={ab}, y={cd}&amp;gt;} Distinct z)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin Favier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 15:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446717#M1156478</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2013-02-18T15:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: IF and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446718#M1156481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Martin&lt;/P&gt;&lt;P&gt;thanks. I tried already that way. it works, but i want to set a condition to the intersection of x and y (two dimensions), where the values are "ab" AND "cd". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other values of the dimension are not showed if i use the set analysis, but i want to see everything. Like this:&lt;/P&gt;&lt;P&gt;the dimensions are X, Y and are assigned different values. I want that when X=ab AND Y = cd, then it should show zero, otherwise, it should count the rest and show them in the fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Header 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Header 2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Header 3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Header 4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Y = a&lt;/TD&gt;&lt;TD&gt;Y=c&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;Y=cd&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X = e&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X = u&lt;/TD&gt;&lt;TD&gt;78&lt;/TD&gt;&lt;TD&gt;98&lt;/TD&gt;&lt;TD&gt;74&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X= ab&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;14&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;45&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final result shall look like&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Header 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Header 2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Header 3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Header 4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Y = a&lt;/TD&gt;&lt;TD&gt;Y=c&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;Y=cd&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X = e&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X = u&lt;/TD&gt;&lt;TD&gt;78&lt;/TD&gt;&lt;TD&gt;98&lt;/TD&gt;&lt;TD&gt;74&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X= ab&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;14&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 15:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446718#M1156481</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2013-02-18T15:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: IF and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446719#M1156483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I understand, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it's a little bit more complicated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried this (if we consider ID as the Primary Key) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Count({&amp;lt;ID=E({&amp;lt;x={ab}, y={cd}&amp;gt;} ID)&amp;gt;} Distinct z)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression depends on your datamodel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin Favier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 16:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446719#M1156483</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2013-02-18T16:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: IF and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446720#M1156486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I understand, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it's a little bit more complicated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried this (if we consider ID as the Primary Key) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Count({&amp;lt;ID=E({&amp;lt;x={ab}, y={cd}&amp;gt;} ID)&amp;gt;} Distinct z)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression depends on your datamodel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin Favier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 16:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446720#M1156486</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2013-02-18T16:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: IF and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446721#M1156488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I understand, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it's a little bit more complicated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried this (if we consider ID as the Primary Key) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Count({&amp;lt;ID=E({&amp;lt;x={ab}, y={cd}&amp;gt;} ID)&amp;gt;} Distinct z)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression depends on your datamodel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin Favier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 16:25:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446721#M1156488</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2013-02-18T16:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: IF and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446722#M1156490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;i tried, but the result is nothing (the formula shows no errors, but i do not get any number, i thinking i am making a logical error)&lt;/P&gt;&lt;P&gt;my primary key in the data structure is contact_id, which is at the same time the field i am counting&lt;/P&gt;&lt;P&gt;i imagine with this formula, i am counting the total number of customers, excluding the customers which fall into the intersection of segments: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;contact_id&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;e&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Segment_1]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'NewCustomer'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Segment_2]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'LostCustomer'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;contact_id&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;contact_id&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Segment_1 = X&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Segment_2 = Y&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;'NewCustomer' = 'ab'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;'LostCustomer' = 'cd'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;the contact_id would be ID and Z &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;what is wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 16:52:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446722#M1156490</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2013-02-18T16:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: IF and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446723#M1156491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are all your contact_id in NewCustomer AND LostCustomer ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin Favier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 17:05:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446723#M1156491</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2013-02-18T17:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: IF and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446724#M1156492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are all your contact_id in NewCustomer AND LostCustomer ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin Favier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 17:05:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446724#M1156492</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2013-02-18T17:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: IF and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446725#M1156493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are all your contact_id in NewCustomer AND LostCustomer ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin Favier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 17:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446725#M1156493</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2013-02-18T17:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: IF and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446726#M1156494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no, they are distributed everywhere. this a customer migration table, so it is important to see how many customers migrated from a segment_1 in a previous period to a segment_2 in the next period. It may be that they stayed in the segment, and this will be reflected in the diagonal. If they migrated, either up or down in the segment, this will be reflected in the other fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are nulls, this is reflected in the new / lost customers row / column, and finally, i have the NULL / NULL combination, this is, when the customers are located in the intersection NewCustomer AND LostCustomer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got this solved, but i made an outer join of a duplicated table, with different names (for period and segment). then included an IF statment in the script to the the "NULL / NULL" combination and flag it. Then in the expression i used set analysis on only one field (the flagged one) and it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is, i have now more than 4 billion records and the performance is bad. Aggregating data previously in SQL, last as well and seems not to be better., so i thought there may be a way with set analysis directly in the chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hopefully it is clear, thanks for your help&lt;/P&gt;&lt;P&gt;felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 17:25:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446726#M1156494</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2013-02-18T17:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: IF and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446727#M1156495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please provide test data in excel,what ever formate you are getting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;h&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/alert.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 17:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446727#M1156495</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-18T17:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: IF and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446728#M1156496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;DIV class="yiv1977616068MsoNormal" id="yui_3_7_2_1_1361212613137_2157" style="background: white;"&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2159" style="color: black; font-size: 10pt;"&gt;hi&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="yiv1977616068MsoNormal" style="background: white;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;the table structure is like this:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="yiv1977616068MsoNormal" style="background: white;"&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2159" style="color: black; font-size: 10pt;"&gt;table:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="yiv1977616068MsoNormal" id="yui_3_7_2_1_1361212613137_2147" style="background: white;"&gt;&lt;STRONG id="yui_3_7_2_1_1361212613137_2163"&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2162" style="color: blue; font-size: 8pt;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2215" style="color: maroon; font-size: 8pt;"&gt;contact_id&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2164" style="color: maroon; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 8pt;"&gt;,&lt;BR /&gt;s&lt;/SPAN&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2165" style="color: maroon; font-size: 8pt;"&gt;egment;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG id="yui_3_7_2_1_1361212613137_2217"&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2216" style="color: blue; font-size: 8pt;"&gt;SQL&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2167" style="color: black; font-size: 8pt;"&gt; SELECT *&lt;BR /&gt;FROM DATABASE;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="yiv1977616068MsoNormal" style="background: white;"&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2110" style="color: black; font-size: 10pt;"&gt;i duplicated this table like (previously store as table.qvd):&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="yiv1977616068MsoNormal" style="background: white;"&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2159" style="color: black; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="yiv1977616068MsoNormal" style="background: white;"&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2159" style="color: black; font-size: 10pt;"&gt;table1:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="yiv1977616068MsoNormal" id="yui_3_7_2_1_1361212613137_2147" style="background: white;"&gt;&lt;STRONG id="yui_3_7_2_1_1361212613137_2163"&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2162" style="color: blue; font-size: 8pt;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2215" style="color: maroon; font-size: 8pt;"&gt;contact_id&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2164" style="color: maroon; font-size: 8pt;"&gt;month as month_1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 8pt;"&gt;,&lt;BR /&gt;s&lt;/SPAN&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2165" style="color: maroon; font-size: 8pt;"&gt;egment as segment_1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2167" style="color: black; font-size: 8pt;"&gt;FROM table.qvd (qvd);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="yiv1977616068MsoNormal" style="background: white;"&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2159" style="color: black; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="yiv1977616068MsoNormal" style="background: white;"&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2159" style="color: black; font-size: 10pt;"&gt;table2:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="yiv1977616068MsoNormal" id="yui_3_7_2_1_1361212613137_2147" style="background: white;"&gt;&lt;STRONG id="yui_3_7_2_1_1361212613137_2163"&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2162" style="color: blue; font-size: 8pt;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2215" style="color: maroon; font-size: 8pt;"&gt;contact_id&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2164" style="color: maroon; font-size: 8pt;"&gt;month as month_2&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 8pt;"&gt;,&lt;BR /&gt;s&lt;/SPAN&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2165" style="color: maroon; font-size: 8pt;"&gt;egment as segment_2&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2167" style="color: black; font-size: 8pt;"&gt;FROM table.qvd (qvd);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="yiv1977616068MsoNormal" style="background: white;"&gt; &lt;/DIV&gt;&lt;DIV class="yiv1977616068MsoNormal" style="background: white;"&gt;&lt;SPAN style="color: black; font-size: 8pt;"&gt;i got an extra "contact" table including only my customers and their countries&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="yiv1977616068MsoNormal" style="background: white;"&gt; &lt;/DIV&gt;&lt;DIV class="yiv1977616068MsoNormal" style="background: white;"&gt;&lt;SPAN style="color: black; font-size: 8pt;"&gt;I attached the excel sheet with the data structure&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="yiv1977616068MsoNormal" style="background: white;"&gt; &lt;/DIV&gt;&lt;DIV class="yiv1977616068MsoNormal" style="background: white;"&gt;&lt;SPAN id="yui_3_7_2_1_1361212613137_2186" style="color: black; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 19:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-and-set-analysis/m-p/446728#M1156496</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2013-02-18T19:00:19Z</dc:date>
    </item>
  </channel>
</rss>

