<?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: Values of variable differ at script level and in text box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Values-of-variable-differ-at-script-level-and-in-text-box/m-p/857305#M300346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jul 2015 11:40:55 GMT</pubDate>
    <dc:creator>ferha_jafri</dc:creator>
    <dc:date>2015-07-13T11:40:55Z</dc:date>
    <item>
      <title>Values of variable differ at script level and in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Values-of-variable-differ-at-script-level-and-in-text-box/m-p/857297#M300338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing an issue I am using a variable at script as SET Var1=sum({$&amp;lt;Date={"&amp;gt;=$(Date(Max(Date)-7))&amp;lt;=$(=Max(Date))"}&amp;gt;}Mencount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I am using this expression in text box I am getting 10.5 and if I am using the variable directly into text box as $(Var1) I am getting 12.6 ,not able to understand why???Please help in understanding this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ferha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 03:32:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Values-of-variable-differ-at-script-level-and-in-text-box/m-p/857297#M300338</guid>
      <dc:creator>ferha_jafri</dc:creator>
      <dc:date>2015-07-13T03:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Values of variable differ at script level and in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Values-of-variable-differ-at-script-level-and-in-text-box/m-p/857298#M300339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure why you would get different results. Would you be able to share your application or a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 03:37:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Values-of-variable-differ-at-script-level-and-in-text-box/m-p/857298#M300339</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-13T03:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Values of variable differ at script level and in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Values-of-variable-differ-at-script-level-and-in-text-box/m-p/857299#M300340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No chance of getting different value, once can check the expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 03:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Values-of-variable-differ-at-script-level-and-in-text-box/m-p/857299#M300340</guid>
      <dc:creator>vardhancse</dc:creator>
      <dc:date>2015-07-13T03:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Values of variable differ at script level and in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Values-of-variable-differ-at-script-level-and-in-text-box/m-p/857300#M300341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you share the sample application.&lt;/P&gt;&lt;P&gt;normally there should not be a difference in the answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you have alternate states in the application. then the values could differ depending on the state in which the formula is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 03:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Values-of-variable-differ-at-script-level-and-in-text-box/m-p/857300#M300341</guid>
      <dc:creator>svenkita</dc:creator>
      <dc:date>2015-07-13T03:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Values of variable differ at script level and in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Values-of-variable-differ-at-script-level-and-in-text-box/m-p/857301#M300342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Its preferable to use 'num' of date field in the variable, and convert the variable into date after variable is evaluated.&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SET Var1=sum({$&amp;lt;num(Date)={"&amp;gt;=$(Date(Max(num(Date))-7))&amp;lt;=$(=Max(num(Date)))"}&amp;gt;}Mencount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;and use the variable as date(Var1)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 04:11:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Values-of-variable-differ-at-script-level-and-in-text-box/m-p/857301#M300342</guid>
      <dc:creator />
      <dc:date>2015-07-13T04:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Values of variable differ at script level and in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Values-of-variable-differ-at-script-level-and-in-text-box/m-p/857302#M300343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the exp &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Var1=sum({$&amp;lt;Date={"&amp;gt;=$(Date(Max(Date)-7))&amp;lt;=$(=Max(Date))"}&amp;gt;}Mencount)&amp;nbsp; gives correct value everywhere but if I divide this variable by 13 in script this is not getting reflected in the calculation although if write $(Var1)/13 in the front end it is giving the correct value.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 11:21:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Values-of-variable-differ-at-script-level-and-in-text-box/m-p/857302#M300343</guid>
      <dc:creator>ferha_jafri</dc:creator>
      <dc:date>2015-07-13T11:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Values of variable differ at script level and in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Values-of-variable-differ-at-script-level-and-in-text-box/m-p/857303#M300344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why this is happening not understand...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 11:22:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Values-of-variable-differ-at-script-level-and-in-text-box/m-p/857303#M300344</guid>
      <dc:creator>ferha_jafri</dc:creator>
      <dc:date>2015-07-13T11:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Values of variable differ at script level and in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Values-of-variable-differ-at-script-level-and-in-text-box/m-p/857304#M300345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you doing it like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Var1=sum({$&amp;lt;Date={"&amp;gt;=$(Date(Max(Date)-7))&amp;lt;=$(=Max(Date))"}&amp;gt;}Mencount)/13&lt;/STRONG&gt; and then&lt;STRONG&gt; $(Var1)&lt;/STRONG&gt; doesn't seem to give the right result????&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 11:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Values-of-variable-differ-at-script-level-and-in-text-box/m-p/857304#M300345</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-13T11:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Values of variable differ at script level and in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Values-of-variable-differ-at-script-level-and-in-text-box/m-p/857305#M300346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 11:40:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Values-of-variable-differ-at-script-level-and-in-text-box/m-p/857305#M300346</guid>
      <dc:creator>ferha_jafri</dc:creator>
      <dc:date>2015-07-13T11:40:55Z</dc:date>
    </item>
  </channel>
</rss>

