<?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 with expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-IF-with-expressions/m-p/1083351#M465193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you have try like this&lt;/P&gt;&lt;P&gt;sum({&amp;lt;ListPrice={"&amp;gt;(Revenue/Volume"}&amp;gt;}Volume))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Mar 2016 03:09:12 GMT</pubDate>
    <dc:creator>kkkumar82</dc:creator>
    <dc:date>2016-03-29T03:09:12Z</dc:date>
    <item>
      <title>Sum IF with expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-IF-with-expressions/m-p/1083350#M465192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a chart (straight table) that displays:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source (Dimension)&lt;/P&gt;&lt;P&gt;Product (Dimension)&lt;/P&gt;&lt;P&gt;ListPrice (Expression - this is a value from a table)&lt;/P&gt;&lt;P&gt;Volume (Expression)&lt;/P&gt;&lt;P&gt;ASP (Expression - this is a calculation [Revenue]/[Volume])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There can be many rows of data returned, but there is a ListPrice for all combinations of Sources and Products.&lt;/P&gt;&lt;P&gt;I want to add a columns that are expressions that will show the volume for all records where the ASP is less than the ListPrice (or above ListPrice).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried these but they don't work, the sum of the two columns is less than the total volume shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if(Revenue/Volume&amp;lt;ListPrice,Volume))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum(if(Revenue/Volume&amp;gt;=ListPrice,Volume))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;This seems like a simple problem, but I cannot figure out how to create an expression that will show the value I am trying to display.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 19:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-IF-with-expressions/m-p/1083350#M465192</guid>
      <dc:creator>tomdabek</dc:creator>
      <dc:date>2016-03-28T19:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sum IF with expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-IF-with-expressions/m-p/1083351#M465193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you have try like this&lt;/P&gt;&lt;P&gt;sum({&amp;lt;ListPrice={"&amp;gt;(Revenue/Volume"}&amp;gt;}Volume))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 03:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-IF-with-expressions/m-p/1083351#M465193</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-03-29T03:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sum IF with expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-IF-with-expressions/m-p/1083352#M465194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;I am not sure why my expression is not working but I tried with your kind of expressions.&lt;/P&gt;&lt;P&gt;Created a field &lt;STRONG&gt;Revenue/volume &lt;/STRONG&gt;​as avg.&lt;/P&gt;&lt;P&gt;Please find attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 03:35:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-IF-with-expressions/m-p/1083352#M465194</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-03-29T03:35:25Z</dc:date>
    </item>
  </channel>
</rss>

