<?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: Lookup and sum values to create a table in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Lookup-and-sum-values-to-create-a-table-in-load-script/m-p/1632502#M446548</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Daryl, did Arthur or Lisa's post help you get things working?&amp;nbsp; If so, be sure to circle back and use the Accept as Solution button on the post(s) that helped you.&amp;nbsp; If you did something different, consider posting that for others, so they will know what worked, and you can mark that post using the button after you save it.&amp;nbsp; If you are still working upon things, I have a Design Blog post that might be another way to go at things, I think it may fit your scenario, but I am not sure.&amp;nbsp; I will post the main blog link as well in case you want to search that area on your own as well...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Unbalanced-n-level-hierarchies/ba-p/1474325" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Unbalanced-n-level-hierarchies/ba-p/1474325&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Bill-of-Materials/ba-p/1462792" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Bill-of-Materials/ba-p/1462792&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Added in three total, sorry, found another one that might fit, hopefully this helps you move things forward if you are still working on them.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Brett&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2019 13:08:40 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2019-10-08T13:08:40Z</dc:date>
    <item>
      <title>Lookup and sum values to create a table in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-and-sum-values-to-create-a-table-in-load-script/m-p/1628806#M446300</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;Just looking for a quick steer on how to do something. I want to create a table (C) in the load script of summed values from one table (A) based on another table (B).&lt;/P&gt;&lt;P&gt;So for example say Table A is all fruit sales for multiple products, suppliers and months, like this:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Order&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Product&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Supplier&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Month&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Apples&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Supplier1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Jan-18&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;120&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Apples&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Supplier1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Jan-18&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;65&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Table B is effectively a subset of products, suppliers and months (without the sales volume) but distinct rows&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Product&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Supplier&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Month&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Apples&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Supplier1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Jan-18&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how can I look up multiple fields from B (Apple, Supplier1,Jan 2018) to find a matching rows in A and sum the relevant Sales Volumes to create a new table C. Repeating for other product supplier month combinations (all rows in table B basically).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Giving me Table C:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Product&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Supplier&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Month&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;SalesTotal&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Apples&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Supplier1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Jan-18&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;185&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What method/functions should I use? Are MappingLoad/ApplyMap are useful here or is it a Sum If type expression (as it would be in Excel)? Any help appreciated!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-and-sum-values-to-create-a-table-in-load-script/m-p/1628806#M446300</guid>
      <dc:creator>Dazzler</dc:creator>
      <dc:date>2024-11-16T20:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup and sum values to create a table in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-and-sum-values-to-create-a-table-in-load-script/m-p/1628827#M446303</link>
      <description>&lt;P&gt;There you go:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/t5/image/serverpage/image-id/20216i772B9AB723D809E1/image-size/medium?v=1.0&amp;amp;px=-1" border="0" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Load the supplier table.&lt;/LI&gt;&lt;LI&gt;Left keep Supplier table with the Order table.&lt;/LI&gt;&lt;LI&gt;In this example, I have added a new row(Oranges) in Order table so that the result after left keeping with Supplier table can be shown.&lt;/LI&gt;&lt;LI&gt;At front end, create a straight table and create sum(Sales) as measures.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Refer qvw attached as reference.&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Arthur Fong&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 00:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-and-sum-values-to-create-a-table-in-load-script/m-p/1628827#M446303</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-09-27T00:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup and sum values to create a table in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-and-sum-values-to-create-a-table-in-load-script/m-p/1628830#M446304</link>
      <description>TableC:&lt;BR /&gt;Load	Product,&lt;BR /&gt;	Supplier,&lt;BR /&gt;    Month,&lt;BR /&gt;    Sum(Sales) as TotalSales&lt;BR /&gt;Resident TableA&lt;BR /&gt;Group by Product, Supplier, Month;&lt;BR /&gt;&lt;BR /&gt;This will give you a synthetic key, but will be correct. I do not understand the purpose of Table B</description>
      <pubDate>Fri, 27 Sep 2019 00:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-and-sum-values-to-create-a-table-in-load-script/m-p/1628830#M446304</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2019-09-27T00:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup and sum values to create a table in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-and-sum-values-to-create-a-table-in-load-script/m-p/1632502#M446548</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Daryl, did Arthur or Lisa's post help you get things working?&amp;nbsp; If so, be sure to circle back and use the Accept as Solution button on the post(s) that helped you.&amp;nbsp; If you did something different, consider posting that for others, so they will know what worked, and you can mark that post using the button after you save it.&amp;nbsp; If you are still working upon things, I have a Design Blog post that might be another way to go at things, I think it may fit your scenario, but I am not sure.&amp;nbsp; I will post the main blog link as well in case you want to search that area on your own as well...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Unbalanced-n-level-hierarchies/ba-p/1474325" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Unbalanced-n-level-hierarchies/ba-p/1474325&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Bill-of-Materials/ba-p/1462792" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Bill-of-Materials/ba-p/1462792&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Added in three total, sorry, found another one that might fit, hopefully this helps you move things forward if you are still working on them.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Brett&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 13:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-and-sum-values-to-create-a-table-in-load-script/m-p/1632502#M446548</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-10-08T13:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup and sum values to create a table in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-and-sum-values-to-create-a-table-in-load-script/m-p/1632519#M446551</link>
      <description>Sorry I haven't had chance to respond as have been asked to work on something else. Thank you for the replies. I will respond as soon as I get chance to look at them properly.&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Oct 2019 13:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-and-sum-values-to-create-a-table-in-load-script/m-p/1632519#M446551</guid>
      <dc:creator>Dazzler</dc:creator>
      <dc:date>2019-10-08T13:29:48Z</dc:date>
    </item>
  </channel>
</rss>

