<?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: Getting expression total on the first row based on an IF statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-expression-total-on-the-first-row-based-on-an-IF/m-p/950189#M958821</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Sweuhl,&lt;/P&gt;&lt;P&gt;I have figure it out. Thanks for your contribution all thesame.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Nov 2015 14:27:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-06T14:27:05Z</dc:date>
    <item>
      <title>Getting expression total on the first row based on an IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-expression-total-on-the-first-row-based-on-an-IF/m-p/950181#M958813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just created an expression based on an IF statement but I can't get the SUM total on the first row even&amp;nbsp; though the expression total is selected on the Expression tab. Please any idea on how to figure this out will be truly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Simon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 08:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-expression-total-on-the-first-row-based-on-an-IF/m-p/950181#M958813</guid>
      <dc:creator />
      <dc:date>2015-11-06T08:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting expression total on the first row based on an IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-expression-total-on-the-first-row-based-on-an-IF/m-p/950182#M958814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And your expression looks like ...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your if() statement is embedded in the aggregation, I think it should work.&lt;/P&gt;&lt;P&gt;If your if() statement is testing dimension values, outside the aggregation, you need to use advanced aggregation to get the total:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum( Aggr( If(Dim ='A', Sum(Value1), Sum(Value2) ), Dim))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 13:28:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-expression-total-on-the-first-row-based-on-an-IF/m-p/950182#M958814</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-06T13:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Getting expression total on the first row based on an IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-expression-total-on-the-first-row-based-on-an-IF/m-p/950183#M958815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you using a pivot table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, try to transform to a straight table and verify the result, if this is the case (otherways let me know) you have to use dimensionality finction&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 13:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-expression-total-on-the-first-row-based-on-an-IF/m-p/950183#M958815</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-11-06T13:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Getting expression total on the first row based on an IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-expression-total-on-the-first-row-based-on-an-IF/m-p/950184#M958816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am using a straight table but its not given me the total on the first row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 13:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-expression-total-on-the-first-row-based-on-an-IF/m-p/950184#M958816</guid>
      <dc:creator />
      <dc:date>2015-11-06T13:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting expression total on the first row based on an IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-expression-total-on-the-first-row-based-on-an-IF/m-p/950185#M958817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;my expression is as follows:&lt;/P&gt;&lt;P&gt;if(column(3) &amp;lt;0,0.25 * column(3)).&lt;/P&gt;&lt;P&gt;It give me the sum total on the individual fields but not the grand total on the first row. If I add sum to the expression, it show the sum total on the first row as 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 13:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-expression-total-on-the-first-row-based-on-an-IF/m-p/950185#M958817</guid>
      <dc:creator />
      <dc:date>2015-11-06T13:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting expression total on the first row based on an IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-expression-total-on-the-first-row-based-on-an-IF/m-p/950186#M958818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And the expression in column(3) looks like...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 14:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-expression-total-on-the-first-row-based-on-an-IF/m-p/950186#M958818</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-06T14:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Getting expression total on the first row based on an IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-expression-total-on-the-first-row-based-on-an-IF/m-p/950187#M958819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Column(1) : Sum(Distinct )Column(2) : Sum( +  + )&lt;/P&gt;&lt;P&gt;So column(3) : Column(1) - Column(2).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 14:08:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-expression-total-on-the-first-row-based-on-an-IF/m-p/950187#M958819</guid>
      <dc:creator />
      <dc:date>2015-11-06T14:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting expression total on the first row based on an IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-expression-total-on-the-first-row-based-on-an-IF/m-p/950188#M958820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, your posted expressions don't make sense to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you upload a small sample QVW that demonstrates your issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 14:16:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-expression-total-on-the-first-row-based-on-an-IF/m-p/950188#M958820</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-06T14:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting expression total on the first row based on an IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-expression-total-on-the-first-row-based-on-an-IF/m-p/950189#M958821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Sweuhl,&lt;/P&gt;&lt;P&gt;I have figure it out. Thanks for your contribution all thesame.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 14:27:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-expression-total-on-the-first-row-based-on-an-IF/m-p/950189#M958821</guid>
      <dc:creator />
      <dc:date>2015-11-06T14:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting expression total on the first row based on an IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-expression-total-on-the-first-row-based-on-an-IF/m-p/950190#M958822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;Try putting the the function column(3) on its own into your expression, is it reproducing the desired result?&amp;nbsp; There is no reason why your expression shouldn't work, even with an IF.&amp;nbsp; Total's should also work.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;You are testing for values less than 0 (ie, negative values) so your expression is only going to fire if the value in column 3 is negative.&amp;nbsp; Is this what you meant?&amp;nbsp; Sorry if this is vague, there's not a lot to go on!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;If you can post your QVW I'd be happy to take a look.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;George&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 14:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-expression-total-on-the-first-row-based-on-an-IF/m-p/950190#M958822</guid>
      <dc:creator>gsbeaton</dc:creator>
      <dc:date>2015-11-06T14:42:01Z</dc:date>
    </item>
  </channel>
</rss>

