<?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: Union 2 Fields, in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Union-2-Fields-in-expression/m-p/62489#M779598</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;This does work I believe, however when I use this with a sample of my actual data (9 million records) the performance suffers greatly -to the point where qlik freezes totally. I appreciate the idea but I'm not sure it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields I'm dealing with are also alphanumeric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas? It's no problem if qlik is limited to the doing this within the load statement, I can adjust. I was just hoping there was a function I didn't know that would bring 2 fields together in an expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2018 13:47:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-05T13:47:49Z</dc:date>
    <item>
      <title>Union 2 Fields, in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Union-2-Fields-in-expression/m-p/62487#M779595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say I have a table:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [test1, test2&lt;/P&gt;&lt;P&gt;1, 2&lt;/P&gt;&lt;P&gt;2, 3&lt;/P&gt;&lt;P&gt;2, 4];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a count(distinct) of a union between test1 and test2. A count(distinct) on test1 gives me 2, and test3 gives me 3. But if they're unioned the count(distinct) would be 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to achieve this within an expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will attach a qlikview so you guys can see this. &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/Union-2-Fields-in-expression/m-p/62487#M779595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Union 2 Fields, in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Union-2-Fields-in-expression/m-p/62488#M779596</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 Test2) + Count(DISTINCT&amp;nbsp; {&amp;lt;Test -= {$(=Concat(DISTINCT Chr(39) &amp;amp; Test2 &amp;amp; Chr(39), ','))}&amp;gt;} Test)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, this should also work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT&amp;nbsp; {&amp;lt;Test2 -= {$(=Concat(DISTINCT Chr(39) &amp;amp; Test &amp;amp; Chr(39), ','))}&amp;gt;} Test2) + Count(DISTINCT Test)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 13:35:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Union-2-Fields-in-expression/m-p/62488#M779596</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-05T13:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Union 2 Fields, in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Union-2-Fields-in-expression/m-p/62489#M779598</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;This does work I believe, however when I use this with a sample of my actual data (9 million records) the performance suffers greatly -to the point where qlik freezes totally. I appreciate the idea but I'm not sure it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields I'm dealing with are also alphanumeric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas? It's no problem if qlik is limited to the doing this within the load statement, I can adjust. I was just hoping there was a function I didn't know that would bring 2 fields together in an expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 13:47:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Union-2-Fields-in-expression/m-p/62489#M779598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-05T13:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Union 2 Fields, in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Union-2-Fields-in-expression/m-p/62490#M779599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I initially thought that this should work... but I am not sure why this isn't working&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 Test2) + Count(DISTINCT&amp;nbsp; {&amp;lt;Test = e(Test2)&amp;gt;} Test)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&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 {&amp;lt;Test2 = e(Test)&amp;gt;} Test2) + Count(DISTINCT&amp;nbsp; {&amp;lt;Test = e(Test2)&amp;gt;} Test)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me try few other options&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 13:50:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Union-2-Fields-in-expression/m-p/62490#M779599</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-05T13:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Union 2 Fields, in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Union-2-Fields-in-expression/m-p/62491#M779600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT Test2) + Count(DISTINCT&amp;nbsp; {&amp;lt;Test -= p(Test2)&amp;gt;} Test)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT&amp;nbsp; {&amp;lt;Test2 -= p(Test)&amp;gt;}&amp;nbsp; Test2) + Count(DISTINCT Test)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 13:51:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Union-2-Fields-in-expression/m-p/62491#M779600</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-05T13:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Union 2 Fields, in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Union-2-Fields-in-expression/m-p/62492#M779602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nailed it! I'll have to look into this p() function, I have not seen this. Thanks for the help Sunny!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 13:56:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Union-2-Fields-in-expression/m-p/62492#M779602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-05T13:56:28Z</dc:date>
    </item>
  </channel>
</rss>

