<?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: Hi need a help for this expression... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hi-need-a-help-for-this-expression/m-p/1080114#M359980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove '-1' from monthend() and try like:&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier; font-weight: inherit;"&gt;Sum({&amp;lt;&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;MonthField,DateField,&lt;/STRONG&gt;&lt;/SPAN&gt; NumDate={'$(=floor(MonthEnd(&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;Max&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier; font-weight: inherit;"&gt;(NumDate))))'}&amp;gt;}StockClosing_GROSSWEIGHT)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Apr 2016 07:30:43 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2016-04-08T07:30:43Z</dc:date>
    <item>
      <title>Hi need a help for this expression...</title>
      <link>https://community.qlik.com/t5/QlikView/Hi-need-a-help-for-this-expression/m-p/1080109#M359975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am this expression in my report to take only recent month last date sales only&lt;/P&gt;&lt;P&gt;it's work correct...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;financial year, quarter it 's work perfect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i click on month or date field it's going blank &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dimension branch&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;NumDate={'$(=floor(Num(max(MonthEnd(NumDate,-1)))))'}&amp;gt;}StockClosing_GROSSWEIGHT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here in the above expression numdate nothing in script it floor(date) as numdate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so even though i click any month or any date it needs to show only recent month monthend date stock only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually we use to take only monthend's stock only get exact stock figures for closing stock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 06:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hi-need-a-help-for-this-expression/m-p/1080109#M359975</guid>
      <dc:creator />
      <dc:date>2016-04-08T06:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Hi need a help for this expression...</title>
      <link>https://community.qlik.com/t5/QlikView/Hi-need-a-help-for-this-expression/m-p/1080110#M359976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&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;Sum({&amp;lt;NumDate={'$(=floor(MonthEnd(&lt;STRONG&gt;Max&lt;/STRONG&gt;(NumDate),-1)))'}&amp;gt;}StockClosing_GROSSWEIGHT)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 06:58:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hi-need-a-help-for-this-expression/m-p/1080110#M359976</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-04-08T06:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Hi need a help for this expression...</title>
      <link>https://community.qlik.com/t5/QlikView/Hi-need-a-help-for-this-expression/m-p/1080111#M359977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i just used what you suggested but still it's showing blank &lt;A href="https://community.qlik.com/qlik-users/26418"&gt;tresesco&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for me fin year and quarter it's showing correct this expression but month and date field selections showing blank...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 07:02:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hi-need-a-help-for-this-expression/m-p/1080111#M359977</guid>
      <dc:creator />
      <dc:date>2016-04-08T07:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hi need a help for this expression...</title>
      <link>https://community.qlik.com/t5/QlikView/Hi-need-a-help-for-this-expression/m-p/1080112#M359978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Try with this corrected one:&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;&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; font-size: 13px;"&gt;Sum({&amp;lt;&lt;STRONG&gt;MonthField,DateField,&lt;/STRONG&gt; NumDate={'$(=floor(MonthEnd(&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Max&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(NumDate),-1)))'}&amp;gt;}StockClosing_GROSSWEIGHT)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 07:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hi-need-a-help-for-this-expression/m-p/1080112#M359978</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-04-08T07:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Hi need a help for this expression...</title>
      <link>https://community.qlik.com/t5/QlikView/Hi-need-a-help-for-this-expression/m-p/1080113#M359979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks it's working fine...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but another problem is there &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i click on feb month it's showing jan month enddate sales if i click on jan it's shoing dec month enddate sales.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i requirement is if click on april since we didn't have last date in april it need to take march31 stock...&lt;/P&gt;&lt;P&gt;if i click on feb month since we have feb month last date so it need to take feb month last date sales only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 07:26:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hi-need-a-help-for-this-expression/m-p/1080113#M359979</guid>
      <dc:creator />
      <dc:date>2016-04-08T07:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hi need a help for this expression...</title>
      <link>https://community.qlik.com/t5/QlikView/Hi-need-a-help-for-this-expression/m-p/1080114#M359980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove '-1' from monthend() and try like:&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier; font-weight: inherit;"&gt;Sum({&amp;lt;&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;MonthField,DateField,&lt;/STRONG&gt;&lt;/SPAN&gt; NumDate={'$(=floor(MonthEnd(&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;Max&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier; font-weight: inherit;"&gt;(NumDate))))'}&amp;gt;}StockClosing_GROSSWEIGHT)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 07:30:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hi-need-a-help-for-this-expression/m-p/1080114#M359980</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-04-08T07:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Hi need a help for this expression...</title>
      <link>https://community.qlik.com/t5/QlikView/Hi-need-a-help-for-this-expression/m-p/1080115#M359981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got idea and did like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount(Month)&amp;gt;0 or GetSelectedCount(NumDate)&amp;gt;0,&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Month=,BILLDATE=,NumDate={'$(=floor(MonthEnd(Max(NumDate))))'}&amp;gt;}StockClosing_GROSSWEIGHT)/WeightFlag,&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;NumDate={'$(=floor(Num(max(MonthEnd(NumDate,-1)))))'}&amp;gt;}StockClosing_GROSSWEIGHT))/WeightFlag)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's working fine now....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 07:52:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hi-need-a-help-for-this-expression/m-p/1080115#M359981</guid>
      <dc:creator />
      <dc:date>2016-04-08T07:52:31Z</dc:date>
    </item>
  </channel>
</rss>

