<?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: Comparing QVUSER to another String Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-QVUSER-to-another-String-Variable/m-p/713867#M256932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the code to use Qvuser() but it did not work, but got me pointed&lt;/P&gt;&lt;P&gt;in the right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After multiple iterations using SubStringCount I went in a new direction&lt;/P&gt;&lt;P&gt;and got a working solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vUserGroup  = "=If(INDEX(vSomeGroup,UPPER(QVUSER()))&amp;gt; 0,&lt;/P&gt;&lt;P&gt;LEFT(vSomeGroup,2))"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Thu, Sep 4, 2014 at 1:59 PM, Jonathan Poole &amp;lt;qcwebmaster@qlikview.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Sep 2014 20:52:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-04T20:52:44Z</dc:date>
    <item>
      <title>Comparing QVUSER to another String Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-QVUSER-to-another-String-Variable/m-p/713864#M256929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a need to compare the (QVUSER) variable against another string variable (vSomeGroup) and then set a variable (vUserGroup) to a portion of the string (vSomeGroup).&lt;/P&gt;&lt;P&gt;For example vSomeGroup = 22/testuser123y/testuser342t…&lt;/P&gt;&lt;P&gt;QVUSER =&amp;nbsp; testuser123y&lt;/P&gt;&lt;P&gt;In this case (QVUSER) is found in the variable (VSomeGroup)&lt;/P&gt;&lt;P&gt;Now I want to set the variable (vUserGroup) to the first two characters of (vSomeGroup) in this case it would be “22”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the issue:&lt;/P&gt;&lt;P&gt;When I am developing and I add the following code to the variable in the QVW it works. Of course I am setting the QVUSER manually for testing. =If(SubStringCount('$(vSomeGroup)','$(QVUSER)' )&amp;gt; 0, LEFT('$(vSomeGroup)',2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try and publish the job and add the code below in the loader to pass the string of code to the variable it does not work. Set vUserGroup&amp;nbsp; = "=If(SubStringCount('$(vSomeGroup)','$(QVUSER)' )&amp;gt; 0, LEFT('$(vInsts26)',2))"&lt;/P&gt;&lt;P&gt;Any suggestions or advice would be greatly appreciated. Note – QVUSER is being used and is passed&lt;/P&gt;&lt;P&gt;Note - we are using version 8.5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 17:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-QVUSER-to-another-String-Variable/m-p/713864#M256929</guid>
      <dc:creator />
      <dc:date>2014-09-04T17:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing QVUSER to another String Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-QVUSER-to-another-String-Variable/m-p/713865#M256930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick question:&amp;nbsp; if you add a text box to your dashboard with&amp;nbsp; $(QVUSER) , what does it display on the server after a publisher reload ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reason i ask is that there is a FUNCTION called &lt;SPAN class="Bold"&gt;QVuser( )&lt;/SPAN&gt;&amp;nbsp; and to invoke it you need the parantheses . So instead of&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'$(QVUSER)' , you would use&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'QVUSER().&amp;nbsp; &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;&lt;BR /&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;Or are you setting your own variable called QVUSER = Qvuser().&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;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I'm a little confused... here is the function i'm referring too below (last in list)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qvuser.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/65936_qvuser.PNG.png" style="width: 620px; height: 235px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 17:58:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-QVUSER-to-another-String-Variable/m-p/713865#M256930</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-04T17:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing QVUSER to another String Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-QVUSER-to-another-String-Variable/m-p/713866#M256931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I note that the Ray says he is using QV 8.5 so that was before Section Acces, so back then QVUSER may well have been System Variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But before my time so I cannot answer definitively.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 18:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-QVUSER-to-another-String-Variable/m-p/713866#M256931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-04T18:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing QVUSER to another String Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-QVUSER-to-another-String-Variable/m-p/713867#M256932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the code to use Qvuser() but it did not work, but got me pointed&lt;/P&gt;&lt;P&gt;in the right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After multiple iterations using SubStringCount I went in a new direction&lt;/P&gt;&lt;P&gt;and got a working solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vUserGroup  = "=If(INDEX(vSomeGroup,UPPER(QVUSER()))&amp;gt; 0,&lt;/P&gt;&lt;P&gt;LEFT(vSomeGroup,2))"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Thu, Sep 4, 2014 at 1:59 PM, Jonathan Poole &amp;lt;qcwebmaster@qlikview.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 20:52:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-QVUSER-to-another-String-Variable/m-p/713867#M256932</guid>
      <dc:creator />
      <dc:date>2014-09-04T20:52:44Z</dc:date>
    </item>
  </channel>
</rss>

