<?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: Restricting user access to data by one year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Restricting-user-access-to-data-by-one-year/m-p/260600#M98324</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could add an extra field to your table called, say, SelectableYear.&lt;/P&gt;&lt;P&gt;Populate it so that it is the same as your Year field, except that it&lt;/P&gt;&lt;P&gt;has null for the Year values you don't want the user to see.  Then, use&lt;/P&gt;&lt;P&gt;SelectableYear as the basis of your table or selector.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Angus.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jan 2012 22:21:50 GMT</pubDate>
    <dc:creator>gussfish</dc:creator>
    <dc:date>2012-01-09T22:21:50Z</dc:date>
    <item>
      <title>Restricting user access to data by one year</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-user-access-to-data-by-one-year/m-p/260599#M98323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A Happy New Year to everyone. A new year, a new problem....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to display data for a particular year in a chart as well as displaying the data for the equivalent period in the previous year. The year is selected via a list box. I can display the previous year's data using set analysis but the problem I am having is restricting the number of years that the user can select data for. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script has to pull data for one more 'past' year than I would like the user to see the data for so that I am holding the previous year's data. - e.g: for years 2011 &amp;amp; 2012 I have to extract data for 2010 so that if the user selects 2011, the set analysis has access to the 2010 data. But if I extract data for 2010 the user is then allowed to select this in a list box. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way I can restrict the user to just see the number of year's I have extracted the data for less one ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 17:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-user-access-to-data-by-one-year/m-p/260599#M98323</guid>
      <dc:creator>devans_1</dc:creator>
      <dc:date>2012-01-09T17:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting user access to data by one year</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-user-access-to-data-by-one-year/m-p/260600#M98324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could add an extra field to your table called, say, SelectableYear.&lt;/P&gt;&lt;P&gt;Populate it so that it is the same as your Year field, except that it&lt;/P&gt;&lt;P&gt;has null for the Year values you don't want the user to see.  Then, use&lt;/P&gt;&lt;P&gt;SelectableYear as the basis of your table or selector.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Angus.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 22:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-user-access-to-data-by-one-year/m-p/260600#M98324</guid>
      <dc:creator>gussfish</dc:creator>
      <dc:date>2012-01-09T22:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting user access to data by one year</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-user-access-to-data-by-one-year/m-p/260601#M98325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; Hi!At least in QV11 you can have an expression as listbox dimension, so you could put &lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;=&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=2011,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;as dimension (at the bottom of the fieldlist you will find the possibility to choose expression instead of just an existing field). Not shure from what release this is possible.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Anders&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 08:56:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-user-access-to-data-by-one-year/m-p/260601#M98325</guid>
      <dc:creator>anderslinden</dc:creator>
      <dc:date>2012-01-10T08:56:28Z</dc:date>
    </item>
    <item>
      <title>Restricting user access to data by one year</title>
      <link>https://community.qlik.com/t5/QlikView/Restricting-user-access-to-data-by-one-year/m-p/260602#M98326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone. Both these replies are along the same lines and seem to be the solution. I added a couple of bells and whistles by setting up a variable on opening. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Min Year =min ({1} Year) &lt;/P&gt;&lt;SPAN style="font-size: 1;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;I can then refer to this in the list box.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=if (Year = $(Min Year), null (), Year) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 10:42:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restricting-user-access-to-data-by-one-year/m-p/260602#M98326</guid>
      <dc:creator>devans_1</dc:creator>
      <dc:date>2012-01-10T10:42:50Z</dc:date>
    </item>
  </channel>
</rss>

