<?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: Need to compare 2 values from different table with same structure in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Need-to-compare-2-values-from-different-table-with-same/m-p/1791334#M61873</link>
    <description>&lt;P&gt;Thanks ..it's working&lt;/P&gt;</description>
    <pubDate>Mon, 15 Mar 2021 10:05:33 GMT</pubDate>
    <dc:creator>noviceneil</dc:creator>
    <dc:date>2021-03-15T10:05:33Z</dc:date>
    <item>
      <title>Need to compare 2 values from different table with same structure</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-compare-2-values-from-different-table-with-same/m-p/1789636#M61701</link>
      <description>&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;I have 2 tables as below,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TABLE_PERIOD1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;KEY&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PERIOD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VALUE&lt;/P&gt;&lt;P&gt;001_AB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 310121&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10000&lt;/P&gt;&lt;P&gt;001_XY&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 310121&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20000&lt;/P&gt;&lt;P&gt;001_CD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;310121&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 55000&lt;/P&gt;&lt;P&gt;001_PQ&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 310121&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 65000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TABLE_PERIOD2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;KEY&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PERIOD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VALUE&lt;/P&gt;&lt;P&gt;001_AB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;280221&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12000&lt;/P&gt;&lt;P&gt;001_XY&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 280221&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 24000&lt;/P&gt;&lt;P&gt;001_CD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 280221&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;51000&lt;/P&gt;&lt;P&gt;001_PQ&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 280221&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 75000&lt;/P&gt;&lt;P&gt;I have loaded both tables into a single table&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now based on the key value, I need to show the difference in a separate table: like,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESULT TABLE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;KEY&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CURRENT_VALUE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PREVIOUS_VALUE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DIFFERECE in %&lt;/P&gt;&lt;P&gt;001_AB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (12000-1000)/10000&lt;/P&gt;&lt;P&gt;001_XY&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;24000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (24000=20000)/20000&lt;/P&gt;&lt;P&gt;001_CD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;51000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 55000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (51000-55000)/55000&lt;/P&gt;&lt;P&gt;001_PQ&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;65000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(75000-65000)/65000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you please help me how can I show like the result table?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 14:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-compare-2-values-from-different-table-with-same/m-p/1789636#M61701</guid>
      <dc:creator>noviceneil</dc:creator>
      <dc:date>2021-03-09T14:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare 2 values from different table with same structure</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-compare-2-values-from-different-table-with-same/m-p/1789647#M61703</link>
      <description>&lt;P&gt;Do the following Set Analyses satisfy your use case:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="duchezbr_0-1615301762584.png" style="width: 690px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/50743iCDFCF7A9506F0C7A/image-dimensions/690x107?v=v2" width="690" height="107" role="button" title="duchezbr_0-1615301762584.png" alt="duchezbr_0-1615301762584.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 14:56:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-compare-2-values-from-different-table-with-same/m-p/1789647#M61703</guid>
      <dc:creator>duchezbr</dc:creator>
      <dc:date>2021-03-09T14:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare 2 values from different table with same structure</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-compare-2-values-from-different-table-with-same/m-p/1789669#M61708</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Thanks a lot.I will try and let you know....just one additional question,&lt;/P&gt;&lt;P&gt;If I create 2 new master items with the formula(Set analysis) you have suggested and create an additional one to find out the difference for these 2 master items, that's&amp;nbsp; does not work? often I find the master items can;t be referenced/used inside another aster items..is that expected?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 15:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-compare-2-values-from-different-table-with-same/m-p/1789669#M61708</guid>
      <dc:creator>noviceneil</dc:creator>
      <dc:date>2021-03-09T15:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare 2 values from different table with same structure</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-compare-2-values-from-different-table-with-same/m-p/1789681#M61710</link>
      <description>&lt;P&gt;Beginning with the Feb 21 release, you can reference Master Measures within expressions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 15:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-compare-2-values-from-different-table-with-same/m-p/1789681#M61710</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2021-03-09T15:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare 2 values from different table with same structure</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-compare-2-values-from-different-table-with-same/m-p/1789867#M61713</link>
      <description>&lt;P&gt;One Solution is,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TABLE_PERIOD2:
LOAD KEY, VALUE As CURRENT_VALUE;
LOAD * INLINE [
KEY, PERIOD, VALUE
001_AB, 280221, 12000
001_XY, 280221, 24000
001_CD, 280221, 51000
001_PQ, 280221, 75000
];

Left Join(TABLE_PERIOD2)

LOAD KEY, VALUE As PREVIOUS_VALUE;
LOAD * INLINE [
KEY, PERIOD, VALUE
001_AB, 310121, 10000
001_XY, 310121, 20000
001_CD, 310121, 55000
001_PQ, 310121, 65000
];

Left Join(TABLE_PERIOD2)
LOAD KEY, (CURRENT_VALUE - PREVIOUS_VALUE)/PREVIOUS_VALUE As [DIFFERECE in %]
Resident TABLE_PERIOD2
;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 Mar 2021 03:45:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-compare-2-values-from-different-table-with-same/m-p/1789867#M61713</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-03-10T03:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare 2 values from different table with same structure</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-compare-2-values-from-different-table-with-same/m-p/1789869#M61714</link>
      <description>&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV38.PNG" style="width: 349px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/50812i8D1770F7DDEA7AAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV38.PNG" alt="commQV38.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 03:45:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-compare-2-values-from-different-table-with-same/m-p/1789869#M61714</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-03-10T03:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare 2 values from different table with same structure</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-compare-2-values-from-different-table-with-same/m-p/1791258#M61864</link>
      <description>&lt;P&gt;[Data/202101_Data]:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;LINK_KEY,&lt;BR /&gt;DATA_BLOCK_CODE,&lt;BR /&gt;DATA_ROW_CODE,&lt;BR /&gt;DATA_HEADER_CODE,&lt;BR /&gt;DATA_VALUE as PREVIOUS_VALUE&lt;BR /&gt;FROM [lib://Data/202012_Data.csv]&lt;/P&gt;&lt;P&gt;(txt, utf8, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;Left Join([Data/202101_Data])&lt;BR /&gt;LOAD&lt;BR /&gt;LINK_KEY,&lt;BR /&gt;DATA_BLOCK_CODE,&lt;BR /&gt;DATA_ROW_CODE,&lt;BR /&gt;DATA_HEADER_CODE,&lt;BR /&gt;DATA_VALUE as CURRENT_VALUE&lt;BR /&gt;FROM [lib://Data/202101_Data.csv]&lt;BR /&gt;(txt, utf8, embedded labels, delimiter is ',', msq);&lt;/P&gt;</description>
      <pubDate>Sun, 14 Mar 2021 19:32:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-compare-2-values-from-different-table-with-same/m-p/1791258#M61864</guid>
      <dc:creator>noviceneil</dc:creator>
      <dc:date>2021-03-14T19:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare 2 values from different table with same structure</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-compare-2-values-from-different-table-with-same/m-p/1791259#M61865</link>
      <description>&lt;P&gt;Hello&amp;nbsp; saran,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thank you...I like your solution but stuck while tried to implement. I tried with the below code but when it gets loaded, I find the CURRENT_VALUE field are all BLANK.&lt;/P&gt;&lt;P&gt;Could you please help if there is any basic mistake in my code?&lt;/P&gt;</description>
      <pubDate>Sun, 14 Mar 2021 20:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-compare-2-values-from-different-table-with-same/m-p/1791259#M61865</guid>
      <dc:creator>noviceneil</dc:creator>
      <dc:date>2021-03-14T20:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare 2 values from different table with same structure</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-compare-2-values-from-different-table-with-same/m-p/1791268#M61866</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;If the&amp;nbsp;&lt;SPAN&gt;CURRENT_VALUE is Blank, then it looks like there is no match of Keys.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please check&amp;nbsp;the Four Fields in the First Table has match in the Second Table.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 01:42:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-compare-2-values-from-different-table-with-same/m-p/1791268#M61866</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-03-15T01:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare 2 values from different table with same structure</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-compare-2-values-from-different-table-with-same/m-p/1791334#M61873</link>
      <description>&lt;P&gt;Thanks ..it's working&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 10:05:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-compare-2-values-from-different-table-with-same/m-p/1791334#M61873</guid>
      <dc:creator>noviceneil</dc:creator>
      <dc:date>2021-03-15T10:05:33Z</dc:date>
    </item>
  </channel>
</rss>

