<?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: OSUser(): Visible data restricted through user in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/OSUser-Visible-data-restricted-through-user/m-p/687346#M249011</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I managed to get the result through conditional Expressions. Thanks everyone!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jul 2014 13:02:27 GMT</pubDate>
    <dc:creator>PhilippZiemer</dc:creator>
    <dc:date>2014-07-31T13:02:27Z</dc:date>
    <item>
      <title>OSUser(): Visible data restricted through user</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-Visible-data-restricted-through-user/m-p/687339#M249004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to restrict the data visible, not just remove the values or distribute the data already restricted for users through publisher or nprinting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each user has a target. There is a target for every year:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/63458_pastedImage_0.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The users have restircted rights depending on their OSUser() (I am Tom in this case):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/63459_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can only see my data currently:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/63460_pastedImage_3.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I am admin, I want to see the data of everybody. I am not able to achieve this. I tried mainly set analysis. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;sum(if(only( {$ &amp;lt; OSUser = {'$(=OSUser())'}&amp;gt; } Admin_Flag ) = 'true', Target))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;You can find every a prepared example in the attachment. Thansk for any help. I am open to different approaches.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Best&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Philipp&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 08:00:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-Visible-data-restricted-through-user/m-p/687339#M249004</guid>
      <dc:creator>PhilippZiemer</dc:creator>
      <dc:date>2014-07-31T08:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: OSUser(): Visible data restricted through user</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-Visible-data-restricted-through-user/m-p/687340#M249005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you use section access&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway I think it's better to add 'Role' entity and then connect the users with the roles. So you get more flexibility and can use the same expressions for both admins and users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually it's better to use set analysis for that like this: Sum({&amp;lt;OSUser={'$(=OSUser())'}&amp;gt;} Target)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also have to restrict server objects creation, otherwise the users can simply change the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 11:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-Visible-data-restricted-through-user/m-p/687340#M249005</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-07-31T11:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: OSUser(): Visible data restricted through user</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-Visible-data-restricted-through-user/m-p/687341#M249006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried with this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if(OSUser = OSUser() or Admin_Flag = 'true', Target))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 11:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-Visible-data-restricted-through-user/m-p/687341#M249006</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-07-31T11:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: OSUser(): Visible data restricted through user</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-Visible-data-restricted-through-user/m-p/687342#M249007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It just shows current user data and admins data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 12:08:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-Visible-data-restricted-through-user/m-p/687342#M249007</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-07-31T12:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: OSUser(): Visible data restricted through user</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-Visible-data-restricted-through-user/m-p/687343#M249008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a different expression for user or admin like this:&lt;/P&gt;&lt;P&gt;if(Concat(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{&amp;lt;OSUser={'$(=OSUser())'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Admin_Flag) = 'true',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum(Target)&lt;/SPAN&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;"&gt;Sum({&amp;lt;OSUser={'$(=OSUser())'}&amp;gt;} Target)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 12:14:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-Visible-data-restricted-through-user/m-p/687343#M249008</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-07-31T12:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: OSUser(): Visible data restricted through user</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-Visible-data-restricted-through-user/m-p/687344#M249009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the same:&lt;/P&gt;&lt;P&gt;if(match(minstring({&amp;lt;OSUser={'$(=OSUser())'}&amp;gt;} Admin_Flag), 'true'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Target), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;OSUser={'$(=OSUser())'}&amp;gt;} Target)&lt;/P&gt;&lt;P&gt;) &lt;/P&gt;&lt;P&gt;but it delivers just the user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 12:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-Visible-data-restricted-through-user/m-p/687344#M249009</guid>
      <dc:creator>PhilippZiemer</dc:creator>
      <dc:date>2014-07-31T12:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: OSUser(): Visible data restricted through user</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-Visible-data-restricted-through-user/m-p/687345#M249010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is unwanted here because it is just one simple value in the hole application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 12:48:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-Visible-data-restricted-through-user/m-p/687345#M249010</guid>
      <dc:creator>PhilippZiemer</dc:creator>
      <dc:date>2014-07-31T12:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: OSUser(): Visible data restricted through user</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-Visible-data-restricted-through-user/m-p/687346#M249011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I managed to get the result through conditional Expressions. Thanks everyone!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 13:02:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-Visible-data-restricted-through-user/m-p/687346#M249011</guid>
      <dc:creator>PhilippZiemer</dc:creator>
      <dc:date>2014-07-31T13:02:27Z</dc:date>
    </item>
  </channel>
</rss>

