<?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: Writing formula. Subtracting Count between 2 tables. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Writing-formula-Subtracting-Count-between-2-tables/m-p/254842#M1185950</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;Thanks You can rename the field like Rename field abc to ABC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2011 03:54:52 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2011-10-18T03:54:52Z</dc:date>
    <item>
      <title>Writing formula. Subtracting Count between 2 tables.</title>
      <link>https://community.qlik.com/t5/QlikView/Writing-formula-Subtracting-Count-between-2-tables/m-p/254836#M1185944</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;I have 2 tables and they have the same values as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1: &lt;/P&gt;&lt;P&gt;Field, Count1&lt;/P&gt;&lt;P&gt;A,1&lt;/P&gt;&lt;P&gt;B,2&lt;/P&gt;&lt;P&gt;C,3&lt;/P&gt;&lt;P&gt;D,4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field, Count2&lt;/P&gt;&lt;P&gt;A,5&lt;/P&gt;&lt;P&gt;B,3&lt;/P&gt;&lt;P&gt;C,8&lt;/P&gt;&lt;P&gt;D,9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to generate a 3rd table like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field, Count1-Count2&lt;/P&gt;&lt;P&gt;A, -4&lt;/P&gt;&lt;P&gt;B,-1.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value of Field is same. Table 3 should take the counts and subtract it based the values A, B, C,D...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and i will appreciate your responses.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 19:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Writing-formula-Subtracting-Count-between-2-tables/m-p/254836#M1185944</guid>
      <dc:creator />
      <dc:date>2011-10-17T19:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Writing formula. Subtracting Count between 2 tables.</title>
      <link>https://community.qlik.com/t5/QlikView/Writing-formula-Subtracting-Count-between-2-tables/m-p/254837#M1185945</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;I suggest you to load this two tables and make a join in between them and then after loading calculate the Count1-Count2 on fields then you can achive this &lt;/P&gt;&lt;P&gt;Some thing like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Field, Count1&lt;/P&gt;&lt;P&gt;A,1&lt;/P&gt;&lt;P&gt;B,2&lt;/P&gt;&lt;P&gt;C,3&lt;/P&gt;&lt;P&gt;D,4&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[ &lt;/P&gt;&lt;P&gt;Field, Count2&lt;/P&gt;&lt;P&gt;A,5&lt;/P&gt;&lt;P&gt;B,3&lt;/P&gt;&lt;P&gt;C,8&lt;/P&gt;&lt;P&gt;D,9&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 19:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Writing-formula-Subtracting-Count-between-2-tables/m-p/254837#M1185945</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-10-17T19:26:59Z</dc:date>
    </item>
    <item>
      <title>Writing formula. Subtracting Count between 2 tables.</title>
      <link>https://community.qlik.com/t5/QlikView/Writing-formula-Subtracting-Count-between-2-tables/m-p/254838#M1185946</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;JJ&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;Table1:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Field, Count1&lt;/P&gt;&lt;P&gt;A,1&lt;/P&gt;&lt;P&gt;B,2&lt;/P&gt;&lt;P&gt;C,3&lt;/P&gt;&lt;P&gt;D,4] ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left join(Table1)&lt;/P&gt;&lt;P&gt;Load *&amp;nbsp;&amp;nbsp; Inline [&lt;/P&gt;&lt;P&gt; Field, Count2&lt;/P&gt;&lt;P&gt;A,5&lt;/P&gt;&lt;P&gt;B,3&lt;/P&gt;&lt;P&gt;C,8&lt;/P&gt;&lt;P&gt;D,9];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * , Count1-Count2 as Diff &lt;/P&gt;&lt;P&gt;Resident Table1 ;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 19:29:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Writing-formula-Subtracting-Count-between-2-tables/m-p/254838#M1185946</guid>
      <dc:creator />
      <dc:date>2011-10-17T19:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Writing formula. Subtracting Count between 2 tables.</title>
      <link>https://community.qlik.com/t5/QlikView/Writing-formula-Subtracting-Count-between-2-tables/m-p/254839#M1185947</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;In load also you can do this like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Field, Count1&lt;/P&gt;&lt;P&gt;A,1&lt;/P&gt;&lt;P&gt;B,2&lt;/P&gt;&lt;P&gt;C,3&lt;/P&gt;&lt;P&gt;D,4&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Join &lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[ &lt;/P&gt;&lt;P&gt;Field, Count2&lt;/P&gt;&lt;P&gt;A,5&lt;/P&gt;&lt;P&gt;B,3&lt;/P&gt;&lt;P&gt;C,8&lt;/P&gt;&lt;P&gt;D,9&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;Field,&lt;/P&gt;&lt;P&gt;Count1-Count2 as DiffCount&lt;/P&gt;&lt;P&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 19:31:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Writing-formula-Subtracting-Count-between-2-tables/m-p/254839#M1185947</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-10-17T19:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Writing formula. Subtracting Count between 2 tables.</title>
      <link>https://community.qlik.com/t5/QlikView/Writing-formula-Subtracting-Count-between-2-tables/m-p/254840#M1185948</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;Hope you got correct answer from this if so mark this post as correct or help full so other can see it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 20:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Writing-formula-Subtracting-Count-between-2-tables/m-p/254840#M1185948</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-10-17T20:28:54Z</dc:date>
    </item>
    <item>
      <title>Writing formula. Subtracting Count between 2 tables.</title>
      <link>https://community.qlik.com/t5/QlikView/Writing-formula-Subtracting-Count-between-2-tables/m-p/254841#M1185949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the soultion above. I Have another case where the Field is not same, as in the name is same but in table1 and table 2 names are like ABC, abc. The problem with the uppercase and lowercase. How can we resolve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 21:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Writing-formula-Subtracting-Count-between-2-tables/m-p/254841#M1185949</guid>
      <dc:creator />
      <dc:date>2011-10-17T21:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Writing formula. Subtracting Count between 2 tables.</title>
      <link>https://community.qlik.com/t5/QlikView/Writing-formula-Subtracting-Count-between-2-tables/m-p/254842#M1185950</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;Thanks You can rename the field like Rename field abc to ABC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 03:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Writing-formula-Subtracting-Count-between-2-tables/m-p/254842#M1185950</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-10-18T03:54:52Z</dc:date>
    </item>
  </channel>
</rss>

