<?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 Variables in sum in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219956#M23680</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Maybe can someone tell me what i am doing wrong. My task is to calculate sum of previous&lt;/SPAN&gt; &lt;SPAN style="color: #ff6600;"&gt;DrawID&lt;SPAN style="color: #000000;"&gt; starting from today.&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Right answer i get when do like this :&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;DrawID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #003300;"&gt;'&amp;lt;3'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;[Ticket.Amout]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN style="color: #000000;"&gt;I defined&amp;nbsp; variable &lt;SPAN style="color: #ff99cc;"&gt;vCurrentEdition&lt;/SPAN&gt; like this&amp;nbsp; &lt;/SPAN&gt;Num#(if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #ff6600;"&gt;DrawDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; =&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt; today()&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;DrawID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #003300;"&gt;'#.#', '.' , ','&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;),&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;a&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;lso tried &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #ff6600;"&gt;DrawDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; =&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt; today()&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;DrawID&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;both variations gives the right answer &lt;STRONG&gt;3&lt;/STRONG&gt; &lt;SPAN style="font-size: 10pt;"&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;To count sum i tried this variations&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;DrawID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #003300; font-size: 10pt;"&gt;'&amp;lt; $(&lt;SPAN style="font-size: 13.3333px;"&gt;vCurrentEdition)&lt;/SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;[Ticket.Amout]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;DrawID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = {"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #003300;"&gt;&amp;lt; $(&lt;SPAN style="font-size: 13.3333px;"&gt;vCurrentEdition)"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;[Ticket.Amout]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;DrawID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #003300;"&gt;'&amp;lt; &lt;SPAN style="font-size: 13.3333px;"&gt;vCurrentEdition&lt;/SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;[Ticket.Amout]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;DrawID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = {"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #003300;"&gt;&amp;lt; &lt;SPAN style="font-size: 13.3333px;"&gt;vCurrentEdition"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;[Ticket.Amout]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;DrawID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #ff99cc; font-size: 13.3333px;"&gt;vCurrentEdition&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;[Ticket.Amout]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000;"&gt;Unfortunately&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #000000;"&gt; none of them works. What should i do to count sum. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000;"&gt;Thanks in advance.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Nov 2016 08:32:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-11-09T08:32:13Z</dc:date>
    <item>
      <title>Variables in sum</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219956#M23680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Maybe can someone tell me what i am doing wrong. My task is to calculate sum of previous&lt;/SPAN&gt; &lt;SPAN style="color: #ff6600;"&gt;DrawID&lt;SPAN style="color: #000000;"&gt; starting from today.&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Right answer i get when do like this :&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;DrawID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #003300;"&gt;'&amp;lt;3'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;[Ticket.Amout]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN style="color: #000000;"&gt;I defined&amp;nbsp; variable &lt;SPAN style="color: #ff99cc;"&gt;vCurrentEdition&lt;/SPAN&gt; like this&amp;nbsp; &lt;/SPAN&gt;Num#(if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #ff6600;"&gt;DrawDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; =&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt; today()&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;DrawID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #003300;"&gt;'#.#', '.' , ','&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;),&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;a&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;lso tried &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #ff6600;"&gt;DrawDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; =&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt; today()&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;DrawID&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;both variations gives the right answer &lt;STRONG&gt;3&lt;/STRONG&gt; &lt;SPAN style="font-size: 10pt;"&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;To count sum i tried this variations&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;DrawID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #003300; font-size: 10pt;"&gt;'&amp;lt; $(&lt;SPAN style="font-size: 13.3333px;"&gt;vCurrentEdition)&lt;/SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;[Ticket.Amout]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;DrawID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = {"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #003300;"&gt;&amp;lt; $(&lt;SPAN style="font-size: 13.3333px;"&gt;vCurrentEdition)"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;[Ticket.Amout]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;DrawID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #003300;"&gt;'&amp;lt; &lt;SPAN style="font-size: 13.3333px;"&gt;vCurrentEdition&lt;/SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;[Ticket.Amout]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;DrawID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = {"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #003300;"&gt;&amp;lt; &lt;SPAN style="font-size: 13.3333px;"&gt;vCurrentEdition"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;[Ticket.Amout]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;DrawID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #ff99cc; font-size: 13.3333px;"&gt;vCurrentEdition&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #ff6600;"&gt;[Ticket.Amout]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000;"&gt;Unfortunately&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #000000;"&gt; none of them works. What should i do to count sum. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000;"&gt;Thanks in advance.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 08:32:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219956#M23680</guid>
      <dc:creator />
      <dc:date>2016-11-09T08:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in sum</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219957#M23681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;DrawID = {'&amp;lt;$(&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;=&lt;/SPAN&gt;vCurrentEdition)'} &amp;gt;}[Ticket.Amout])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 10:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219957#M23681</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-09T10:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in sum</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219958#M23682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, thank for fast replay. It does not work &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 11:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219958#M23682</guid>
      <dc:creator />
      <dc:date>2016-11-09T11:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in sum</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219959#M23683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about if you change single quotes to double quotes here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;DrawID = {&lt;STRONG style=": ; color: #ff0000; font-size: 14pt;"&gt;"&lt;/STRONG&gt;&amp;lt;$(&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;vCurrentEdition)&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;"&lt;/SPAN&gt;} &amp;gt;}[Ticket.Amout])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 14:18:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219959#M23683</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-09T14:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in sum</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219960#M23684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try this one&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Sum({$&amp;lt;DrawID = {&amp;lt;$(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;=$(&lt;/SPAN&gt;vCurrentEdition))} &amp;gt;}[Ticket.Amout])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 14:22:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219960#M23684</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-09T14:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in sum</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219961#M23685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Already tried. does not work. Maybe something wrong with my variable &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 14:25:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219961#M23685</guid>
      <dc:creator />
      <dc:date>2016-11-09T14:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in sum</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219962#M23686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Does not work. I also tried with different quotes. &lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13px;"&gt;=Sum({$&amp;lt;DrawID = { ' &amp;lt;$(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;=$(&lt;/SPAN&gt;vCurrentEdition)) ' } &amp;gt;}[Ticket.Amout])&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P style="font-family: inherit; font-size: 13.3333px; font-style: inherit; font-weight: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13px;"&gt;=Sum({$&amp;lt;DrawID = { " &amp;lt;$(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;=$(&lt;/SPAN&gt;vCurrentEdition)) " } &amp;gt;}[Ticket.Amout])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 14:34:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219962#M23686</guid>
      <dc:creator />
      <dc:date>2016-11-09T14:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in sum</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219963#M23687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be share a sample so that we can dig deeper into the issue for you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 16:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219963#M23687</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-09T16:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in sum</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219964#M23688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure. Here is my data, and calendar that i am using. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2016 07:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219964#M23688</guid>
      <dc:creator />
      <dc:date>2016-11-10T07:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in sum</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219965#M23689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try putting '=' before expression while defining your variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2016 08:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219965#M23689</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-11-10T08:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in sum</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219966#M23690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for suggestion. I tried, but nothing changed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2016 09:18:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-sum/m-p/1219966#M23690</guid>
      <dc:creator />
      <dc:date>2016-11-10T09:18:56Z</dc:date>
    </item>
  </channel>
</rss>

