<?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: get value from row where x=y in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/expression-get-value-from-row-where-x-y/m-p/451035#M486911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about sum(total &amp;lt;ProductGroup&amp;gt; Units)/2 instead of your if statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2013 17:57:16 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-02-19T17:57:16Z</dc:date>
    <item>
      <title>expression: get value from row where x=y</title>
      <link>https://community.qlik.com/t5/QlikView/expression-get-value-from-row-where-x-y/m-p/451034#M486910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to peek some data within one table and don't know how to continue. Explains best on an example:&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;ProductGroup&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Units&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;UnitsGroup&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;GroupA&lt;/TD&gt;&lt;TD&gt;GroupA&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;GroupA&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;GroupA&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;GroupA&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;GroupD&lt;/TD&gt;&lt;TD&gt;GroupD&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;GroupD&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD&gt;GroupD&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok, so in one column(UnitsGroup) I want to see the Values for a Group and my approach is looking for values where Product=ProductGroup&lt;/P&gt;&lt;P&gt;I start with =if(Product=ProductGroup,sum(Units),)&lt;/P&gt;&lt;P&gt;and now I am stucked with the ELSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance and best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 17:52:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-get-value-from-row-where-x-y/m-p/451034#M486910</guid>
      <dc:creator>ni_avoss</dc:creator>
      <dc:date>2013-02-19T17:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: expression: get value from row where x=y</title>
      <link>https://community.qlik.com/t5/QlikView/expression-get-value-from-row-where-x-y/m-p/451035#M486911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about sum(total &amp;lt;ProductGroup&amp;gt; Units)/2 instead of your if statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 17:57:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-get-value-from-row-where-x-y/m-p/451035#M486911</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-19T17:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: expression: get value from row where x=y</title>
      <link>https://community.qlik.com/t5/QlikView/expression-get-value-from-row-where-x-y/m-p/451036#M486912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, thanks for you reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well, your idea is good.&lt;BR /&gt;but my example wasn't that good, as the sum of a group consist also of data, which is not in the table, why "/2" doesnt work. lets assume in my given example UnitsGroup are not 30 and 40 but 50 and 70 or so...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 15:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-get-value-from-row-where-x-y/m-p/451036#M486912</guid>
      <dc:creator>ni_avoss</dc:creator>
      <dc:date>2013-02-20T15:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: expression: get value from row where x=y</title>
      <link>https://community.qlik.com/t5/QlikView/expression-get-value-from-row-where-x-y/m-p/451037#M486913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But UnitsGroup will always be the maximum value over the ProductGroup? If so use this: &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;max(total &amp;lt;ProductGroup&amp;gt; Units)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 15:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-get-value-from-row-where-x-y/m-p/451037#M486913</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-20T15:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: expression: get value from row where x=y</title>
      <link>https://community.qlik.com/t5/QlikView/expression-get-value-from-row-where-x-y/m-p/451038#M486914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well, this might sound a little bit strange but no, necessarily it's not the maximum (due to other reasons).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well, I finally found a very specific workaround.&lt;/P&gt;&lt;P&gt;But I would be interesited anyway, if there is some solution or possibility like "peek" in an expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 15:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-get-value-from-row-where-x-y/m-p/451038#M486914</guid>
      <dc:creator>ni_avoss</dc:creator>
      <dc:date>2013-02-20T15:17:33Z</dc:date>
    </item>
  </channel>
</rss>

