<?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: If then else sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282432#M867657</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum(If(Turnover*0,25 &amp;lt; 60, 60, Turnover * 0,25))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Dec 2016 13:03:06 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-12-05T13:03:06Z</dc:date>
    <item>
      <title>If then else sum</title>
      <link>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282431#M867656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to make a if then else sum in Qlikview that calculates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Turnover*0,25 &amp;lt; 60, Then 60, Else Turnover * 0,25.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Updated with Qvw.
Meddelandet redigerades av: Niklas Söderqvist&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282431#M867656</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: If then else sum</title>
      <link>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282432#M867657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum(If(Turnover*0,25 &amp;lt; 60, 60, Turnover * 0,25))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 13:03:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282432#M867657</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-05T13:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: If then else sum</title>
      <link>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282433#M867658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Gysbert tried that but it jsut gives me 0 on every row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 13:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282433#M867658</guid>
      <dc:creator />
      <dc:date>2016-12-05T13:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: If then else sum</title>
      <link>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282434#M867659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you look at the pic I attached you'll see&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 13:14:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282434#M867659</guid>
      <dc:creator />
      <dc:date>2016-12-05T13:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: If then else sum</title>
      <link>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282435#M867660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Screenshots are bloody useless. Please post something with data that can be used to reproduce the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 13:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282435#M867660</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-05T13:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: If then else sum</title>
      <link>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282436#M867661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is turnover a field or expression here? or may be it is an expression label?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 13:19:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282436#M867661</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-05T13:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: If then else sum</title>
      <link>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282437#M867662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Updated with a qvw i just copied your expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 13:31:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282437#M867662</guid>
      <dc:creator />
      <dc:date>2016-12-05T13:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: If then else sum</title>
      <link>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282438#M867663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Replace the label Turnover with the expression that it represents:&amp;nbsp; Sum(If(price*volume*0.0025&amp;lt;60, 60, price*volume * 0.0025))&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 13:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282438#M867663</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-05T13:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: If then else sum</title>
      <link>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282439#M867664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(If(sum(price*volume)*0.0025 &amp;lt; 60, 60, sum(price*volume) * 0.0025), orderId, longName, buySell))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 13:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282439#M867664</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-05T13:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: If then else sum</title>
      <link>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282440#M867665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah that worked! thanks man!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem was I used label of the expression instead of the expression it represented! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 13:39:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282440#M867665</guid>
      <dc:creator />
      <dc:date>2016-12-05T13:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: If then else sum</title>
      <link>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282441#M867666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sunny that actuallt worked better got some issues with the previous response. Can you explain to me what your expression is doing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 14:54:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282441#M867666</guid>
      <dc:creator />
      <dc:date>2016-12-05T14:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: If then else sum</title>
      <link>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282442#M867667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am just using your exact expression which you had under Turnover. This was aggregated expression vs. &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;price*volume&lt;/STRONG&gt; which was unaggregated. But the issue was that since you have an aggregation within an aggregation, you need to use Aggr() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check this link out for more on Aggr() function&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.analyticsvidhya.com/blog/2014/02/aggr/" title="https://www.analyticsvidhya.com/blog/2014/02/aggr/"&gt;https://www.analyticsvidhya.com/blog/2014/02/aggr/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 15:06:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-then-else-sum/m-p/1282442#M867667</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-05T15:06:38Z</dc:date>
    </item>
  </channel>
</rss>

