<?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: Sumif using calculated columns for if conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sumif-using-calculated-columns-for-if-conditions/m-p/1772039#M718133</link>
    <description>&lt;P&gt;Ah, that's really helpful - many thanks. I can't open the attachment it turns out given personal ed of qlikview, but I've imported using your script and created the table: so dimension as Months_since_joined1, Total Initial Balance =sum(Balance*first_entry) and Total Paid Amount =&amp;nbsp;sum(if(Months_since_joined=Months_since_joined1, Paid_Amount)). Let me know if there was a different tack you took.&lt;/P&gt;&lt;P&gt;Just to double check - there's no way to achieve a similar outcome in the chart expressions without the script amendment as far as you're aware?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jan 2021 19:14:37 GMT</pubDate>
    <dc:creator>MDH1</dc:creator>
    <dc:date>2021-01-05T19:14:37Z</dc:date>
    <item>
      <title>Sumif using calculated columns for if conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Sumif-using-calculated-columns-for-if-conditions/m-p/1771981#M718131</link>
      <description>&lt;P&gt;I'm pretty new to Qlikview, and having searched around the discussion boards for a few days and trying various approaches am still hitting a brick wall, so hoping somebody can help me out.&lt;/P&gt;&lt;P&gt;I've mocked up in Excel what I'm trying to get Qlikview to do - it's the RHS table I'm trying to produce, with the Total Initial Balance column being the one I'm struggling with. I don't seem to be able to do a lookup on the Balance column in table 1 based on the date ranges in each row of table 2.&lt;/P&gt;&lt;P&gt;i.e. If I put in specific dates, the below expression does what I'd expect (in the chart table object in the .qvw attached) for the Total_Initial_Balance column.&lt;/P&gt;&lt;P&gt;=sum(Total if('01/01/2019'&amp;lt;= JoinedMonth and JoinedMonth &amp;lt;= '01/01/2020' and first_entry=1, Balance))&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I try and use the Min and Max dates in each row instead of constant dates, it just returns zeroes.&lt;/P&gt;&lt;P&gt;=sum(Total if(Min_JoinedMnth&amp;lt;= JoinedMonth and JoinedMonth &amp;lt;= Max_JoinedMnth and first_entry=1, Balance))&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried various approaches with set expressions etc, but no luck as yet.&lt;/P&gt;&lt;P&gt;If anybody has any ideas I'd be grateful.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:38:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sumif-using-calculated-columns-for-if-conditions/m-p/1771981#M718131</guid>
      <dc:creator>MDH1</dc:creator>
      <dc:date>2024-11-16T17:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sumif using calculated columns for if conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Sumif-using-calculated-columns-for-if-conditions/m-p/1772030#M718132</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;BR /&gt;your script should look something like this&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table1:
LOAD Customer_ID, 
     JoinedMonth, 
     Months_since_joined, 
     Balance, 
     [Paid Amount], 
     [first entry]
  FROM
[C:\Users\liron\Downloads\Example_Calc.xlsx]
(ooxml, embedded labels, header is 2 lines, table is Sheet1);

Table2:
 LOAD  Months_since_joined1, 
     JoinedMonth_Max, 
     JoinedMonth_Min
  FROM
[C:\Users\liron\Downloads\Example_Calc.xlsx]
(ooxml, embedded labels, header is 2 lines, table is Sheet1);


IntervalMatch (JoinedMonth) load JoinedMonth_Min,JoinedMonth_Max resident Table2;&lt;/LI-CODE&gt;&lt;P&gt;check out the attach app&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 18:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sumif-using-calculated-columns-for-if-conditions/m-p/1772030#M718132</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2021-01-05T18:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sumif using calculated columns for if conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Sumif-using-calculated-columns-for-if-conditions/m-p/1772039#M718133</link>
      <description>&lt;P&gt;Ah, that's really helpful - many thanks. I can't open the attachment it turns out given personal ed of qlikview, but I've imported using your script and created the table: so dimension as Months_since_joined1, Total Initial Balance =sum(Balance*first_entry) and Total Paid Amount =&amp;nbsp;sum(if(Months_since_joined=Months_since_joined1, Paid_Amount)). Let me know if there was a different tack you took.&lt;/P&gt;&lt;P&gt;Just to double check - there's no way to achieve a similar outcome in the chart expressions without the script amendment as far as you're aware?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 19:14:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sumif-using-calculated-columns-for-if-conditions/m-p/1772039#M718133</guid>
      <dc:creator>MDH1</dc:creator>
      <dc:date>2021-01-05T19:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sumif using calculated columns for if conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Sumif-using-calculated-columns-for-if-conditions/m-p/1772144#M718134</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;BR /&gt;you might be able to create a calculation in the chart but it will have a performance impact.&lt;BR /&gt;as rule of thumb if you can connect tables in the script you should do it, as it give better performance and give your users more option to filter the data&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 08:54:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sumif-using-calculated-columns-for-if-conditions/m-p/1772144#M718134</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2021-01-06T08:54:02Z</dc:date>
    </item>
  </channel>
</rss>

