<?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: COUNT DISTINCT over 2 seperate fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667357#M449228</link>
    <description>&lt;P&gt;Thanks to you both.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I understand I would need to load the data with a LOAD instruction. Does this also work with our scenario? We do not load data from files but we use sql statements (SQL SELECT xxx FROM) and get the data via ODBC connection from a remote database. It's not that easy to get the underlying view changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;cyberclaus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jan 2020 14:21:02 GMT</pubDate>
    <dc:creator>cyberclaus</dc:creator>
    <dc:date>2020-01-20T14:21:02Z</dc:date>
    <item>
      <title>COUNT DISTINCT over 2 seperate fields</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667220#M449215</link>
      <description>&lt;P&gt;Hi, having a problem I'm trying to solve for some days I now try asking you.&lt;/P&gt;&lt;P&gt;I have two tables A and B coming from a sql view. "A" shows all assets where software "A" is installed. "B" shows all assets where software "B" is installed. On some assets software "A" is installed as well as software "B".&lt;/P&gt;&lt;P&gt;Now I want a (distinct) number of assets where "A" or "B" is installed - one or both.&lt;/P&gt;&lt;P&gt;Count(Aggr(DISTINCT Count(DISTINCT A_AssetName), B_AssetName))&amp;nbsp; doesn't work. I mean it is correct syntactically but the result is wrong.&lt;/P&gt;&lt;P&gt;Can anybody out there pleae help me.&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;cyberclaus&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667220#M449215</guid>
      <dc:creator>cyberclaus</dc:creator>
      <dc:date>2024-11-16T19:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT DISTINCT over 2 seperate fields</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667241#M449217</link>
      <description>&lt;P&gt;Can you post sample data with expected output?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 10:52:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667241#M449217</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-01-20T10:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT DISTINCT over 2 seperate fields</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667309#M449221</link>
      <description>&lt;P&gt;hope this is readable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 1:&lt;/P&gt;&lt;P&gt;Client01 SW01&lt;BR /&gt;Client02 SW01&lt;BR /&gt;Server01 SW01&lt;BR /&gt;Server02 SW01&lt;BR /&gt;Server03 SW01&lt;BR /&gt;Server04 SW01&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Tabl2 2:&lt;/P&gt;&lt;P&gt;Client02 SW02&lt;BR /&gt;Server01 SW02&lt;BR /&gt;Server03 SW02&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected: SW01 / SW02 installed on 6 assets&lt;/P&gt;&lt;P&gt;LIKE (Count(Distinct Table1 + Table2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;cyberclaus&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 12:44:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667309#M449221</guid>
      <dc:creator>cyberclaus</dc:creator>
      <dc:date>2020-01-20T12:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT DISTINCT over 2 seperate fields</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667315#M449222</link>
      <description>&lt;P&gt;Can't you simply define the fields?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT Table1_F1 + Table2_F2)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 12:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667315#M449222</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2020-01-20T12:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT DISTINCT over 2 seperate fields</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667343#M449223</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry no:&amp;nbsp;&lt;STRONG&gt;Count(DISTINCT Table1_F1 + Table2_F2) give 0 (zero).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thank you anyway&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 13:58:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667343#M449223</guid>
      <dc:creator>cyberclaus</dc:creator>
      <dc:date>2020-01-20T13:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT DISTINCT over 2 seperate fields</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667346#M449224</link>
      <description>&lt;P&gt;but SW02 installed on 3 assets only..right?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 14:11:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667346#M449224</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-01-20T14:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT DISTINCT over 2 seperate fields</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667348#M449225</link>
      <description>&lt;P&gt;My intension like this&lt;/P&gt;&lt;P&gt;[Table 1]:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;ServerName, Table1_F1&lt;BR /&gt;Client01 SW01&lt;BR /&gt;Client02 SW01&lt;BR /&gt;Server01 SW01&lt;BR /&gt;Server02 SW01&lt;BR /&gt;Server03 SW01&lt;BR /&gt;Server04 SW01&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;[Table 2]:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;ServerName, Table2_F2&lt;BR /&gt;Client02 SW02&lt;BR /&gt;Server01 SW02&lt;BR /&gt;Server03 SW02&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Create Table like&lt;/P&gt;&lt;P&gt;Dimension : &lt;STRONG&gt;ServerName&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression :&amp;nbsp;&lt;STRONG&gt;Count(DISTINCT Table1_F1 + Table2_F2)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 14:12:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667348#M449225</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2020-01-20T14:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT DISTINCT over 2 seperate fields</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667349#M449226</link>
      <description>&lt;P&gt;Yes, absolutely correct.&lt;/P&gt;&lt;P&gt;In total 6 assets are affected. That's what we need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Greets&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 14:13:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667349#M449226</guid>
      <dc:creator>cyberclaus</dc:creator>
      <dc:date>2020-01-20T14:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT DISTINCT over 2 seperate fields</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667353#M449227</link>
      <description>&lt;P&gt;[Table 1]:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Asset, Software&lt;BR /&gt;Client01 SW01&lt;BR /&gt;Client02 SW01&lt;BR /&gt;Server01 SW01&lt;BR /&gt;Server02 SW01&lt;BR /&gt;Server03 SW01&lt;BR /&gt;Server04 SW01&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;concatenate([Table 1])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[Table 2]:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Asset, Software&lt;/P&gt;&lt;P&gt;Client02 SW02&lt;BR /&gt;Server01 SW02&lt;BR /&gt;Server03 SW02&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now you can simple use&amp;nbsp; below expression&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count(distinct Asset)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 14:16:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667353#M449227</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-01-20T14:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT DISTINCT over 2 seperate fields</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667357#M449228</link>
      <description>&lt;P&gt;Thanks to you both.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I understand I would need to load the data with a LOAD instruction. Does this also work with our scenario? We do not load data from files but we use sql statements (SQL SELECT xxx FROM) and get the data via ODBC connection from a remote database. It's not that easy to get the underlying view changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;cyberclaus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 14:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667357#M449228</guid>
      <dc:creator>cyberclaus</dc:creator>
      <dc:date>2020-01-20T14:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT DISTINCT over 2 seperate fields</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667364#M449229</link>
      <description>&lt;P&gt;It will work in your scenario as well. You can directly use the query to append the data or you can create QVDs using individual SQL queries and then use QVDs to perform any other operation like join.&lt;/P&gt;&lt;P&gt;for SQL, you can use below&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;SQL Select Asset,Software&lt;/P&gt;&lt;P&gt;FROM dbname.table name ;&lt;/P&gt;&lt;P&gt;Concatenate(Table1)&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;SQL Select Asset,Software&lt;/P&gt;&lt;P&gt;FROM dbname.table name ;&lt;/P&gt;&lt;P&gt;Note: Make sure that column names are same in both query for concatenate load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 14:30:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667364#M449229</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-01-20T14:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT DISTINCT over 2 seperate fields</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667399#M449230</link>
      <description>&lt;P&gt;Works fine - THANK YOU&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You saved my day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 15:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-DISTINCT-over-2-seperate-fields/m-p/1667399#M449230</guid>
      <dc:creator>cyberclaus</dc:creator>
      <dc:date>2020-01-20T15:03:54Z</dc:date>
    </item>
  </channel>
</rss>

