<?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: To get data for two years by selecting year using line chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/To-get-data-for-two-years-by-selecting-year-using-line-chart/m-p/1287723#M849323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes guys,I have add restriction so only it didn't work.Now I fixed it .Thanks for your help and quick reply.sorry for inconvenience.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Mar 2017 11:43:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-03-15T11:43:51Z</dc:date>
    <item>
      <title>To get data for two years by selecting year using line chart</title>
      <link>https://community.qlik.com/t5/QlikView/To-get-data-for-two-years-by-selecting-year-using-line-chart/m-p/1287715#M849315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have two years of data(2016,2017) in my QVD. I need to show my data in&lt;STRONG&gt; line chart&lt;/STRONG&gt;.If I select 2017 year my data is showing in line chart but if I select 2016 it is not showing.I used expression like &lt;STRONG&gt;sum(Field name)&lt;/STRONG&gt; and I browsed but I can get like &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;sum({$&amp;lt;year={"$(=only(year))"}&amp;gt;}Field-name) //current year&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;sum({$&amp;lt;year={"$(=only(year)-1)"}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Field-name&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but it doesn't work.Is there any other expression to get it.Please help me to get it as soon as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harini S&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/To-get-data-for-two-years-by-selecting-year-using-line-chart/m-p/1287715#M849315</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: To get data for two years by selecting year using line chart</title>
      <link>https://community.qlik.com/t5/QlikView/To-get-data-for-two-years-by-selecting-year-using-line-chart/m-p/1287716#M849316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;which of the three expressions are you using in your chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 15:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-get-data-for-two-years-by-selecting-year-using-line-chart/m-p/1287716#M849316</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-14T15:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: To get data for two years by selecting year using line chart</title>
      <link>https://community.qlik.com/t5/QlikView/To-get-data-for-two-years-by-selecting-year-using-line-chart/m-p/1287717#M849317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(Field name) &lt;/STRONG&gt;will work if you have year as a dimension&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({$&amp;lt;year={"$(=only(year))"}&amp;gt;}Field-name) &lt;/STRONG&gt;will work for the year you have selected (and only when you have one selected)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({$&amp;lt;year={"$(=only(year)-1)"}&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Field-name&lt;/SPAN&gt;)&lt;/STRONG&gt;will work when you have 2017 selected, but not when you have 2016 selected as you don't have year 2015 available&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;What exactly do you want to show?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;A line comparing both years? If so add year as a dimension and use the first formula &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 15:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-get-data-for-two-years-by-selecting-year-using-line-chart/m-p/1287717#M849317</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-03-14T15:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: To get data for two years by selecting year using line chart</title>
      <link>https://community.qlik.com/t5/QlikView/To-get-data-for-two-years-by-selecting-year-using-line-chart/m-p/1287718#M849318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response!!!!&lt;/P&gt;&lt;P&gt;currently i am using sum(Field-name) but I tried those three expression but it doesn't work. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 15:16:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-get-data-for-two-years-by-selecting-year-using-line-chart/m-p/1287718#M849318</guid>
      <dc:creator />
      <dc:date>2017-03-14T15:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: To get data for two years by selecting year using line chart</title>
      <link>https://community.qlik.com/t5/QlikView/To-get-data-for-two-years-by-selecting-year-using-line-chart/m-p/1287719#M849319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response and great Explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to add any value of 2016&amp;nbsp; and 2017.I need to just show when I select 2016 that year data to display in line chart and by selecting 2017 &lt;SPAN style="font-size: 13.3333px;"&gt;that year data to display in line chart&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;I have tried those three expression but it doesn't work.Do u have any idea....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 15:20:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-get-data-for-two-years-by-selecting-year-using-line-chart/m-p/1287719#M849319</guid>
      <dc:creator />
      <dc:date>2017-03-14T15:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: To get data for two years by selecting year using line chart</title>
      <link>https://community.qlik.com/t5/QlikView/To-get-data-for-two-years-by-selecting-year-using-line-chart/m-p/1287720#M849320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It show 2017 for the selecction Year = 2017:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;sum({$&amp;lt;year={"$(=Max(year))"}&amp;gt;}Field-name) //current year&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;It show 2016 for the selecction Year = 2017:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;sum({$&amp;lt;year={"$(=(Max(year)-1))"}&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Field-name&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;German.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 15:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-get-data-for-two-years-by-selecting-year-using-line-chart/m-p/1287720#M849320</guid>
      <dc:creator>german24</dc:creator>
      <dc:date>2017-03-14T15:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: To get data for two years by selecting year using line chart</title>
      <link>https://community.qlik.com/t5/QlikView/To-get-data-for-two-years-by-selecting-year-using-line-chart/m-p/1287721#M849321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your calendar table (or year field) correctly connected to the fact table which holds &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Field-name&lt;/STRONG&gt;? Can you share an image of your data model?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 17:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-get-data-for-two-years-by-selecting-year-using-line-chart/m-p/1287721#M849321</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-14T17:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: To get data for two years by selecting year using line chart</title>
      <link>https://community.qlik.com/t5/QlikView/To-get-data-for-two-years-by-selecting-year-using-line-chart/m-p/1287722#M849322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Sunny, I don't think your data is correctly linked otherwise sum(Field name)&amp;nbsp; would always show you the correct data based on your selections&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 07:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-get-data-for-two-years-by-selecting-year-using-line-chart/m-p/1287722#M849322</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-03-15T07:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: To get data for two years by selecting year using line chart</title>
      <link>https://community.qlik.com/t5/QlikView/To-get-data-for-two-years-by-selecting-year-using-line-chart/m-p/1287723#M849323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes guys,I have add restriction so only it didn't work.Now I fixed it .Thanks for your help and quick reply.sorry for inconvenience.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 11:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-get-data-for-two-years-by-selecting-year-using-line-chart/m-p/1287723#M849323</guid>
      <dc:creator />
      <dc:date>2017-03-15T11:43:51Z</dc:date>
    </item>
  </channel>
</rss>

