<?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 Variable YTD Budget in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-YTD-Budget/m-p/726039#M260367</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 am trying to calculate the YTD budget based on the selection of the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a selection for the months (Jan - Dec).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no month is selected, the YTD budget should only show up to a given month (set in a variable), which is the current actual. If one or more months are selected, than the sum of the selected should be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=Sum({$&amp;lt;SourceType={'Budget'}, Month={'=If(GetSelectedCount(Month)=0,4,GetSelectedCount(Month))'}&amp;gt;} If(AC3='510',&amp;nbsp; BalanceLC))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;4 in this example is the current actual month. So if no month is selected, I would like to show the sum of the budget values that are &amp;lt;= to 4 (i.e. 1 - 4). If I select a month, I want to show the sum of the selection. The above selection works fine, except that when I don't select a month, it shows me the full year budget instead of the 4 months only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is wrong in my expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Sep 2014 02:06:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-18T02:06:41Z</dc:date>
    <item>
      <title>Variable YTD Budget</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-YTD-Budget/m-p/726039#M260367</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 am trying to calculate the YTD budget based on the selection of the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a selection for the months (Jan - Dec).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no month is selected, the YTD budget should only show up to a given month (set in a variable), which is the current actual. If one or more months are selected, than the sum of the selected should be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=Sum({$&amp;lt;SourceType={'Budget'}, Month={'=If(GetSelectedCount(Month)=0,4,GetSelectedCount(Month))'}&amp;gt;} If(AC3='510',&amp;nbsp; BalanceLC))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;4 in this example is the current actual month. So if no month is selected, I would like to show the sum of the budget values that are &amp;lt;= to 4 (i.e. 1 - 4). If I select a month, I want to show the sum of the selection. The above selection works fine, except that when I don't select a month, it shows me the full year budget instead of the 4 months only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is wrong in my expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 02:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-YTD-Budget/m-p/726039#M260367</guid>
      <dc:creator />
      <dc:date>2014-09-18T02:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Variable YTD Budget</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-YTD-Budget/m-p/726040#M260368</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;Try like this&lt;/P&gt;&lt;P&gt;create a variable&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;vCurrentMonth = 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;If(GetSelectedCount(Month)=0,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt; Sum({$&amp;lt;SourceType={'Budget'}, Month={'&amp;lt;=$(=&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;vCurrentMonth&lt;/SPAN&gt;)'}, &lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;AC3={'510'}&lt;/SPAN&gt;&amp;gt;} BalanceLC),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt; Sum({$&amp;lt;SourceType={'Budget'}, &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;AC3={'510'}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;&amp;gt;} BalanceLC))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 02:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-YTD-Budget/m-p/726040#M260368</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-09-18T02:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Variable YTD Budget</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-YTD-Budget/m-p/726041#M260369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jagan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, I tried that, yet the result is the same...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 02:21:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-YTD-Budget/m-p/726041#M260369</guid>
      <dc:creator />
      <dc:date>2014-09-18T02:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Variable YTD Budget</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-YTD-Budget/m-p/726042#M260370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;This should work, if not working attach some sample file and expected output.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;If(GetSelectedCount(Month)=0,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;Sum({$&amp;lt;SourceType={'Budget'}, Month={4}, &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;AC3={'510'}&lt;/SPAN&gt;&amp;gt;} BalanceLC),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Sum({$&amp;lt;SourceType={'Budget'}, &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;AC3={'510'}&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;gt;} BalanceLC))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier; font-weight: inherit;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier; font-weight: inherit;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 02:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-YTD-Budget/m-p/726042#M260370</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-09-18T02:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Variable YTD Budget</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-YTD-Budget/m-p/726043#M260371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that does the trick, although it is more complicated that I had hoped for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 03:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-YTD-Budget/m-p/726043#M260371</guid>
      <dc:creator />
      <dc:date>2014-09-18T03:50:37Z</dc:date>
    </item>
  </channel>
</rss>

