<?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: Automatic match rows and columns between 2 files in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Automatic-match-rows-and-columns-between-2-files/m-p/1791292#M1210671</link>
    <description>&lt;P&gt;Hi Fitus,&lt;/P&gt;&lt;P&gt;Might be try like below&lt;/P&gt;&lt;P&gt;FACT:&lt;BR /&gt;Load *, Dim&amp;amp;'|'&amp;amp;Budget&amp;amp;'|'&amp;amp;Expenses as Key Inline&lt;BR /&gt;[&lt;BR /&gt;Dim, Budget, Expenses&lt;BR /&gt;Jan 21, 5, 5&lt;BR /&gt;Feb 21, 10, 7&lt;BR /&gt;Mar 21, 15, 16&lt;BR /&gt;Apr 21, 20,&lt;BR /&gt;May 21, 30&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FACT1:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load *, Dim&amp;amp;'|'&amp;amp;Budget&amp;amp;'|'&amp;amp;Expenses as Key Inline&lt;BR /&gt;[&lt;BR /&gt;Dim, Budget, Expenses&lt;BR /&gt;Jan 21, 5, 5&lt;BR /&gt;Feb 21, 10, 7&lt;BR /&gt;Mar 21, 15, 16&lt;BR /&gt;Apr 21, 20,&lt;BR /&gt;May 21, 25&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;set vList=;&lt;BR /&gt;set vList1 = ;&lt;BR /&gt;set vDelimiter=CHR(13);&lt;/P&gt;&lt;P&gt;for i = 1 to NoOfFields('FACT')&lt;/P&gt;&lt;P&gt;let vFieldName = FieldName($(i), 'FACT');&lt;/P&gt;&lt;P&gt;let vList = '$(vList)' &amp;amp; $(vDelimiter) &amp;amp; '$(vFieldName)';&lt;/P&gt;&lt;P&gt;next i&lt;/P&gt;&lt;P&gt;for i = 1 to NoOfFields('FACT1')&lt;/P&gt;&lt;P&gt;let vFieldName1 = FieldName($(i), 'FACT1');&lt;/P&gt;&lt;P&gt;let vList1 = '$(vList1)' &amp;amp; $(vDelimiter) &amp;amp; '$(vFieldName1)';&lt;/P&gt;&lt;P&gt;next i&lt;/P&gt;&lt;P&gt;TMP:&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;COLUMN_NAME1&lt;/P&gt;&lt;P&gt;$(vList)&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;MapTable2:&lt;BR /&gt;Mapping&lt;BR /&gt;load *,1 as Flag inline [&lt;/P&gt;&lt;P&gt;COLUMN_NAME2&lt;/P&gt;&lt;P&gt;$(vList1)&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;COLUMNS:&lt;/P&gt;&lt;P&gt;noconcatenate&lt;BR /&gt;load COLUMN_NAME1, ApplyMap('MapTable2', COLUMN_NAME1, 0) as ColumnFlag&lt;BR /&gt;resident TMP&lt;BR /&gt;order by COLUMN_NAME1 asc;&lt;/P&gt;&lt;P&gt;drop table TMP;&lt;/P&gt;&lt;P&gt;Join(FACT)&lt;BR /&gt;Load Key, 1 as ValueFlag Resident FACT1;&lt;/P&gt;&lt;P&gt;DROP Table FACT1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here,&amp;nbsp;ColumnFlag used to compare the column names are same or not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;ValueFlag used to compare the values are same or not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of inline, u can replace with ur source.&lt;/P&gt;&lt;P&gt;Hope it gives some idea for you to proceed.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Mar 2021 07:03:04 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2021-03-15T07:03:04Z</dc:date>
    <item>
      <title>Automatic match rows and columns between 2 files</title>
      <link>https://community.qlik.com/t5/QlikView/Automatic-match-rows-and-columns-between-2-files/m-p/1791251#M1210664</link>
      <description>&lt;P&gt;Hello i need a script that automatically reads column and rows between 2 files (2 excel or qvd for example), that must have same data, same number of rows and column. The script must:&lt;/P&gt;&lt;P&gt;1) Reads the columns and check if the 2 files have the same number of columns.&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;Reads the rows and check if the 2 files have the same number of rows.&lt;/P&gt;&lt;P&gt;3) Check if every row of the second file is the same of the first file.&lt;/P&gt;&lt;P&gt;Imagine the files have 80 column and 1000 rows (For example) so i can't use load in line, but i need some automatic script&lt;/P&gt;&lt;P&gt;that use "for each" or something similar.&lt;/P&gt;&lt;P&gt;Thanks Guys.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Mar 2021 17:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Automatic-match-rows-and-columns-between-2-files/m-p/1791251#M1210664</guid>
      <dc:creator>Fitus9092</dc:creator>
      <dc:date>2021-03-14T17:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic match rows and columns between 2 files</title>
      <link>https://community.qlik.com/t5/QlikView/Automatic-match-rows-and-columns-between-2-files/m-p/1791292#M1210671</link>
      <description>&lt;P&gt;Hi Fitus,&lt;/P&gt;&lt;P&gt;Might be try like below&lt;/P&gt;&lt;P&gt;FACT:&lt;BR /&gt;Load *, Dim&amp;amp;'|'&amp;amp;Budget&amp;amp;'|'&amp;amp;Expenses as Key Inline&lt;BR /&gt;[&lt;BR /&gt;Dim, Budget, Expenses&lt;BR /&gt;Jan 21, 5, 5&lt;BR /&gt;Feb 21, 10, 7&lt;BR /&gt;Mar 21, 15, 16&lt;BR /&gt;Apr 21, 20,&lt;BR /&gt;May 21, 30&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FACT1:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load *, Dim&amp;amp;'|'&amp;amp;Budget&amp;amp;'|'&amp;amp;Expenses as Key Inline&lt;BR /&gt;[&lt;BR /&gt;Dim, Budget, Expenses&lt;BR /&gt;Jan 21, 5, 5&lt;BR /&gt;Feb 21, 10, 7&lt;BR /&gt;Mar 21, 15, 16&lt;BR /&gt;Apr 21, 20,&lt;BR /&gt;May 21, 25&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;set vList=;&lt;BR /&gt;set vList1 = ;&lt;BR /&gt;set vDelimiter=CHR(13);&lt;/P&gt;&lt;P&gt;for i = 1 to NoOfFields('FACT')&lt;/P&gt;&lt;P&gt;let vFieldName = FieldName($(i), 'FACT');&lt;/P&gt;&lt;P&gt;let vList = '$(vList)' &amp;amp; $(vDelimiter) &amp;amp; '$(vFieldName)';&lt;/P&gt;&lt;P&gt;next i&lt;/P&gt;&lt;P&gt;for i = 1 to NoOfFields('FACT1')&lt;/P&gt;&lt;P&gt;let vFieldName1 = FieldName($(i), 'FACT1');&lt;/P&gt;&lt;P&gt;let vList1 = '$(vList1)' &amp;amp; $(vDelimiter) &amp;amp; '$(vFieldName1)';&lt;/P&gt;&lt;P&gt;next i&lt;/P&gt;&lt;P&gt;TMP:&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;COLUMN_NAME1&lt;/P&gt;&lt;P&gt;$(vList)&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;MapTable2:&lt;BR /&gt;Mapping&lt;BR /&gt;load *,1 as Flag inline [&lt;/P&gt;&lt;P&gt;COLUMN_NAME2&lt;/P&gt;&lt;P&gt;$(vList1)&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;COLUMNS:&lt;/P&gt;&lt;P&gt;noconcatenate&lt;BR /&gt;load COLUMN_NAME1, ApplyMap('MapTable2', COLUMN_NAME1, 0) as ColumnFlag&lt;BR /&gt;resident TMP&lt;BR /&gt;order by COLUMN_NAME1 asc;&lt;/P&gt;&lt;P&gt;drop table TMP;&lt;/P&gt;&lt;P&gt;Join(FACT)&lt;BR /&gt;Load Key, 1 as ValueFlag Resident FACT1;&lt;/P&gt;&lt;P&gt;DROP Table FACT1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here,&amp;nbsp;ColumnFlag used to compare the column names are same or not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;ValueFlag used to compare the values are same or not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of inline, u can replace with ur source.&lt;/P&gt;&lt;P&gt;Hope it gives some idea for you to proceed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 07:03:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Automatic-match-rows-and-columns-between-2-files/m-p/1791292#M1210671</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-03-15T07:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic match rows and columns between 2 files</title>
      <link>https://community.qlik.com/t5/QlikView/Automatic-match-rows-and-columns-between-2-files/m-p/1791525#M1210701</link>
      <description>&lt;P&gt;Many thanks for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 17:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Automatic-match-rows-and-columns-between-2-files/m-p/1791525#M1210701</guid>
      <dc:creator>Fitus9092</dc:creator>
      <dc:date>2021-03-15T17:30:49Z</dc:date>
    </item>
  </channel>
</rss>

