<?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: Transpose a table with 2 filters in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Transpose-a-table-with-2-filters/m-p/2440817#M97302</link>
    <description>&lt;P&gt;youre not articluating what the business rules are, for filter2 there are some cases where there are multiple matches.&amp;nbsp; is there a relationship between the 1st and 2nd filter, for example this one:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_0-1712950864686.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164019i29F6CDAC6A54DE9E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_0-1712950864686.png" alt="edwin_0-1712950864686.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;for the first line, Num had a match - ALOB, but 2nd didnt have a match (MB) so it appears to NOT be a valid line item.&amp;nbsp; however, 2nd line has a match for Num but multiple matches for Code - does that mean if 1st and 2nd filter dont result in a match dont use, if&amp;nbsp; 2nd filter has multiple matches use 1st match, if 2nd filter has only 1 match use 2nd filter?&amp;nbsp; what are the bsuiness rules?&lt;/P&gt;</description>
    <pubDate>Fri, 12 Apr 2024 19:45:19 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2024-04-12T19:45:19Z</dc:date>
    <item>
      <title>Transpose a table with 2 filters</title>
      <link>https://community.qlik.com/t5/App-Development/Transpose-a-table-with-2-filters/m-p/2438246#M97107</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;
&lt;P&gt;I&amp;nbsp; successfully worked on a transposed table using this link&lt;/P&gt;
&lt;P&gt;&lt;A href="https://qlikviewcookbook.com/2010/05/use-cases-for-generic-load/" target="_blank"&gt;https://qlikviewcookbook.com/2010/05/use-cases-for-generic-load/&lt;/A&gt;&amp;nbsp;thanks to your help.&lt;/P&gt;
&lt;P&gt;I have now another problem since I need to add another filter. I tried mapping the same field using again the&amp;nbsp;ApplyMap function before running the generic load function.&lt;/P&gt;
&lt;P&gt;Basically, I followed these steps&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Load filter 1&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jorghino75_1-1712304059764.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/163524iB28419DD07687420/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jorghino75_1-1712304059764.png" alt="Jorghino75_1-1712304059764.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Load filter 2&lt;/LI&gt;
&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jorghino75_3-1712304088677.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/163526iBE7A62B8874C315E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jorghino75_3-1712304088677.png" alt="Jorghino75_3-1712304088677.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Load source file&lt;/LI&gt;
&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jorghino75_5-1712304121529.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/163528i3B638BC078148E49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jorghino75_5-1712304121529.png" alt="Jorghino75_5-1712304121529.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Map source file (resident) with filter 1&lt;/LI&gt;
&lt;LI&gt;Map source file&amp;nbsp;(resident) with filter 2&lt;/LI&gt;
&lt;LI&gt;Sum the hours&lt;/LI&gt;
&lt;LI&gt;Use the generic load &amp;amp; then the routing to put all the tables in one.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;However, this doesn't seem to be working.as I'm not getting all the record combination (ID+Date)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm looking to have a model like this table where the total of Hours gets calculated for each filter 1 and each filter 2 field.&lt;/P&gt;
&lt;P&gt;I'm attaching a sample file with data.&lt;/P&gt;
&lt;P&gt;Any guidance would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 08:06:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Transpose-a-table-with-2-filters/m-p/2438246#M97107</guid>
      <dc:creator>Jorghino75</dc:creator>
      <dc:date>2024-04-05T08:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose a table with 2 filters</title>
      <link>https://community.qlik.com/t5/App-Development/Transpose-a-table-with-2-filters/m-p/2440817#M97302</link>
      <description>&lt;P&gt;youre not articluating what the business rules are, for filter2 there are some cases where there are multiple matches.&amp;nbsp; is there a relationship between the 1st and 2nd filter, for example this one:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_0-1712950864686.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164019i29F6CDAC6A54DE9E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_0-1712950864686.png" alt="edwin_0-1712950864686.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;for the first line, Num had a match - ALOB, but 2nd didnt have a match (MB) so it appears to NOT be a valid line item.&amp;nbsp; however, 2nd line has a match for Num but multiple matches for Code - does that mean if 1st and 2nd filter dont result in a match dont use, if&amp;nbsp; 2nd filter has multiple matches use 1st match, if 2nd filter has only 1 match use 2nd filter?&amp;nbsp; what are the bsuiness rules?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 19:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Transpose-a-table-with-2-filters/m-p/2440817#M97302</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2024-04-12T19:45:19Z</dc:date>
    </item>
  </channel>
</rss>

