<?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 Login user role and count in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Login-user-role-and-count/m-p/101825#M6808</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Group members . I am new to this group and &lt;SPAN style="font-size: 10pt;"&gt;Qlik&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; Sense&amp;nbsp; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have a requirement , to display users based count on the summary page and in the detailed page it should display everything.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am trying to create a &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;measure&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; based on OSUser() and checking &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;against my data and trying to retrieve but it's not working &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; I am using the below in set analysis&amp;nbsp; it's &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;returning count 1 from my master table .&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Count({$&amp;lt;EmpID={"$(=Trim(subfield(OSUser(),'UserId=',2)))"},Role ={"2"}&amp;gt;} EmpID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;But the same thing I am using with If statement ,then it has to return employee role; whether he is a user then (1) or manager (2). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The below statement is always returning 5 though my role is 2.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(Trim(EmpTID)=Trim(subfield(OSUser(),'UserId=',2)) and Role=2, Role,'5')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2018 18:23:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-18T18:23:56Z</dc:date>
    <item>
      <title>Login user role and count</title>
      <link>https://community.qlik.com/t5/App-Development/Login-user-role-and-count/m-p/101825#M6808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Group members . I am new to this group and &lt;SPAN style="font-size: 10pt;"&gt;Qlik&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; Sense&amp;nbsp; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have a requirement , to display users based count on the summary page and in the detailed page it should display everything.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am trying to create a &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;measure&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; based on OSUser() and checking &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;against my data and trying to retrieve but it's not working &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; I am using the below in set analysis&amp;nbsp; it's &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;returning count 1 from my master table .&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Count({$&amp;lt;EmpID={"$(=Trim(subfield(OSUser(),'UserId=',2)))"},Role ={"2"}&amp;gt;} EmpID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;But the same thing I am using with If statement ,then it has to return employee role; whether he is a user then (1) or manager (2). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The below statement is always returning 5 though my role is 2.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(Trim(EmpTID)=Trim(subfield(OSUser(),'UserId=',2)) and Role=2, Role,'5')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 18:23:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Login-user-role-and-count/m-p/101825#M6808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-18T18:23:56Z</dc:date>
    </item>
  </channel>
</rss>

