<?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: Sum if across tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-if-across-tables/m-p/2156642#M1225109</link>
    <description>&lt;P&gt;you don't need to use sumifs try this ,&lt;/P&gt;
&lt;P&gt;Table1:&lt;BR /&gt;load date#(period_start_date,'DD-MM-YYYY') as period_start_date,Amount &lt;BR /&gt;Inline&lt;BR /&gt;[&lt;BR /&gt;period_start_date ,Amount&lt;BR /&gt;15-09-2023 , 21651465 &lt;BR /&gt;16-09-2023 ,3212 &lt;BR /&gt;10-10-2023 ,3321 &lt;BR /&gt;30-10-2023 ,454566 &lt;BR /&gt;11-11-2023 ,2546 &lt;BR /&gt;13-11-2023 ,2246 &lt;BR /&gt;14-11-2023 ,668863 &lt;BR /&gt;];&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Table2:&lt;BR /&gt;load Month,sum(Amount) as Result group by Month;&lt;BR /&gt;load &lt;BR /&gt;date(monthstart(period_start_date),'DD-MMM-YY') as Month,&lt;BR /&gt;Amount&lt;BR /&gt;resident Table1 ;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ahidhar_0-1703759539609.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/126230i7DA2E9BEF4BC96B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ahidhar_0-1703759539609.png" alt="Ahidhar_0-1703759539609.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Dec 2023 10:34:06 GMT</pubDate>
    <dc:creator>Ahidhar</dc:creator>
    <dc:date>2023-12-28T10:34:06Z</dc:date>
    <item>
      <title>Sum if across tables</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-across-tables/m-p/2155789#M1225097</link>
      <description>&lt;P&gt;Hello, I’m relatively new to Qlik but have an app now with a table of raw data about 1000 records.&amp;nbsp;&lt;BR /&gt;each record has a period_start_date field and an associated $ amount of value.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;in a second table that I’ve created with the load editor, I have a date in each month going forward a year (dynamically created with addmonth).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I want to be able to add a column to my second table that returns the sum of the $ value for any record where it’s period_start_date falls within the month of the date in the second table.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;assuming I need a join here? Would l&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 12:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-across-tables/m-p/2155789#M1225097</guid>
      <dc:creator>ColdSpark</dc:creator>
      <dc:date>2023-12-22T12:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sum if across tables</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-across-tables/m-p/2155797#M1225098</link>
      <description>&lt;P&gt;If you add a new column with end of month, you could maybe use intervalmatch?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 13:42:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-across-tables/m-p/2155797#M1225098</guid>
      <dc:creator>vincent_ardiet_</dc:creator>
      <dc:date>2023-12-22T13:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sum if across tables</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-across-tables/m-p/2156158#M1225104</link>
      <description>&lt;P&gt;Thanks Vincent, in this case though I want to essentially run what would be a SUMIFS in excel so I'm not sure interval match would work in this case? I've attached an excel file showing what I'd like to achieve to hopefully help folks understand where I'm at!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 10:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-across-tables/m-p/2156158#M1225104</guid>
      <dc:creator>ColdSpark</dc:creator>
      <dc:date>2023-12-26T10:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sum if across tables</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-across-tables/m-p/2156625#M1225108</link>
      <description>&lt;P&gt;For me this should work, you add a period_end_date column in your raw data table like:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;MonthEnd(period_start_date) as period_end_date&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;And then you can use interval match to join your table Months.&lt;BR /&gt;&lt;BR /&gt;An other quick win solution could also be to just add a month field to your raw data table:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;MonthStart(period_start_date) as Month&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 10:02:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-across-tables/m-p/2156625#M1225108</guid>
      <dc:creator>vincent_ardiet_</dc:creator>
      <dc:date>2023-12-28T10:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sum if across tables</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-across-tables/m-p/2156642#M1225109</link>
      <description>&lt;P&gt;you don't need to use sumifs try this ,&lt;/P&gt;
&lt;P&gt;Table1:&lt;BR /&gt;load date#(period_start_date,'DD-MM-YYYY') as period_start_date,Amount &lt;BR /&gt;Inline&lt;BR /&gt;[&lt;BR /&gt;period_start_date ,Amount&lt;BR /&gt;15-09-2023 , 21651465 &lt;BR /&gt;16-09-2023 ,3212 &lt;BR /&gt;10-10-2023 ,3321 &lt;BR /&gt;30-10-2023 ,454566 &lt;BR /&gt;11-11-2023 ,2546 &lt;BR /&gt;13-11-2023 ,2246 &lt;BR /&gt;14-11-2023 ,668863 &lt;BR /&gt;];&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Table2:&lt;BR /&gt;load Month,sum(Amount) as Result group by Month;&lt;BR /&gt;load &lt;BR /&gt;date(monthstart(period_start_date),'DD-MMM-YY') as Month,&lt;BR /&gt;Amount&lt;BR /&gt;resident Table1 ;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ahidhar_0-1703759539609.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/126230i7DA2E9BEF4BC96B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ahidhar_0-1703759539609.png" alt="Ahidhar_0-1703759539609.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 10:34:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-across-tables/m-p/2156642#M1225109</guid>
      <dc:creator>Ahidhar</dc:creator>
      <dc:date>2023-12-28T10:34:06Z</dc:date>
    </item>
  </channel>
</rss>

