<?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: Bar graph show previous year values based on selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bar-graph-show-previous-year-values-based-on-selection/m-p/98216#M757199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just amazed by the speed with which you did it.&lt;/P&gt;&lt;P&gt;Helpful to everyone as usual &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt; &lt;/P&gt;&lt;P&gt;Thank You so much &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2018 19:45:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-05T19:45:56Z</dc:date>
    <item>
      <title>Bar graph show previous year values based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-graph-show-previous-year-values-based-on-selection/m-p/98211#M757194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt;"&gt;Some Background:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have quarterly sales data from year 2010 to 2018.I am trying to show the bar graph for this data where my bars represent sales for each year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a user to select the financial year&amp;nbsp; and/or quarter and then bar graph should show data till 3 years prior to selected date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt;"&gt;For example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Part A:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If a user&lt;STRONG&gt; selects financial year 2018&lt;/STRONG&gt; and no quarter then I want bar &lt;STRONG&gt;graph to display bars&lt;/STRONG&gt; indicating sales for&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;2018 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2017 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2016&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Part B:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If a user &lt;STRONG&gt;selects financial year 2018 and quarter Q2&lt;/STRONG&gt; then bar graph should show :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2018 Q2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2018 Q1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2017 Q4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2017 Q3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2017 Q2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2017 Q1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2016 Q4&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2016 Q3&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2016 Q2&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2016 Q1&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2015 Q4&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2015 Q3&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2015 Q2&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Depending upon whether or not quarter is selected the behavior of chart should be different and depending upon quarter the previous&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;3 years should be shown &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 12pt;"&gt;The problem I am facing:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;I am able to display the 3 previous year depending upon the current selection for financial year (Part A of example) when only financial year is selected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;But I am not able to achieve the Part B of example where a user selects a quarter along with financial year and then my chart should show bars 3 years prior to financial year selection at quarter level.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Also I have another expression in the Qlikview which calculates the cumulative sales I also want that to display correctly when a quarter is selected along with financial year.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 12pt;"&gt;The expression in chart&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 12pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Sales:&lt;/SPAN&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-size: 10pt;"&gt;sum({$&amp;lt;[Financial Year] = {"&amp;gt;=$(=$(Selected_Year_3)) &amp;lt;=$(=$(Selected_Year))"}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-size: 10pt;"&gt;Cumulative Sales:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-size: 10pt;"&gt;RangeSum(Above(sum({&amp;lt;[Financial Year] = {"&amp;gt;=$(=$(Selected_Year_3)) &amp;lt;=$(=$(Selected_Year))"}&amp;gt;}Sales), 0, rowno()))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-size: 12pt;"&gt;Variables:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-size: 10pt;"&gt;Selected_Year = GetFieldSelections([Financial Year])&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-size: 10pt;"&gt;Selected_Year_3 =GetFieldSelections([Financial Year]) - 3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-size: 10pt;"&gt;Dimension:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-size: 10pt;"&gt;Financial_Year&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Attached is the data and qlikview file.Any help will be appreciated&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Please ask if you need any clarification or if anything is difficult to understand&lt;/SPAN&gt;&lt;STRONG style=": ; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style=": ; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-graph-show-previous-year-values-based-on-selection/m-p/98211#M757194</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Bar graph show previous year values based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-graph-show-previous-year-values-based-on-selection/m-p/98212#M757195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attaching the updated qvw file.Please consider this one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 19:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-graph-show-previous-year-values-based-on-selection/m-p/98212#M757195</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-05T19:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Bar graph show previous year values based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-graph-show-previous-year-values-based-on-selection/m-p/98213#M757196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a date-field in your real application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 19:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-graph-show-previous-year-values-based-on-selection/m-p/98213#M757196</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2018-09-05T19:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bar graph show previous year values based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-graph-show-previous-year-values-based-on-selection/m-p/98214#M757197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My data is same as&amp;nbsp; attached in excel&lt;/P&gt;&lt;P&gt;I have columns like Financial Year, Quarter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 19:17:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-graph-show-previous-year-values-based-on-selection/m-p/98214#M757197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-05T19:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Bar graph show previous year values based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-graph-show-previous-year-values-based-on-selection/m-p/98215#M757198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this out- You can also use single expression with if condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 19:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-graph-show-previous-year-values-based-on-selection/m-p/98215#M757198</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2018-09-05T19:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Bar graph show previous year values based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-graph-show-previous-year-values-based-on-selection/m-p/98216#M757199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just amazed by the speed with which you did it.&lt;/P&gt;&lt;P&gt;Helpful to everyone as usual &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt; &lt;/P&gt;&lt;P&gt;Thank You so much &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 19:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-graph-show-previous-year-values-based-on-selection/m-p/98216#M757199</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-05T19:45:56Z</dc:date>
    </item>
  </channel>
</rss>

