<?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: Section access to restrict data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Section-access-to-restrict-data/m-p/523573#M1135055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an example that shows how to set it up.&amp;nbsp; Note if a users need access to multiple data sets (in my example multiple regions) then you need to have multiple lines in the Section Access Table.&amp;nbsp; Also do not forget to check "Initial Data Reduction Based on Section Access" under Setting -&amp;gt; Document Properties -&amp;gt; Openning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the attached QVW you can enter user1 through user5 to gain access to the QVW and see different data sets being displayed.&amp;nbsp; Below is the script used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Section Access;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ACCESS, USERID,&amp;nbsp; REGION&lt;/P&gt;&lt;P&gt;ADMIN, ADMIN,&lt;/P&gt;&lt;P&gt;USER, USER1,&amp;nbsp; AFRICA&lt;/P&gt;&lt;P&gt;USER, USER1,&amp;nbsp; AMERICA&lt;/P&gt;&lt;P&gt;USER, USER2,&amp;nbsp; AMERICA&lt;/P&gt;&lt;P&gt;USER, USER3,&amp;nbsp; ASIA&lt;/P&gt;&lt;P&gt;USER, USER4,&amp;nbsp; EUROPE&lt;/P&gt;&lt;P&gt;USER, USER5,&amp;nbsp; AMERICA&lt;/P&gt;&lt;P&gt;USER, USER5,&amp;nbsp; *&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Section Application;&lt;/P&gt;&lt;P&gt;SALES:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;REGION, PROFIT&lt;/P&gt;&lt;P&gt;AFRICA, 1000&lt;/P&gt;&lt;P&gt;AMERICA, 2000&lt;/P&gt;&lt;P&gt;ASIA, 3000&lt;/P&gt;&lt;P&gt;EUROPE, 4000&lt;/P&gt;&lt;P&gt;OCEANIA, 5000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Oct 2013 21:47:32 GMT</pubDate>
    <dc:creator>Josh_Good</dc:creator>
    <dc:date>2013-10-24T21:47:32Z</dc:date>
    <item>
      <title>Section access to restrict data</title>
      <link>https://community.qlik.com/t5/QlikView/Section-access-to-restrict-data/m-p/523572#M1135054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to figure out how to use section access to restrict what data my users can see.&amp;nbsp; I have a relatively straightforward set of sales data that is loaded in as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRACE Load Table sales_data;&lt;/P&gt;&lt;P&gt;TRACE ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Salesperson,&lt;/P&gt;&lt;P&gt;Customer,&lt;/P&gt;&lt;P&gt;StockCode,&lt;/P&gt;&lt;P&gt;QtyInvoiced,&lt;/P&gt;&lt;P&gt;NetSalesValue,&lt;/P&gt;&lt;P&gt;SalesOrder,&lt;/P&gt;&lt;P&gt;SalesPersonName,&lt;/P&gt;&lt;P&gt;CustomerName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need to do is restrict access down based on the Salesperson field.&amp;nbsp; For example I might have a manager that I want to be able to access all (or maybe a specific group of salespersons data) whereas the actual Salesperson can only see data for their own customers.&amp;nbsp; Maybe easier to explain in tabular format, as per below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid rgb(0, 0, 0); width: 351px; height: 72px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Network username&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Access to Salespersons Data&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;johnsmith&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;ALL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;joebloggs&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01, 02, 07&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;peterjones&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;07&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone explain how I achieve this?&amp;nbsp; It will be a million miles more economical than creating and maintaining lots of individual .qvs files for each user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As ever, thanks for any help that you can provide!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 20:02:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-access-to-restrict-data/m-p/523572#M1135054</guid>
      <dc:creator />
      <dc:date>2013-10-24T20:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Section access to restrict data</title>
      <link>https://community.qlik.com/t5/QlikView/Section-access-to-restrict-data/m-p/523573#M1135055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an example that shows how to set it up.&amp;nbsp; Note if a users need access to multiple data sets (in my example multiple regions) then you need to have multiple lines in the Section Access Table.&amp;nbsp; Also do not forget to check "Initial Data Reduction Based on Section Access" under Setting -&amp;gt; Document Properties -&amp;gt; Openning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the attached QVW you can enter user1 through user5 to gain access to the QVW and see different data sets being displayed.&amp;nbsp; Below is the script used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Section Access;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ACCESS, USERID,&amp;nbsp; REGION&lt;/P&gt;&lt;P&gt;ADMIN, ADMIN,&lt;/P&gt;&lt;P&gt;USER, USER1,&amp;nbsp; AFRICA&lt;/P&gt;&lt;P&gt;USER, USER1,&amp;nbsp; AMERICA&lt;/P&gt;&lt;P&gt;USER, USER2,&amp;nbsp; AMERICA&lt;/P&gt;&lt;P&gt;USER, USER3,&amp;nbsp; ASIA&lt;/P&gt;&lt;P&gt;USER, USER4,&amp;nbsp; EUROPE&lt;/P&gt;&lt;P&gt;USER, USER5,&amp;nbsp; AMERICA&lt;/P&gt;&lt;P&gt;USER, USER5,&amp;nbsp; *&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Section Application;&lt;/P&gt;&lt;P&gt;SALES:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;REGION, PROFIT&lt;/P&gt;&lt;P&gt;AFRICA, 1000&lt;/P&gt;&lt;P&gt;AMERICA, 2000&lt;/P&gt;&lt;P&gt;ASIA, 3000&lt;/P&gt;&lt;P&gt;EUROPE, 4000&lt;/P&gt;&lt;P&gt;OCEANIA, 5000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 21:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-access-to-restrict-data/m-p/523573#M1135055</guid>
      <dc:creator>Josh_Good</dc:creator>
      <dc:date>2013-10-24T21:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Section access to restrict data</title>
      <link>https://community.qlik.com/t5/QlikView/Section-access-to-restrict-data/m-p/523574#M1135056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have now finally made some decent progress with this one, but have arrived at an additional problem further down the line.&amp;nbsp; So, using the following, I have managed to restrict access to the data based on network credentials of the user logging into the Qlikview access point:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Section Access;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACCESS, NTNAME, SALESPERSON&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADMIN, MYDOMAIN\JOEBLOGGS, *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; USER, MYDOMAIN\JOHNSMITH,41&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; USER, MYDOMAIN\PETERJONES,40&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; USER, MYDOMAIN\PETERJONES,42&lt;/P&gt;&lt;P&gt;...];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Section Application;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Salesperson AS SALESPERSON,&lt;/P&gt;&lt;P&gt;NetSalesValue,&lt;/P&gt;&lt;P&gt;CustomerName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM MyCompanyData.dbo.SQL_VIEW_SALES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I've now hit is that I have multiple SQL Loads, all concatenating to the Sales table - I need to apply the same Section Application to each SQL Load, but so far via trial and error I don't appear to be having much success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest how to tackle this (for a relative beginner to Qlikview)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 13:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-access-to-restrict-data/m-p/523574#M1135056</guid>
      <dc:creator />
      <dc:date>2013-11-01T13:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Section access to restrict data</title>
      <link>https://community.qlik.com/t5/QlikView/Section-access-to-restrict-data/m-p/523575#M1135057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you thought about exporting the SQL statements to separate documents (with limited access for end users) and reload tasks with QVDs as output? Then you can load the data from the QVD&amp;nbsp; into the original dashboard and keep structure that perhaps are easier to work with. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 15:15:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-access-to-restrict-data/m-p/523575#M1135057</guid>
      <dc:creator />
      <dc:date>2013-11-01T15:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Section access to restrict data</title>
      <link>https://community.qlik.com/t5/QlikView/Section-access-to-restrict-data/m-p/523576#M1135058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more thing I noticed is when using section access everything must be in uppercase.  That is likely the issue. Wrap all your fields in the UPPER function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 16:51:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-access-to-restrict-data/m-p/523576#M1135058</guid>
      <dc:creator>Josh_Good</dc:creator>
      <dc:date>2013-11-01T16:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Section access to restrict data</title>
      <link>https://community.qlik.com/t5/QlikView/Section-access-to-restrict-data/m-p/523577#M1135059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is how I've ended up tackling it and I feel I'm almost there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Upper case issue raised by Josh below I don't think is a problem here as the field name is in Upper case already and the contents are always numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I've loaded all of my various SQL views into one QVD master file and have adapted my main dashboard to look at this QVD for it's source data.&amp;nbsp; I think the reason that it's failing now is that there is a calendar script (provided by someone else) the output from which also needs to be incorporated into the QVD file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The QVD file is created in a tab at the back end of my script as such:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRACE Create QVD file;&lt;/P&gt;&lt;P&gt;Store Sales into \\Qlikview\Qlikview_Files\QVD_Files\MasterSales.qvd;&lt;/P&gt;&lt;P&gt;TRACE Finishing building master sales file;&lt;/P&gt;&lt;P&gt;TRACE Drop Sales Table Now QVD Built;&lt;/P&gt;&lt;P&gt;Drop Table Sales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But..... just before this tab in my file I have two tabs creating a calendar (provided to me by someone else) and they essentially create a whole load of additional fields that I use in the dashboard.&amp;nbsp; For example fields such as; Sales.IsLastYear, Sales.IsCurrentMonth etc.&amp;nbsp; These additional fields aren't in my QVD and (I think) that is my final (hopefully) problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how I get these into the QVD?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 18:06:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-access-to-restrict-data/m-p/523577#M1135059</guid>
      <dc:creator />
      <dc:date>2013-11-01T18:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Section access to restrict data</title>
      <link>https://community.qlik.com/t5/QlikView/Section-access-to-restrict-data/m-p/523578#M1135060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved - the previous post above was a red-herring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer was:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/48483_Capture.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem now solved - thanks to the guys above that helped/made suggestions, all incredibly helpful and collectively got me to the finish line!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 20:19:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-access-to-restrict-data/m-p/523578#M1135060</guid>
      <dc:creator />
      <dc:date>2013-11-01T20:19:04Z</dc:date>
    </item>
  </channel>
</rss>

