<?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 Previous Year in Bar chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Previous-Year-in-Bar-chart/m-p/2538380#M108944</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have Below table where I have FY and contribution how do I get&amp;nbsp;prev&amp;nbsp;yr Contributions&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Financial Year&lt;/TD&gt;&lt;TD&gt;Contributions$&lt;/TD&gt;&lt;TD&gt;prev&amp;nbsp;yr Contributions$&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FY 2025/2026&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FY 2024/2025&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FY 2023/2024&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FY 2022/2023&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FY 2021/2022&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a table another table that has below data... but not sure rather than creating another table is there another smart way of achieving above table&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Financial Year&lt;/TD&gt;&lt;TD&gt;Previous FY Year&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FY 2025/2026&lt;/TD&gt;&lt;TD&gt;FY 2024/2025&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FY 2024/2025&lt;/TD&gt;&lt;TD&gt;FY 2023/2024&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FY 2023/2024&lt;/TD&gt;&lt;TD&gt;FY 2022/2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FY 2022/2023&lt;/TD&gt;&lt;TD&gt;FY 2021/2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FY 2021/2022&lt;/TD&gt;&lt;TD&gt;FY 2020/2021&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My main goal is&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;To create Combo chart&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Bars to show sum of contributions $ (current and previous) over 5 FY&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Line to show growth rate as = (latest yr $ -&amp;nbsp;prev yr$) divide prev&amp;nbsp;yr$&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&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>Mon, 08 Dec 2025 04:42:17 GMT</pubDate>
    <dc:creator>Neha121</dc:creator>
    <dc:date>2025-12-08T04:42:17Z</dc:date>
    <item>
      <title>Previous Year in Bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Year-in-Bar-chart/m-p/2538380#M108944</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have Below table where I have FY and contribution how do I get&amp;nbsp;prev&amp;nbsp;yr Contributions&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Financial Year&lt;/TD&gt;&lt;TD&gt;Contributions$&lt;/TD&gt;&lt;TD&gt;prev&amp;nbsp;yr Contributions$&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FY 2025/2026&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FY 2024/2025&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FY 2023/2024&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FY 2022/2023&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FY 2021/2022&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a table another table that has below data... but not sure rather than creating another table is there another smart way of achieving above table&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Financial Year&lt;/TD&gt;&lt;TD&gt;Previous FY Year&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FY 2025/2026&lt;/TD&gt;&lt;TD&gt;FY 2024/2025&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FY 2024/2025&lt;/TD&gt;&lt;TD&gt;FY 2023/2024&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FY 2023/2024&lt;/TD&gt;&lt;TD&gt;FY 2022/2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FY 2022/2023&lt;/TD&gt;&lt;TD&gt;FY 2021/2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FY 2021/2022&lt;/TD&gt;&lt;TD&gt;FY 2020/2021&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My main goal is&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;To create Combo chart&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Bars to show sum of contributions $ (current and previous) over 5 FY&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Line to show growth rate as = (latest yr $ -&amp;nbsp;prev yr$) divide prev&amp;nbsp;yr$&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&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>Mon, 08 Dec 2025 04:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Year-in-Bar-chart/m-p/2538380#M108944</guid>
      <dc:creator>Neha121</dc:creator>
      <dc:date>2025-12-08T04:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year in Bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Year-in-Bar-chart/m-p/2538399#M108946</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;BR /&gt;Please find below backend script based on your sample data&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Script:&lt;/P&gt;&lt;P&gt;Contributions:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;FinancialYear, Contributions&lt;BR /&gt;FY 2025/2026, 10&lt;BR /&gt;FY 2024/2025, 20&lt;BR /&gt;FY 2023/2024, 30&lt;BR /&gt;FY 2022/2023, 40&lt;BR /&gt;FY 2021/2022, 50&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Contributions_Sorted:&lt;BR /&gt;LOAD&lt;BR /&gt;FinancialYear,&lt;BR /&gt;Contributions,&lt;BR /&gt;IF(IsNull(Previous(Contributions)), 0, Previous(Contributions)) as PrevYrContributions&lt;BR /&gt;RESIDENT Contributions&lt;BR /&gt;ORDER BY FinancialYear desc;&lt;/P&gt;&lt;P&gt;drop table Contributions;&lt;/P&gt;&lt;P&gt;Front end: Dimensions :&amp;nbsp;&amp;nbsp;FinancialYear&lt;/P&gt;&lt;P&gt;3 measure&amp;nbsp;&lt;BR /&gt;Current Year: sum(Contributions) -- bar&lt;/P&gt;&lt;P&gt;Prev Year : sum(PrevYrContributions) -- bar&lt;BR /&gt;&lt;BR /&gt;%:&amp;nbsp;(Sum(Contributions) - Sum(PrevYrContributions)) / Sum(PrevYrContributions)&amp;nbsp; -- Line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attaching screenshot for your refernece&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ysalvi43_0-1765183227666.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/185564i60FD3FE92798A181/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ysalvi43_0-1765183227666.png" alt="ysalvi43_0-1765183227666.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Do let me know if any other part is missed&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 08:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Year-in-Bar-chart/m-p/2538399#M108946</guid>
      <dc:creator>ysalvi43</dc:creator>
      <dc:date>2025-12-08T08:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year in Bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Year-in-Bar-chart/m-p/2538566#M108961</link>
      <description>&lt;P&gt;this works when I just have one attribute(&lt;SPAN&gt;FinancialYear)&lt;/SPAN&gt; in&amp;nbsp;&lt;SPAN&gt;Contributions table however I have two more attributes. So the main table has&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FinancialYear, Company, Department, Contributions&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Company, Department are part of filters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it doesnt work when I have multiple dimensions&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 02:47:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Year-in-Bar-chart/m-p/2538566#M108961</guid>
      <dc:creator>Neha121</dc:creator>
      <dc:date>2025-12-09T02:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year in Bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Year-in-Bar-chart/m-p/2538567#M108962</link>
      <description>&lt;P&gt;If I dont want 2 bars just 1 bar for current contribution and the line formula can I do it directly in Chart?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 03:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Year-in-Bar-chart/m-p/2538567#M108962</guid>
      <dc:creator>Neha121</dc:creator>
      <dc:date>2025-12-09T03:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year in Bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-Year-in-Bar-chart/m-p/2538593#M108965</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/143821"&gt;@Neha121&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The as we increase the granularity you will have to group by the dimension, so that when you filter the data as per company, department it should get filters out below is the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here you will have to note that Sorting based on each dimension is the important step because if it is incorrect then the previous function will fetch incorrect value&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Script:&lt;/P&gt;&lt;P&gt;ContributionsRaw:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;FinancialYear, Company, Department, Contributions&lt;BR /&gt;FY 2025/2026, ABC Corp, Finance, 10&lt;BR /&gt;FY 2024/2025, ABC Corp, Finance, 20&lt;BR /&gt;FY 2023/2024, ABC Corp, Finance, 30&lt;/P&gt;&lt;P&gt;FY 2025/2026, ABC Corp, HR, 15&lt;BR /&gt;FY 2024/2025, ABC Corp, HR, 25&lt;BR /&gt;FY 2023/2024, ABC Corp, HR, 35&lt;/P&gt;&lt;P&gt;FY 2025/2026, XYZ Ltd, IT, 18&lt;BR /&gt;FY 2024/2025, XYZ Ltd, IT, 28&lt;BR /&gt;FY 2023/2024, XYZ Ltd, IT, 38&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;ContributionsAgg:&lt;BR /&gt;LOAD&lt;BR /&gt;FinancialYear,&lt;BR /&gt;Company,&lt;BR /&gt;Department,&lt;BR /&gt;Sum(Contributions) AS TotalContributions&lt;BR /&gt;RESIDENT ContributionsRaw&lt;BR /&gt;GROUP BY&lt;BR /&gt;FinancialYear,&lt;BR /&gt;Company,&lt;BR /&gt;Department;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;ContribSorted:&lt;BR /&gt;LOAD&lt;BR /&gt;FinancialYear,&lt;BR /&gt;Company,&lt;BR /&gt;Department,&lt;BR /&gt;TotalContributions&lt;BR /&gt;RESIDENT ContributionsAgg&lt;BR /&gt;ORDER BY&lt;BR /&gt;Company, Department, FinancialYear DESC;&lt;BR /&gt;&lt;BR /&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;FinalContrib:&lt;BR /&gt;LOAD&lt;BR /&gt;FinancialYear,&lt;BR /&gt;Company,&lt;BR /&gt;Department,&lt;BR /&gt;TotalContributions,&lt;BR /&gt;If(Previous(Company)=Company AND Previous(Department)=Department,&lt;BR /&gt;Previous(TotalContributions)&lt;BR /&gt;) AS PrevYrContributions&lt;BR /&gt;&lt;BR /&gt;RESIDENT ContribSorted;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DROP TABLE ContributionsRaw;&lt;BR /&gt;DROP TABLE ContributionsAgg;&lt;BR /&gt;DROP TABLE ContribSorted;&lt;/P&gt;&lt;P&gt;Attaching frontend screenshot where you can keep current contribution and %&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ysalvi43_0-1765265281773.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/185641iB87DE662504065AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ysalvi43_0-1765265281773.png" alt="ysalvi43_0-1765265281773.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Another step is by creating string between your dimension which all you requried, but those field/ dimesion should be present in both the tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 07:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-Year-in-Bar-chart/m-p/2538593#M108965</guid>
      <dc:creator>ysalvi43</dc:creator>
      <dc:date>2025-12-09T07:29:05Z</dc:date>
    </item>
  </channel>
</rss>

