<?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: Help with Sum and variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Sum-and-variables/m-p/550135#M1145560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Didn't count the '(' and ')' 's. Try: &lt;/P&gt;&lt;P&gt;=Num(Sum({&amp;lt;[Year]={$(vCurrentYear)}, [Project Status] -={'Admin'}&amp;gt;} [Hours Worked]*if(IsNull(Rate), 20, Rate)), '£#,##0;(£#,##0)')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Aug 2013 17:56:50 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-08-01T17:56:50Z</dc:date>
    <item>
      <title>Help with Sum and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Sum-and-variables/m-p/550132#M1145556</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;I have the following sum which works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;=Num(sum({&amp;lt;[Year]={$(vCurrentYear)}&amp;gt;}[Hours Worked]*if(IsNull(Rate), 20, Rate)), '£#,##0;(£#,##0)') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I can't figure out is to add the equivelent of an AND in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;=Num(Sum({&amp;lt;[Year]={$(vCurrentYear)}&amp;gt;} &lt;STRONG&gt;and If(Not([Project Status]='Admin')&lt;/STRONG&gt;, [Hours Worked]*if(IsNull(Rate), 20, Rate))), '£#,##0;(£#,##0)')&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;I was thinking of something like the above, but that just gives a '-' in the result. Any help would be appreciated.&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 17:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Sum-and-variables/m-p/550132#M1145556</guid>
      <dc:creator />
      <dc:date>2013-08-01T17:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Sum and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Sum-and-variables/m-p/550133#M1145557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=Num(Sum({&amp;lt;[Year]={$(vCurrentYear)}&lt;/SPAN&gt;&lt;STRONG style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;, [Project Status] -={'Admin'}&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;[Hours Worked]*if(IsNull(Rate), 20, Rate))), '£#,##0;(£#,##0)')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;The expression editor doesn't know yet that -= is correct syntax, but that's a bug in the editor so don't worry about the red underlining.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 17:41:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Sum-and-variables/m-p/550133#M1145557</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-08-01T17:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Sum and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Sum-and-variables/m-p/550134#M1145559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks Gysbert, pasted it in and it's showing '-', so that didn't work unfortunatly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The editor didn't underlinethe -= , however, it did on the folling {&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 17:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Sum-and-variables/m-p/550134#M1145559</guid>
      <dc:creator />
      <dc:date>2013-08-01T17:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Sum and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Sum-and-variables/m-p/550135#M1145560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Didn't count the '(' and ')' 's. Try: &lt;/P&gt;&lt;P&gt;=Num(Sum({&amp;lt;[Year]={$(vCurrentYear)}, [Project Status] -={'Admin'}&amp;gt;} [Hours Worked]*if(IsNull(Rate), 20, Rate)), '£#,##0;(£#,##0)')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 17:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Sum-and-variables/m-p/550135#M1145560</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-08-01T17:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Sum and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Sum-and-variables/m-p/550136#M1145561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect, thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 07:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Sum-and-variables/m-p/550136#M1145561</guid>
      <dc:creator />
      <dc:date>2013-08-02T07:57:57Z</dc:date>
    </item>
  </channel>
</rss>

