<?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: Expression: Sumif in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-Sumif/m-p/1065285#M466656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would rather link both tables (or join them), so you can solve your table dimension filtering by just using the data model.&lt;/P&gt;&lt;P&gt;(there are other methods to show all values, even when you made selections, using set analysis).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But even if you don't change your data model, using &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Tab_2.Capture Point as dimension and this as expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(If([Tab_2.Capture Point] = [Tab_1.Capture Point], Value))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Tab_2.Capture Point&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Sum(If([Tab_2.Capture Point] = [Tab_1.Capture Point], Value))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TD bgcolor="#f5f5f5"&gt; &lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;STRONG&gt;7 &lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Costs&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;5&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Other&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jan 2016 12:33:28 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-01-25T12:33:28Z</dc:date>
    <item>
      <title>Expression: Sumif</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Sumif/m-p/1065282#M466653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All - Newbie to forum (and qlikview)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables Tab_1 and Tab_2, which are qualified (so that i can show all values in field even when selection is applied):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Tab_1.Column1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Sales,&lt;/P&gt;&lt;P&gt;Costs,&lt;/P&gt;&lt;P&gt;Other&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Tab_2.Column1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Costs,&lt;/P&gt;&lt;P&gt;Other &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like to insert a straight table in qv - using tab_2 as dimension column, and sum values where Tab_1.column1 values = Tab_2.Column1 values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been looking around and have only got as far as the following - which seems to summing total value column in Tab1&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Sum({$&amp;lt;[Tab1_Column1]=([Tab2_column1])&amp;gt;}Tab1_Value)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 12:09:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Sumif/m-p/1065282#M466653</guid>
      <dc:creator />
      <dc:date>2016-01-25T12:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Expression: Sumif</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Sumif/m-p/1065283#M466654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are showing only partial picture here, how are the two tables linked to each other?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you post a small sample QVW?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 12:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Sumif/m-p/1065283#M466654</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-25T12:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Expression: Sumif</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Sumif/m-p/1065284#M466655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks for your reply:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables: Tab_1 and Tab_2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: #000000 1px solid;"&gt;&lt;THEAD&gt;&lt;TR&gt;&lt;TH class="header" style="text-align: center; background-color: #6690bc; color: #ffffff; border: #000000 1px solid; padding: 2px;"&gt;&lt;STRONG&gt;Tab_1.Capture Point&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH class="header" style="text-align: center; background-color: #6690bc; color: #ffffff; border: #000000 1px solid; padding: 2px;"&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: #000000 1px solid; padding: 2px;"&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: #000000 1px solid; padding: 2px;"&gt;&lt;P&gt;10&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: #000000 1px solid; padding: 2px;"&gt;Costs&lt;/TD&gt;&lt;TD style="border: #000000 1px solid; padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: #000000 1px solid; padding: 2px;"&gt;Other&lt;/TD&gt;&lt;TD style="border: #000000 1px solid; padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab_2 is:&lt;/P&gt;&lt;P&gt;1) unlinked/Qualified (Very Important)&lt;/P&gt;&lt;P&gt;2) was created as an inline table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="73" style="border: #000000 1px solid;" width="168"&gt;&lt;THEAD&gt;&lt;TR&gt;&lt;TH class="header" style="text-align: center; background-color: #6690bc; color: #ffffff; border: #000000 1px solid; padding: 2px;"&gt;Tab_2.Capture Point&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: #000000 1px solid; padding: 2px;"&gt;Costs&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: #000000 1px solid; padding: 2px;"&gt;Other&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have inserted a straight table in qv - the dimensions of which are those from Tab_2.&lt;/P&gt;&lt;P&gt;I would like to sum from Tab_1 where values in Tab_1.Capture Point = values in the straight table (Tab_2.Capture Point)&lt;/P&gt;&lt;P&gt;I would prefer to use the expression builder as a means of achieving this - basically, i need a sumif(tab_1.Capture Point,tab_2.capture point,tab_1.value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 12:18:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Sumif/m-p/1065284#M466655</guid>
      <dc:creator />
      <dc:date>2016-01-25T12:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Expression: Sumif</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Sumif/m-p/1065285#M466656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would rather link both tables (or join them), so you can solve your table dimension filtering by just using the data model.&lt;/P&gt;&lt;P&gt;(there are other methods to show all values, even when you made selections, using set analysis).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But even if you don't change your data model, using &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Tab_2.Capture Point as dimension and this as expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(If([Tab_2.Capture Point] = [Tab_1.Capture Point], Value))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Tab_2.Capture Point&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Sum(If([Tab_2.Capture Point] = [Tab_1.Capture Point], Value))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TD bgcolor="#f5f5f5"&gt; &lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;STRONG&gt;7 &lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Costs&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;5&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Other&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 12:33:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Sumif/m-p/1065285#M466656</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-25T12:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Expression: Sumif</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Sumif/m-p/1065286#M466657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect - didnt think the answer was use of an if statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help today&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 12:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Sumif/m-p/1065286#M466657</guid>
      <dc:creator />
      <dc:date>2016-01-25T12:40:19Z</dc:date>
    </item>
  </channel>
</rss>

