<?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: Set Analysis - Using  Month, Year to Date and Annual Figure -wrongly displaying all months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Month-Year-to-Date-and-Annual-Figure-wrongly/m-p/1592070#M737586</link>
    <description>&lt;P&gt;For annual Sum of Budget, you need to indicate that you want to sum of the max year present in the dataset&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year = {Max(Year)}&amp;gt;}[Budget])&lt;/P&gt;&lt;P&gt;For the monthly sum&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Month = {Max(Month)}&amp;gt;}[Budget])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohamed&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2019 13:00:02 GMT</pubDate>
    <dc:creator>lazurens</dc:creator>
    <dc:date>2019-06-14T13:00:02Z</dc:date>
    <item>
      <title>Set Analysis - Using  Month, Year to Date and Annual Figure -wrongly displaying all months</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Month-Year-to-Date-and-Annual-Figure-wrongly/m-p/1591681#M737585</link>
      <description>&lt;P&gt;I want display some financial information for the current month and the annual budget total in a chart (Straight Table)-&lt;/P&gt;&lt;P&gt;I want to display for individual accounts; the selected month; the year to date value for that month and also the annual value&lt;/P&gt;&lt;P&gt;One month has been selected and the total values&amp;nbsp;coming out are correct but the&amp;nbsp; table is displaying&amp;nbsp; data for all 12 months - it is including each budget month individually rather than the total budget for the year&lt;/P&gt;&lt;P&gt;If I remove the&amp;nbsp; month (GLPeriod.PeriodNum) dimension then the data is displayed correctly but I do&amp;nbsp;need to include this field.&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;EM&gt;This expression displays the year to date budget for the chosen month&lt;/EM&gt;:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;=&lt;FONT color="#0000ff"&gt;Sum&lt;/FONT&gt;({$&amp;lt;&lt;FONT color="#800000"&gt;GLBal.BudgetName&lt;/FONT&gt;={'$(vCurrentBudget)'}, &lt;FONT color="#800000"&gt;GLSubLedg.Currency&lt;/FONT&gt; ={&lt;FONT color="#800000"&gt;"GBP"&lt;/FONT&gt;}&amp;gt;} &lt;FONT color="#800000"&gt;[GLBal.YTDBudget]&lt;/FONT&gt;) &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="4"&gt;This expression should displays the annual budget not dependant on the chosen month:&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;FONT color="#0000ff"&gt;Sum&lt;/FONT&gt;({$&amp;lt;&lt;FONT color="#800000"&gt;GLBal.BudgetName&lt;/FONT&gt;={'$(vCurrentBudget)'},&lt;FONT color="#800000"&gt;[GLPeriod.PeriodNum]&lt;/FONT&gt;=,&lt;FONT color="#800000"&gt;GLSubLedg.Currency&lt;/FONT&gt; ={&lt;FONT color="#800000"&gt;"GBP"&lt;/FONT&gt;}&amp;gt;} &lt;FONT color="#800000"&gt;[GLBal.BudgetAmount]&lt;/FONT&gt;) &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;EM&gt;I have also tried the cumulative budget figure&amp;nbsp; specified as month 12 - this approach then displays the selected month and month 12&lt;/EM&gt;:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Sum({$&amp;lt;GLBal.BudgetName={'$(vCurrentBudget)'},[GLPeriod.PeriodNum]={$(=12)},GLSubLedg.Currency ={"GBP"}&amp;gt;} [GLBal.YTDBudget])&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please point out where I am going wrong&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Month-Year-to-Date-and-Annual-Figure-wrongly/m-p/1591681#M737585</guid>
      <dc:creator>SeanM</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Using  Month, Year to Date and Annual Figure -wrongly displaying all months</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Month-Year-to-Date-and-Annual-Figure-wrongly/m-p/1592070#M737586</link>
      <description>&lt;P&gt;For annual Sum of Budget, you need to indicate that you want to sum of the max year present in the dataset&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year = {Max(Year)}&amp;gt;}[Budget])&lt;/P&gt;&lt;P&gt;For the monthly sum&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Month = {Max(Month)}&amp;gt;}[Budget])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohamed&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 13:00:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Month-Year-to-Date-and-Annual-Figure-wrongly/m-p/1592070#M737586</guid>
      <dc:creator>lazurens</dc:creator>
      <dc:date>2019-06-14T13:00:02Z</dc:date>
    </item>
  </channel>
</rss>

