<?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: Variable error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332946#M494040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neetu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OSUser() returns the currently logged in user. If you need this in a chart dimension, then adjust the expression accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest that you get the expression to return the correct results before you put it in a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2012 10:34:01 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2012-05-03T10:34:01Z</dc:date>
    <item>
      <title>Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332933#M494027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one help me on this, i am using a variable for max date but when i call this variable into pivot table its not working &amp;amp; if i used expression which is mention in variable is working fine as vMaxDate =&amp;nbsp; date(max(CommonDate,'DD/MM/YYYY')). please find the below screen shot this expression is not working into variable &amp;amp; i need this into variable as i have to use this into set expression.&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;﻿﻿﻿Regards&lt;/P&gt;&lt;P&gt;Neetu Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 16:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332933#M494027</guid>
      <dc:creator>neetu_singh</dc:creator>
      <dc:date>2012-05-02T16:14:57Z</dc:date>
    </item>
    <item>
      <title>Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332934#M494028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure in your expressions that variables are coded as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vVariable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 16:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332934#M494028</guid>
      <dc:creator />
      <dc:date>2012-05-02T16:24:21Z</dc:date>
    </item>
    <item>
      <title>Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332935#M494029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, m using the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 16:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332935#M494029</guid>
      <dc:creator>neetu_singh</dc:creator>
      <dc:date>2012-05-02T16:28:14Z</dc:date>
    </item>
    <item>
      <title>Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332936#M494030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, i am selecting year = 2012 &amp;amp; month = apr, its taking max date = 30/04/2012 which is ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, if one user makes his entry on 21/04/2012. so, for this particular user max date should be '21/04/2012' instead of '30/04/2012' but its giving me '30/04/2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 17:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332936#M494030</guid>
      <dc:creator>neetu_singh</dc:creator>
      <dc:date>2012-05-02T17:27:08Z</dc:date>
    </item>
    <item>
      <title>Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332937#M494031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you use "let" or "set" to define the value of the variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 17:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332937#M494031</guid>
      <dc:creator>chriscammers</dc:creator>
      <dc:date>2012-05-02T17:38:21Z</dc:date>
    </item>
    <item>
      <title>Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332938#M494032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no, m defining this variable on frontent in document setting - variable tab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 17:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332938#M494032</guid>
      <dc:creator>neetu_singh</dc:creator>
      <dc:date>2012-05-02T17:45:42Z</dc:date>
    </item>
    <item>
      <title>Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332939#M494033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens when you put the formula into a text object?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just checked this on a document and works fine for me - I would check your data in the field...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 18:36:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332939#M494033</guid>
      <dc:creator />
      <dc:date>2012-05-02T18:36:46Z</dc:date>
    </item>
    <item>
      <title>Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332940#M494034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you created the variable put the = sign before the expression in the field definition?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 18:38:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332940#M494034</guid>
      <dc:creator />
      <dc:date>2012-05-02T18:38:17Z</dc:date>
    </item>
    <item>
      <title>Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332941#M494035</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;Are you saying that you want the max date to show the last date for the current user?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, then you will need to have some association with the username of the current user, or an if statement in the variable to check the dates againt the current user name. The best solution depends on your data model and it would be helpful if you could post your model or a sample of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 19:34:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332941#M494035</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-05-02T19:34:02Z</dc:date>
    </item>
    <item>
      <title>Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332942#M494036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;these two fields "user" &amp;amp; Date are coming from the same table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 05:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332942#M494036</guid>
      <dc:creator>neetu_singh</dc:creator>
      <dc:date>2012-05-03T05:31:10Z</dc:date>
    </item>
    <item>
      <title>Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332943#M494037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neetu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you have given '=' while declaring variable in front end.&amp;nbsp; Remove '=' in the variable expression and use &lt;/P&gt;&lt;P&gt;=$(vVariableName) in your expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you give '=' in variable declaration it evaluates expression and stored value in expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the following URL help you in understanding this concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.quickqlearqool.nl/?p=902"&gt;http://www.quickqlearqool.nl/?p=902&lt;/A&gt;&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>Thu, 03 May 2012 06:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332943#M494037</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-05-03T06:36:19Z</dc:date>
    </item>
    <item>
      <title>Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332944#M494038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have already tried but not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 09:14:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332944#M494038</guid>
      <dc:creator>neetu_singh</dc:creator>
      <dc:date>2012-05-03T09:14:02Z</dc:date>
    </item>
    <item>
      <title>Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332945#M494039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neetu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The max variable needs to include the username somehow. Without your model I am guessing at fieldnames and structure, but I think you might need something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date(Max(If (User = OsUser(), CommonDate)), 'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the value in the field User does not include the domain, then use subfield to get the username&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date(Max(If (User = Subfield(OsUser(), '\', 2), CommonDate)), 'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 10:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332945#M494039</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-05-03T10:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332946#M494040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neetu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OSUser() returns the currently logged in user. If you need this in a chart dimension, then adjust the expression accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest that you get the expression to return the correct results before you put it in a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 10:34:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332946#M494040</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-05-03T10:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332947#M494041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its done, for this we need to create a ledger by using peak function at the backend then if user have done last entry on 21/04/2012 then from 21 to 30/04/2012 it will give the same value using peak function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So its resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neetu Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 10:54:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/332947#M494041</guid>
      <dc:creator>neetu_singh</dc:creator>
      <dc:date>2012-10-26T10:54:41Z</dc:date>
    </item>
  </channel>
</rss>

