<?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: Comparing 2 Datasets and find 3 different values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Comparing-2-Datasets-and-find-3-different-values/m-p/1959119#M79061</link>
    <description>&lt;P&gt;// test data&lt;/P&gt;
&lt;P&gt;ThisMonth:&lt;BR /&gt;LOAD * inline [&lt;BR /&gt;Server&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;4&lt;BR /&gt;5&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;PrevMonth:&lt;BR /&gt;NOCONCATENATE LOAD * inline [&lt;BR /&gt;Server&lt;BR /&gt;4&lt;BR /&gt;5&lt;BR /&gt;6&lt;BR /&gt;7&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Compare:&lt;BR /&gt;LOAD *, 1 as ThisMonth RESIDENT ThisMonth;&lt;BR /&gt;JOIN (Compare) LOAD *, 1 as PrevMonth RESIDENT PrevMonth;&lt;/P&gt;
&lt;P&gt;LEFT JOIN (Compare) LOAD &lt;BR /&gt;Server,&lt;BR /&gt;IF(ThisMonth AND PrevMonth, 'Unchanged',&lt;BR /&gt;IF(ThisMonth, 'New',&lt;BR /&gt;'Remediated')) AS Status&lt;BR /&gt;RESIDENT Compare;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="maxgro_0-1658434271141.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84808iE6D7F589F9AE5CBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="maxgro_0-1658434271141.png" alt="maxgro_0-1658434271141.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2022 20:12:12 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2022-07-21T20:12:12Z</dc:date>
    <item>
      <title>Comparing 2 Datasets and find 3 different values</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-2-Datasets-and-find-3-different-values/m-p/1959104#M79059</link>
      <description>&lt;P&gt;I have 2 Data set. this month file and previous month file. Both files has same column names. Server name is the Primary Key for both the excels.&lt;/P&gt;
&lt;P&gt;Now I need to compare this month file with previous month file and find out&lt;/P&gt;
&lt;P&gt;1)how many servers newly present in this month file(not exist in previous month file) and mark is as new server count&lt;/P&gt;
&lt;P&gt;2)how many servers unchanged between previous month file and this month file and mark it as unchanged server count&lt;/P&gt;
&lt;P&gt;3)how many servers exist in previous month file and not exist in this month file and mark it as Remediated server count.&lt;/P&gt;
&lt;P&gt;Any logic to achieve this&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 19:03:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-2-Datasets-and-find-3-different-values/m-p/1959104#M79059</guid>
      <dc:creator>Karthick30</dc:creator>
      <dc:date>2022-07-21T19:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 Datasets and find 3 different values</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-2-Datasets-and-find-3-different-values/m-p/1959119#M79061</link>
      <description>&lt;P&gt;// test data&lt;/P&gt;
&lt;P&gt;ThisMonth:&lt;BR /&gt;LOAD * inline [&lt;BR /&gt;Server&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;4&lt;BR /&gt;5&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;PrevMonth:&lt;BR /&gt;NOCONCATENATE LOAD * inline [&lt;BR /&gt;Server&lt;BR /&gt;4&lt;BR /&gt;5&lt;BR /&gt;6&lt;BR /&gt;7&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Compare:&lt;BR /&gt;LOAD *, 1 as ThisMonth RESIDENT ThisMonth;&lt;BR /&gt;JOIN (Compare) LOAD *, 1 as PrevMonth RESIDENT PrevMonth;&lt;/P&gt;
&lt;P&gt;LEFT JOIN (Compare) LOAD &lt;BR /&gt;Server,&lt;BR /&gt;IF(ThisMonth AND PrevMonth, 'Unchanged',&lt;BR /&gt;IF(ThisMonth, 'New',&lt;BR /&gt;'Remediated')) AS Status&lt;BR /&gt;RESIDENT Compare;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="maxgro_0-1658434271141.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84808iE6D7F589F9AE5CBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="maxgro_0-1658434271141.png" alt="maxgro_0-1658434271141.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 20:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-2-Datasets-and-find-3-different-values/m-p/1959119#M79061</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2022-07-21T20:12:12Z</dc:date>
    </item>
  </channel>
</rss>

