<?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 Total YTD  (variable) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880131#M997463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually how do you define your variable vYTD?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2015 10:31:18 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-06-23T10:31:18Z</dc:date>
    <item>
      <title>Sum Total YTD  (variable)</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880129#M997461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created the following table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ytd.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/90349_ytd.PNG" style="width: 620px; height: 192px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the expression I have used for the "Cost %" for the current month&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;num&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Cost&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/ &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Cost&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;)), '#,0%') &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;My problem is&lt;/STRONG&gt;&lt;/SPAN&gt; with the expression I have created for the &lt;SPAN style="text-decoration: underline;"&gt;"Cost %" for the YTD&lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG&gt;num&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;vYTD&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;gt;}Cost)/ Sum(total({$&amp;lt;&lt;/SPAN&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;$(vYTD)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;&amp;gt;}Cost)), '#,0%')&amp;nbsp; &lt;/STRONG&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="font-size: 10pt;"&gt;&lt;STRONG&gt;What am I doing wrong? How can I calculate the percentage of the cost for the YTD? Or how can I calculate the total with a Variable?&lt;/STRONG&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="font-size: 10pt;"&gt;&lt;STRONG&gt;Thank you in advance for your help!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Iuri &lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:24:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880129#M997461</guid>
      <dc:creator />
      <dc:date>2015-06-23T10:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total YTD  (variable)</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880130#M997462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give this a try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;(S&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;um&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;EM style="font-weight: inherit; font-size: 10pt; font-family: inherit; color: #808080;"&gt;vYTD&lt;/EM&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;gt;}Cost)/Sum(TOTAL {&amp;lt;&lt;/SPAN&gt;&lt;EM style="font-weight: inherit; font-size: 10pt; font-family: inherit; color: #808080;"&gt;$(vYTD)&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #575757;"&gt;&amp;gt;}Cost), '#,##0.0%')&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880130#M997462</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-23T10:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total YTD  (variable)</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880131#M997463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually how do you define your variable vYTD?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:31:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880131#M997463</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-23T10:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total YTD  (variable)</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880132#M997464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;What Contains your vYTD variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:31:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880132#M997464</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-06-23T10:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total YTD  (variable)</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880133#M997465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That does not work as well, even if the problem were the number format that would show any value, but all I get is '-'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880133#M997465</guid>
      <dc:creator />
      <dc:date>2015-06-23T10:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total YTD  (variable)</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880134#M997466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello Settu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here whats inside the variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Month=,RelativeMonthID=, MonthID={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=Max(MonthID))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, YearID={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=Max(YearID))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&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="font-size: 8pt;"&gt;Thanks for your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:35:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880134#M997466</guid>
      <dc:creator />
      <dc:date>2015-06-23T10:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total YTD  (variable)</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880135#M997467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is this variable vYTD? Can you show the expression behind this variable? Is it working for YTD Cost???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880135#M997467</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-23T10:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total YTD  (variable)</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880136#M997468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not just change the number formatting, but also removed the parenthesis after TOTAL, did you try to remove that from your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;num&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;EM style="font-weight: inherit; font-size: 10pt; font-family: inherit; color: #808080;"&gt;vYTD&lt;/EM&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;gt;}Cost)/ Sum(total&lt;SPAN style="color: #ff0000;"&gt;(&lt;/SPAN&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;EM style="font-weight: inherit; font-size: 10pt; font-family: inherit; color: #808080;"&gt;$(vYTD)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;&amp;gt;}Cost&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;), '#,0%') &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:37:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880136#M997468</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-23T10:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total YTD  (variable)</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880137#M997469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here the Varible:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Month=,RelativeMonthID=, MonthID={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=Max(MonthID))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, YearID={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=Max(YearID))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880137#M997469</guid>
      <dc:creator />
      <dc:date>2015-06-23T10:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total YTD  (variable)</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880138#M997470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you Right!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It came up a large number, but I will validate that is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880138#M997470</guid>
      <dc:creator />
      <dc:date>2015-06-23T10:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total YTD  (variable)</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880139#M997471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:50:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880139#M997471</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-23T10:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total YTD  (variable)</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880140#M997472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it did, thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way I was think "total ()", it seems that does not work in the same way with variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already marked as correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:52:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880140#M997472</guid>
      <dc:creator />
      <dc:date>2015-06-23T10:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Total YTD  (variable)</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880141#M997473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hahahaha ya, I saw the correct answer pop-up two times before also, so I was not sure if this was truly the correct answer or not. But I am glad it worked out for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best.&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Total-YTD-variable/m-p/880141#M997473</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-23T10:54:19Z</dc:date>
    </item>
  </channel>
</rss>

