<?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: Creating variable, replacing Dollar $ in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-variable-replacing-Dollar/m-p/933593#M322492</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome - thanks so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Oct 2015 14:05:12 GMT</pubDate>
    <dc:creator>zagzebski</dc:creator>
    <dc:date>2015-10-21T14:05:12Z</dc:date>
    <item>
      <title>Creating variable, replacing Dollar $</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-variable-replacing-Dollar/m-p/933587#M322486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I need to write this into a variable but having some issues. Tried to replace the $-sign with chr(36) but could not get it to work:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;only&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;[User NT Name]&lt;/SPAN&gt;={'$(=OSUser())'}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;[User Role]&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Tried this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Set vNavMenuTotAccess =&amp;nbsp; =if(only({&amp;lt;[User NT Name]={'&amp;amp; chr(36) &amp;amp;(=OSUser())'}&amp;gt;} [User Role])='TOTAL_ACCESS',1,0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Zag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 00:08:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-variable-replacing-Dollar/m-p/933587#M322486</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2015-10-21T00:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating variable, replacing Dollar $</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-variable-replacing-Dollar/m-p/933588#M322487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do a:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concat( {&amp;lt;[User NT Name]={'$(=OSUser())'}&amp;gt;} [User Role] , ' / ' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a Text Box or an Input Box ... do you get any values at all or several?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 00:12:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-variable-replacing-Dollar/m-p/933588#M322487</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-10-21T00:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating variable, replacing Dollar $</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-variable-replacing-Dollar/m-p/933589#M322488</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;I think NTNAME and OSName() values are in different format.&amp;nbsp; OSUser() will return in DomainName\UserID format.&amp;nbsp; Check once both NTNAME and OSName() are in same format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 03:17:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-variable-replacing-Dollar/m-p/933589#M322488</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-10-21T03:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Creating variable, replacing Dollar $</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-variable-replacing-Dollar/m-p/933590#M322489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It seems that some quotes are missing, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt; vNavMenuTotAccess =&amp;nbsp; '=if(only({&amp;lt;[User NT Name]={'&amp;amp; chr(39) &amp;amp; chr(36) &amp;amp;'(=OSUser())'&amp;amp; chr(39) &amp;amp;'}&amp;gt;} [User Role])='&amp;amp; chr(39) &amp;amp;'TOTAL_ACCESS'&amp;amp; chr(39) &amp;amp;',1,0)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 03:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-variable-replacing-Dollar/m-p/933590#M322489</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2015-10-21T03:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating variable, replacing Dollar $</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-variable-replacing-Dollar/m-p/933591#M322490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are mixing up Set and Let a little here. Let will evaluate the expression, whereas Set takes it literally, so Set does not interpret chr(39) as a $ sign. I assume what you are trying to do is defer the $ expansion. I break between the $ and the open parenthesis will prevent the $ expansion, as will chr(39) in a Let statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work:&lt;/P&gt;&lt;P&gt;Let vNavMenuTotAccess = '=if(only({&amp;lt;[User NT Name]={"$' &amp;amp; '(=OSUser())"}&amp;gt;} [User Role]) = ''TOTAL_ACCESS'', 1, 0)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the quotes around TOTAL ACCESS are each a pair of single quotes to escape the single quote inside the Let statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 05:34:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-variable-replacing-Dollar/m-p/933591#M322490</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-10-21T05:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating variable, replacing Dollar $</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-variable-replacing-Dollar/m-p/933592#M322491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or you can do it this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vNavMenuTotAccess = =if(only({&amp;lt;[User NT Name]={"#(=OSUser())"}&amp;gt;} [User Role]) = 'TOTAL_ACCESS', 1, 0);&lt;/P&gt;&lt;P&gt;Let vNavMenuTotAccess = Replace(vNavMenuTotAccess, '#', '$');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its a little easier to check the quotes and parentheses if you replace the $ with another character and then place the $ in the following Let.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 05:36:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-variable-replacing-Dollar/m-p/933592#M322491</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-10-21T05:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating variable, replacing Dollar $</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-variable-replacing-Dollar/m-p/933593#M322492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome - thanks so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 14:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-variable-replacing-Dollar/m-p/933593#M322492</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2015-10-21T14:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating variable, replacing Dollar $</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-variable-replacing-Dollar/m-p/933594#M322493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 14:07:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-variable-replacing-Dollar/m-p/933594#M322493</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2015-10-21T14:07:24Z</dc:date>
    </item>
  </channel>
</rss>

