<?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: Only show specified year selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Only-show-specified-year-selection/m-p/1173297#M906893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you John, but I actually figured out how to use the above approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, it was important to split the argument into two parts, as the ' ' caused the syntax issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=if([Button]=1,'{&amp;lt;year={&lt;SPAN style="text-decoration: underline;"&gt;'&amp;gt;=$(yearlow)&amp;lt;=$(yearhigh)'&lt;/SPAN&gt;}, company=alternatstate1::company}&amp;gt;',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;So I made another variable for the underlined part.. let's call it yearselect.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Finally, my expression looks like this: &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=sum({&amp;lt;year={$(yearselect)},$(variableforalternatestate1)&amp;gt;+&amp;lt;year={$(yearselect)},$(variableforalternatestate2)&amp;gt;}[$(fieldx)])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Many thanks to both of you! Much appreciated! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jun 2016 11:24:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-23T11:24:09Z</dc:date>
    <item>
      <title>Only show specified year selection</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-specified-year-selection/m-p/1173293#M906889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a year coloum from 2000 to 2016. Now I have two slider objects, where I can select the desired start year and another one for the desired end year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. I only wanna illustrate years 2010 to 2014 in my bar chart. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable for the start year is called "yearlow" and for the end year "yearhigh". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions: company name and year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression is normally something like this: =sum({&amp;lt;company=$::company&amp;gt;}[net profit])&lt;/P&gt;&lt;P&gt;----------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two ideas how to solve it:&lt;/P&gt;&lt;P&gt;1. instead of the year dimension a customized dimension where I include the two year variables, but how?&lt;/P&gt;&lt;P&gt;2. Include the year range via set analysis in the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your support is much appreciated guys!&lt;/P&gt;&lt;P&gt;Regards!&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/Only-show-specified-year-selection/m-p/1173293#M906889</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Only show specified year selection</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-specified-year-selection/m-p/1173294#M906890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A set analysis expression sounds like a good idea: sum({&amp;lt;&lt;STRONG&gt;year={'&amp;gt;=$(yearlow)&amp;lt;=$(yearhigh)'}&lt;/STRONG&gt;, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;company=$::company&amp;gt;}[net profit])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 16:05:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-specified-year-selection/m-p/1173294#M906890</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-06-22T16:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Only show specified year selection</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-specified-year-selection/m-p/1173295#M906891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much. Unfortunately, it doesn't work yet, but I assume there's only a syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now use a scatter chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x: =sum($(variableforalternatestate1)+$(&lt;SPAN style="font-size: 13.3333px;"&gt;variableforalternatestate2&lt;/SPAN&gt;)[$(fieldx)])&lt;/P&gt;&lt;P&gt;y: =sum($(&lt;SPAN style="font-size: 13.3333px;"&gt;variableforalternatestate1&lt;/SPAN&gt;)+$(&lt;SPAN style="font-size: 13.3333px;"&gt;variableforalternatestate2&lt;/SPAN&gt;)[$(fieldy)])&lt;/P&gt;&lt;P&gt;z: =sum($(&lt;SPAN style="font-size: 13.3333px;"&gt;variableforalternatestate1&lt;/SPAN&gt;)+$(&lt;SPAN style="font-size: 13.3333px;"&gt;variableforalternatestate2&lt;/SPAN&gt;)[$(fieldz)])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variableforalternatestate1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if([Button]=1,'{&amp;lt;year={'&amp;gt;=$(yearlow)&amp;lt;=$(&lt;SPAN style="font-size: 13.3333px;"&gt;yearhigh&lt;/SPAN&gt;)'}, company=alternatstate1::&lt;SPAN style="font-size: 13.3333px;"&gt;company&lt;/SPAN&gt;}&amp;gt;',&lt;/P&gt;&lt;P&gt;if([Button]=2,'{&amp;lt;year={'&amp;gt;=$(&lt;SPAN style="font-size: 13.3333px;"&gt;yearlow&lt;/SPAN&gt;)&amp;lt;=$(&lt;SPAN style="font-size: 13.3333px;"&gt;yearhigh&lt;/SPAN&gt;)'}, company=&lt;SPAN style="font-size: 13.3333px;"&gt;alternatstate2&lt;/SPAN&gt;::&lt;SPAN style="font-size: 13.3333px;"&gt;company&lt;/SPAN&gt;}&amp;gt;',&lt;/P&gt;&lt;P&gt;if([Button]=3,'{&amp;lt;year={'&amp;gt;=$(&lt;SPAN style="font-size: 13.3333px;"&gt;yearlow&lt;/SPAN&gt;)&amp;lt;=$(&lt;SPAN style="font-size: 13.3333px;"&gt;yearhigh&lt;/SPAN&gt;)'}, company=&lt;SPAN style="font-size: 13.3333px;"&gt;alternatstate3&lt;/SPAN&gt;::&lt;SPAN style="font-size: 13.3333px;"&gt;company&lt;/SPAN&gt;}&amp;gt;',&lt;/P&gt;&lt;P&gt;if([Button]=4,'{&amp;lt;year={'&amp;gt;=$(&lt;SPAN style="font-size: 13.3333px;"&gt;yearlow&lt;/SPAN&gt;)&amp;lt;=$(&lt;SPAN style="font-size: 13.3333px;"&gt;yearhigh&lt;/SPAN&gt;)'}, company=&lt;SPAN style="font-size: 13.3333px;"&gt;alternatstate4&lt;/SPAN&gt;::&lt;SPAN style="font-size: 13.3333px;"&gt;company&lt;/SPAN&gt;}&amp;gt;',&lt;/P&gt;&lt;P&gt;if([Button]=5,'{&amp;lt;year={'&amp;gt;=$(&lt;SPAN style="font-size: 13.3333px;"&gt;yearlow&lt;/SPAN&gt;)&amp;lt;=$(&lt;SPAN style="font-size: 13.3333px;"&gt;yearhigh&lt;/SPAN&gt;)'}, company=&lt;SPAN style="font-size: 13.3333px;"&gt;alternatstate5&lt;/SPAN&gt;::&lt;SPAN style="font-size: 13.3333px;"&gt;company&lt;/SPAN&gt;}&amp;gt;')))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variableforalternatestate2 is similar to this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldx ,fieldy and fieldz definitely work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 16:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-specified-year-selection/m-p/1173295#M906891</guid>
      <dc:creator />
      <dc:date>2016-06-22T16:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Only show specified year selection</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-specified-year-selection/m-p/1173296#M906892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rather than variables and set analysis, consider incorporating it into your data model. You wouldn't hardcode the years like this, just giving you the idea of what the data would need to look like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;yearlow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;yearlow,year&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;2000,2000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;2000,2001&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;2000,2002&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;2000,2016&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;2001,2001&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;2001,2002&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;2015,2015&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;2015,2016&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;2016,2016&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;yearhigh:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; year as yearhigh&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,yearlow as year&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RESIDENT yearlow&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then go ahead and keep year as your dimension, and go ahead and keep the same expression. You just let them select yearlow and yearhigh like any other value. Maybe a calendar object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 19:48:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-specified-year-selection/m-p/1173296#M906892</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-06-22T19:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Only show specified year selection</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-specified-year-selection/m-p/1173297#M906893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you John, but I actually figured out how to use the above approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, it was important to split the argument into two parts, as the ' ' caused the syntax issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=if([Button]=1,'{&amp;lt;year={&lt;SPAN style="text-decoration: underline;"&gt;'&amp;gt;=$(yearlow)&amp;lt;=$(yearhigh)'&lt;/SPAN&gt;}, company=alternatstate1::company}&amp;gt;',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;So I made another variable for the underlined part.. let's call it yearselect.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Finally, my expression looks like this: &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=sum({&amp;lt;year={$(yearselect)},$(variableforalternatestate1)&amp;gt;+&amp;lt;year={$(yearselect)},$(variableforalternatestate2)&amp;gt;}[$(fieldx)])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Many thanks to both of you! Much appreciated! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 11:24:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-specified-year-selection/m-p/1173297#M906893</guid>
      <dc:creator />
      <dc:date>2016-06-23T11:24:09Z</dc:date>
    </item>
  </channel>
</rss>

