<?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: Calculate sum of all prior years based on Year, Month selection in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculate-YTD-values-and-Life-to-Date-value-based-on-Year-Month/m-p/1722650#M54982</link>
    <description>&lt;P&gt;I have updated the image screenshot and the sample file. Could you please review and let me know?&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jun 2020 15:22:05 GMT</pubDate>
    <dc:creator>sush</dc:creator>
    <dc:date>2020-06-26T15:22:05Z</dc:date>
    <item>
      <title>Calculate YTD values and Life to Date value based on Year, Month selection</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-YTD-values-and-Life-to-Date-value-based-on-Year-Month/m-p/1721055#M54833</link>
      <description>&lt;P&gt;Hi&amp;nbsp; All,&lt;/P&gt;&lt;P&gt;I got a question, I need to display the sum of the amount column based on the filter pane selection and restrict values on Filter Pane.&lt;/P&gt;&lt;P&gt;Filter pane has a Year, Month selection. I need to restrict to select only one value from the year and one value from the month.&lt;/P&gt;&lt;P&gt;Filter Pane: Fiscal Year, Period&lt;/P&gt;&lt;P&gt;I am using a pivot table. Just to clarify the below is the data/columns I have to calculate the totals&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%"&gt;Fiscal Year&lt;/TD&gt;&lt;TD width="25%"&gt;Month Name&lt;/TD&gt;&lt;TD width="25%"&gt;&lt;SPAN&gt;Account Number&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="25%"&gt;&lt;SPAN&gt;Amount&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Based on this data, I need to calculate the below 2 values based on the filter selection. These values to be displayed in the Pivot table along with the above-mentioned columns.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. &lt;/SPAN&gt;&lt;STRONG&gt;Current Fiscal Year Amount - &lt;/STRONG&gt;&lt;SPAN&gt;Calculate YTD values based on the filter selection.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2. &lt;STRONG&gt;Life to Date&amp;nbsp;Total&amp;nbsp; Amount-&amp;nbsp;&lt;/STRONG&gt;Calculate Life to date values based on Year, Month selection in the filter pane.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know how can I achieve this.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:27:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-YTD-values-and-Life-to-Date-value-based-on-Year-Month/m-p/1721055#M54833</guid>
      <dc:creator>sush</dc:creator>
      <dc:date>2024-11-16T18:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum of all prior years based on Year, Month selection</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-YTD-values-and-Life-to-Date-value-based-on-Year-Month/m-p/1721253#M54859</link>
      <description>&lt;P&gt;I assume you use KPI charts, Month_Name and Fiscal Year are supposed to be single choice. Hope it helps.&lt;/P&gt;&lt;P&gt;1. If Month_Name is not filtered : sum all months of selected year&amp;nbsp;&lt;BR /&gt;if Month_Name is selected: sum selected month, year.&lt;/P&gt;&lt;P&gt;if(GetSelectedCount([&lt;SPAN&gt;Month Name&lt;/SPAN&gt;]) &amp;lt;= 0,&amp;nbsp;&lt;SPAN&gt;(sum({&amp;lt;[Fiscal Year]={"$(=max([Fiscal Year]))"}&amp;gt;} [&lt;STRONG&gt;Current Fiscal Year Amount&lt;/STRONG&gt;]) ,&lt;BR /&gt;(sum({&amp;lt;[Fiscal Year]={"$(=max([Fiscal Year]))"},[Month Name]={"$(=max([Month Name]))"}&amp;gt;} [&lt;STRONG&gt;Current Fiscal Year Amount&lt;/STRONG&gt;]) )&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As&amp;nbsp;Month_Name and Fiscal Year are supposed to be single choice, we can make it shorter like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(GetSelectedCount([Month Name]) &amp;lt;= 0,&amp;nbsp;(sum([&lt;STRONG&gt;Current Fiscal Year Amount&lt;/STRONG&gt;]) ,&lt;BR /&gt;(sum( [&lt;STRONG&gt;Current Fiscal Year Amount&lt;/STRONG&gt;]) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. sum([&lt;STRONG&gt;All Years Amount Total]&lt;/STRONG&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 11:35:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-YTD-values-and-Life-to-Date-value-based-on-Year-Month/m-p/1721253#M54859</guid>
      <dc:creator>thi_pham</dc:creator>
      <dc:date>2020-06-23T11:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum of all prior years based on Year, Month selection</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-YTD-values-and-Life-to-Date-value-based-on-Year-Month/m-p/1721352#M54873</link>
      <description>&lt;P&gt;Thank you so much for your response. I am using a pivot table and I have updated the same in my initial question as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please review and provide me suggestions?&lt;/P&gt;&lt;P&gt;Also just FYI, I don't have the columns&amp;nbsp;&lt;STRONG&gt;Current Fiscal Year Amount and&amp;nbsp;All Years Amount Total.&amp;nbsp;&lt;/STRONG&gt;I need to calculate these columns based on the filter selection and the amount column I have.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 15:43:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-YTD-values-and-Life-to-Date-value-based-on-Year-Month/m-p/1721352#M54873</guid>
      <dc:creator>sush</dc:creator>
      <dc:date>2020-06-23T15:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum of all prior years based on Year, Month selection</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-YTD-values-and-Life-to-Date-value-based-on-Year-Month/m-p/1722041#M54934</link>
      <description>&lt;P&gt;what are dimensions in your outcome pivot table?&lt;/P&gt;&lt;P&gt;If you provide a sample of your input data and your output pivot table, in excel or image, mightbe I could help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 08:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-YTD-values-and-Life-to-Date-value-based-on-Year-Month/m-p/1722041#M54934</guid>
      <dc:creator>thi_pham</dc:creator>
      <dc:date>2020-06-25T08:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum of all prior years based on Year, Month selection</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-YTD-values-and-Life-to-Date-value-based-on-Year-Month/m-p/1722271#M54957</link>
      <description>&lt;P&gt;Please find attached the sample data.&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Calc_TB_PL_BS_Total_SampleData.JPG" style="width: 728px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36372i298D3379F4F25F5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Calc_TB_PL_BS_Total_SampleData.JPG" alt="Calc_TB_PL_BS_Total_SampleData.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 15:21:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-YTD-values-and-Life-to-Date-value-based-on-Year-Month/m-p/1722271#M54957</guid>
      <dc:creator>sush</dc:creator>
      <dc:date>2020-06-26T15:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum of all prior years based on Year, Month selection</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-YTD-values-and-Life-to-Date-value-based-on-Year-Month/m-p/1722473#M54974</link>
      <description>&lt;P&gt;Sorry, I don't understand how you want to calculate YTD Total and Life TD Total, in output Pivot table, column Account No seems redundant.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please explain more detail or attach an excel file with formula.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 08:06:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-YTD-values-and-Life-to-Date-value-based-on-Year-Month/m-p/1722473#M54974</guid>
      <dc:creator>thi_pham</dc:creator>
      <dc:date>2020-06-26T08:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum of all prior years based on Year, Month selection</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-YTD-values-and-Life-to-Date-value-based-on-Year-Month/m-p/1722650#M54982</link>
      <description>&lt;P&gt;I have updated the image screenshot and the sample file. Could you please review and let me know?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 15:22:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-YTD-values-and-Life-to-Date-value-based-on-Year-Month/m-p/1722650#M54982</guid>
      <dc:creator>sush</dc:creator>
      <dc:date>2020-06-26T15:22:05Z</dc:date>
    </item>
  </channel>
</rss>

