<?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: Expression Vs Variable Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-Vs-Variable-Expression/m-p/803145#M283562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The $(= )&amp;nbsp; applied to the date is calculating the values in the date as numbers divided by the various date parts.&lt;/P&gt;&lt;P&gt;So $(= 27/3/15)&amp;nbsp; gives&amp;nbsp;&amp;nbsp; 27/3 = 9&amp;nbsp; then 9/15 = 0.6 !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(= 27/3/2015) gives&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 27/3 = 9&amp;nbsp; then 9/2015 = 0.00446650124 !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Mar 2015 09:19:51 GMT</pubDate>
    <dc:creator>Colin-Albert</dc:creator>
    <dc:date>2015-03-27T09:19:51Z</dc:date>
    <item>
      <title>Expression Vs Variable Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Vs-Variable-Expression/m-p/803140#M283557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using a Expression in a TEXT object in 2 different way and getting 2 different out but&lt;/P&gt;&lt;P&gt;my Max MonthYear is&amp;nbsp; : Feb-2015.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ) =date(addmonths(max(MONTHYEAR),-3), 'MMM-yyyy')&amp;nbsp; OUTPUT : Nov-2014&amp;nbsp;&amp;nbsp; ( Correct )&lt;/P&gt;&lt;P&gt;2. ) =date( $(=AddMonths(max(MONTHYEAR),-3)),'MMM-yyyy') OUTPUT : Dec-1899 ( Wrong)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i am removing Date() function then its show numeric value as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) =$(=AddMonths(max(MONTHYEAR),-3)) OUTPUT : 0.0054617676266137&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly let me know what is the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i want to get last 3 Month sum of Turnover so i need to use this into the set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;JKV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 08:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Vs-Variable-Expression/m-p/803140#M283557</guid>
      <dc:creator />
      <dc:date>2015-03-27T08:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Vs Variable Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Vs-Variable-Expression/m-p/803141#M283558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would be good to post an example and to see your data-formats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may also help to copy your formulas into a straight table and leave the expression label empty. On mouse-over you then can see the individual values used for the calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 09:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Vs-Variable-Expression/m-p/803141#M283558</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2015-03-27T09:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Vs Variable Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Vs-Variable-Expression/m-p/803142#M283559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;below is what i am getting.. label is showing right information but the expression showing wrong &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#e6e6e6"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;MONTHYEAR&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;11/1/2014&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;STRONG&gt;12/30/1899 &lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;Feb-2015&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;12/30/1899&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 09:13:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Vs-Variable-Expression/m-p/803142#M283559</guid>
      <dc:creator />
      <dc:date>2015-03-27T09:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Vs Variable Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Vs-Variable-Expression/m-p/803143#M283560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this instead and you will get the same output as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=date(addmonths(max(MONTHYEAR),-3), 'MMM-yyyy')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;= date($(=new),'MMM-YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;new is a variable with value- AddMonths(date(max(Date)),-3)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 09:15:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Vs-Variable-Expression/m-p/803143#M283560</guid>
      <dc:creator />
      <dc:date>2015-03-27T09:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Vs Variable Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Vs-Variable-Expression/m-p/803144#M283561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes i know if i use into a variable i get the information but why for such small expression i use variable. &lt;/P&gt;&lt;P&gt;even lots of example in qlikview community show that you can direct use such expression in set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 09:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Vs-Variable-Expression/m-p/803144#M283561</guid>
      <dc:creator />
      <dc:date>2015-03-27T09:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Vs Variable Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Vs-Variable-Expression/m-p/803145#M283562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The $(= )&amp;nbsp; applied to the date is calculating the values in the date as numbers divided by the various date parts.&lt;/P&gt;&lt;P&gt;So $(= 27/3/15)&amp;nbsp; gives&amp;nbsp;&amp;nbsp; 27/3 = 9&amp;nbsp; then 9/15 = 0.6 !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(= 27/3/2015) gives&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 27/3 = 9&amp;nbsp; then 9/2015 = 0.00446650124 !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 09:19:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Vs-Variable-Expression/m-p/803145#M283562</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-03-27T09:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Vs Variable Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Vs-Variable-Expression/m-p/803146#M283563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Colin, &lt;/P&gt;&lt;P&gt;But why the below expression showing two different result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Label is showing the right information, but in Expression it showing the wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=date( $(=AddMonths(max(MONTHYEAR),-3)),'MMM-yyyy')&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit;"&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="margin-bottom: 2px; font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: inherit;"&gt;&lt;THEAD style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&lt;TR bgcolor="#e6e6e6" style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&lt;TH class="header" nowrap="nowrap" style="padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; font-weight: normal; font-style: inherit; font-size: 12px; font-family: inherit; text-align: left; background-color: #e6e6e6; background-position: no-repeat no-repeat; border-width: 1px; border-color: black; border-style: solid;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #363636;"&gt;&lt;STRONG style="font-style: inherit; font-size: 12px; font-family: inherit;"&gt;MONTHYEAR&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH class="header" nowrap="nowrap" style="padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; font-weight: normal; font-style: inherit; font-size: 12px; font-family: inherit; text-align: left; background-color: #e6e6e6; background-position: no-repeat no-repeat; border-width: 1px; border-color: black; border-style: solid;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #363636;"&gt;&lt;STRONG style="font-style: inherit; font-size: 12px; font-family: inherit;"&gt;11/1/2014&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&lt;TR bgcolor="#f5f5f5" style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&lt;TD bgcolor="#f5f5f5" style="padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; font-weight: normal; font-style: inherit; font-size: 12px; font-family: inherit; text-align: left; background-color: #f5f5f5; border-width: 1px; border-color: black; border-style: solid;"&gt;&lt;/TD&gt;&lt;TD bgcolor="#f5f5f5" style="padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; font-weight: normal; font-style: inherit; font-size: 12px; font-family: inherit; text-align: left; background-color: #f5f5f5; border-width: 1px; border-color: black; border-style: solid;"&gt;&lt;STRONG style="font-style: inherit; font-size: 12px; font-family: inherit;"&gt;12/30/1899&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff" style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&lt;TD bgcolor="#ffffff" style="padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; font-weight: normal; font-style: inherit; font-size: 12px; font-family: inherit; text-align: left; border-width: 1px; border-color: black; border-style: solid;"&gt;Feb-2015&lt;/TD&gt;&lt;TD bgcolor="#ffffff" style="padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; font-weight: normal; font-style: inherit; font-size: 12px; font-family: inherit; text-align: left; border-width: 1px; border-color: black; border-style: solid;"&gt;12/30/1899&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="jive-thread-reply-btn" style="margin-top: 26px; margin-bottom: -10px; font-weight: inherit; font-style: inherit; font-size: 0.9em; font-family: inherit;"&gt;&lt;/P&gt;&lt;DIV class="jive-thread-reply-btn-correct" style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/157829" style="margin-right: 20px; padding-top: 2px; padding-right: 14px; padding-bottom: 4px; padding-left: 28px; font-weight: bold; font-style: inherit; font-size: 12px; font-family: inherit; color: #3778c7; background-color: #f3f3f3; border-width: 1px; border-color: #dadada; border-style: solid;"&gt;Expression Vs Variable Expression&lt;/A&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 09:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Vs-Variable-Expression/m-p/803146#M283563</guid>
      <dc:creator />
      <dc:date>2015-03-27T09:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Vs Variable Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Vs-Variable-Expression/m-p/803147#M283564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with your above code you will get last 2 months and plus current MTD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get last 3 months you will have to select data where Date &amp;lt;=Date(=monthstart(today())-1))&lt;/P&gt;&lt;P&gt;AND Date &amp;gt;=Date(=MonthStart(MonthStart(Today())-85)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;And if you can upload sample qvw that would be great to help !&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 09:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Vs-Variable-Expression/m-p/803147#M283564</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-27T09:27:38Z</dc:date>
    </item>
  </channel>
</rss>

