<?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: Help with Set Analyssis - comparing two fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analyssis-comparing-two-fields/m-p/1532813#M438882</link>
    <description>&lt;P&gt;You could try this one:&lt;/P&gt;&lt;P&gt;=Count({&amp;lt; PARTY_SECONDARY_TAX_COUNTRY_src_1= {"=PARTY_SECONDARY_TAX_COUNTRY_src_1=Left(PARTY_SECONDARY_TAXNUMBER_clo_1,2)"} &amp;gt;}PARTY_SECONDARY_TAX_COUNTRY_src_1)&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jan 2019 15:54:37 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2019-01-21T15:54:37Z</dc:date>
    <item>
      <title>Help with Set Analyssis - comparing two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analyssis-comparing-two-fields/m-p/1532799#M438879</link>
      <description>&lt;P&gt;If have two fields&lt;/P&gt;&lt;P&gt;PARTY_SECONDARY_TAX_COUNTRY_src_1&lt;/P&gt;&lt;P&gt;PARTY_SECONDARY_TAXNUMBER_clo_1&lt;/P&gt;&lt;P&gt;The Country is 2 letters, i.e. GB.&lt;/P&gt;&lt;P&gt;The Tax Number is 2 letters and then some numbers i.e. IE12344345&lt;/P&gt;&lt;P&gt;I want to do a count of the number of records where the Country is the same as the first two letters of the Tax Number. This will go in a text box not a chart so no dimensions.&lt;/P&gt;&lt;P&gt;I've tried set analysis but not sure where I've gone wrong as it's not working:&lt;/P&gt;&lt;P&gt;=Count({&amp;lt; PARTY_SECONDARY_TAX_COUNTRY_src_1= {"=Left(PARTY_SECONDARY_TAXNUMBER_clo_1,2)"} &amp;gt;}PARTY_SECONDARY_TAX_COUNTRY_src_1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analyssis-comparing-two-fields/m-p/1532799#M438879</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2024-11-16T04:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Analyssis - comparing two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analyssis-comparing-two-fields/m-p/1532805#M438880</link>
      <description>&lt;P&gt;Maybe:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=Count({&amp;lt; PARTY_SECONDARY_TAX_COUNTRY_src_1= {"&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;$(&lt;/STRONG&gt;&lt;/FONT&gt;=Left(PARTY_SECONDARY_TAXNUMBER_clo_1,2)&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;"} &amp;gt;}PARTY_SECONDARY_TAX_COUNTRY_src_1)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 15:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analyssis-comparing-two-fields/m-p/1532805#M438880</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2019-01-21T15:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Analyssis - comparing two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analyssis-comparing-two-fields/m-p/1532809#M438881</link>
      <description>&lt;P&gt;Doesn't seem to work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 15:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analyssis-comparing-two-fields/m-p/1532809#M438881</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2019-01-21T15:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Analyssis - comparing two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analyssis-comparing-two-fields/m-p/1532813#M438882</link>
      <description>&lt;P&gt;You could try this one:&lt;/P&gt;&lt;P&gt;=Count({&amp;lt; PARTY_SECONDARY_TAX_COUNTRY_src_1= {"=PARTY_SECONDARY_TAX_COUNTRY_src_1=Left(PARTY_SECONDARY_TAXNUMBER_clo_1,2)"} &amp;gt;}PARTY_SECONDARY_TAX_COUNTRY_src_1)&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 15:54:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analyssis-comparing-two-fields/m-p/1532813#M438882</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-01-21T15:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Analyssis - comparing two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analyssis-comparing-two-fields/m-p/1532816#M438883</link>
      <description>&lt;P&gt;How about this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(If(PARTY_SECONDARY_TAX_COUNTRY_src_1=Left(PARTY_SECONDARY_TAXNUMBER_clo_1,2), PARTY_SECONDARY_TAX_COUNTRY_src_1))&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 15:57:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analyssis-comparing-two-fields/m-p/1532816#M438883</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-01-21T15:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Analyssis - comparing two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analyssis-comparing-two-fields/m-p/1533105#M438902</link>
      <description>&lt;P&gt;Marcus, I'm not sure what that's doing but I got a count of 2 which isn't right. Maybe it's doing a count distinct. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 09:48:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analyssis-comparing-two-fields/m-p/1533105#M438902</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2019-01-22T09:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Analyssis - comparing two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analyssis-comparing-two-fields/m-p/1533106#M438903</link>
      <description>&lt;P&gt;Didn't quite work but I modified it to the following which I think may be working.... (the tricky bit is that I've got a fair bit of set analysis in there already so it made sense to use set analysis rather than IF.&lt;/P&gt;&lt;P&gt;I've attached the QVW if anyone has got any better ideas to test.&lt;/P&gt;&lt;P&gt;=Count( {&amp;lt; TAX_CODE_LOCATION_clo_1={'EU'}, TAX_CODE_FLOW_clo_1={'I'}, TAX_CODE_EU_INDICATOR_clo_1-={'Non-EC relevant'}, TAX_CODE_STATUS_clo_1-={'SELF CHARGE'} &amp;gt;} If(PARTY_SECONDARY_TAX_COUNTRY_src_1=Left(PARTY_SECONDARY_TAXNUMBER_clo_1,2),1,null()) )&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 09:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analyssis-comparing-two-fields/m-p/1533106#M438903</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2019-01-22T09:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Analyssis - comparing two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analyssis-comparing-two-fields/m-p/1533127#M438904</link>
      <description>&lt;P&gt;It depends on the datamodel if an approach like above mentioned worked or not. Beside this are you sure how your data does look like, maybe there are really two records available - quite useful for checking it is to add recno() or rowno() for an unique record-id within the script and then using a tablebox to check the data.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 10:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analyssis-comparing-two-fields/m-p/1533127#M438904</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-01-22T10:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Analyssis - comparing two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analyssis-comparing-two-fields/m-p/1533156#M438909</link>
      <description>&lt;P&gt;Usually it's better to use: if(condition, count(Field)) instead of: count(if(condition, Field)) - just give it a try.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 11:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analyssis-comparing-two-fields/m-p/1533156#M438909</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-01-22T11:13:22Z</dc:date>
    </item>
  </channel>
</rss>

