<?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: year,month issue? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554428#M207153</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tresko.&lt;/P&gt;&lt;P&gt;But when i write &lt;/P&gt;&lt;P&gt;Sum({&amp;lt;year={$(=max(year))},month={$(=maxstring(month))}&amp;gt;}customsvalue)&lt;/P&gt;&lt;P&gt;for this its will take 1st max(year)=2013 after that it should take Max(month) of Max(Year)2013 like jun according to max(month) in database.&lt;/P&gt;&lt;P&gt;In qlikview it will take the expression logically like this.&lt;/P&gt;&lt;P&gt;I have done this things in my previous project where it is running successfully.&lt;/P&gt;&lt;P&gt;but here not??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Narender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jul 2013 09:19:56 GMT</pubDate>
    <dc:creator>narender123</dc:creator>
    <dc:date>2013-07-09T09:19:56Z</dc:date>
    <item>
      <title>year,month issue?</title>
      <link>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554419#M207144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a problem .I want sum of customs value of Max(Year )&amp;nbsp; and Max(Month) without any selection on year and month.&lt;/P&gt;&lt;P&gt;But it is not working by default with any selection.It is only working&amp;nbsp; when i select the year then it takes the max(month)&lt;/P&gt;&lt;P&gt;of that year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i want it on without any selection on month and year. &lt;/P&gt;&lt;P&gt;expression i used is:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year={$(=Max(Year))},Month={$(=MaxString(Month))}&amp;gt;}CUSTOMS_VALUE)&lt;/P&gt;&lt;P&gt;please see my attachment file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 07:28:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554419#M207144</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-07-09T07:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: year,month issue?</title>
      <link>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554420#M207145</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;U can use the below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;Year={$(=Max(Year))},Month={$(=MaxString(Month))}&amp;gt;}CUSTOMS_VALUE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kabilan K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 07:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554420#M207145</guid>
      <dc:creator />
      <dc:date>2013-07-09T07:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: year,month issue?</title>
      <link>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554421#M207146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum({&amp;lt;Year={"$(=max(Year))"},Month={"=monthstart(max(Month))"}&amp;gt;}&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;CUSTOMS_VALUE&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 07:42:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554421#M207146</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-07-09T07:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: year,month issue?</title>
      <link>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554422#M207147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kabilan.&lt;/P&gt;&lt;P&gt;But still same issue.&lt;/P&gt;&lt;P&gt;You can check my attachment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 07:44:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554422#M207147</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-07-09T07:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: year,month issue?</title>
      <link>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554423#M207148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mohit.&lt;/P&gt;&lt;P&gt;But it takes the max year whole month data means up to this month data.&lt;/P&gt;&lt;P&gt;can you please tell me why me expression is not working becuase its the 1st time that this expressuion is not working here.&lt;/P&gt;&lt;P&gt;I have attached qvw .please see it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Narender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 07:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554423#M207148</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-07-09T07:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: year,month issue?</title>
      <link>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554424#M207149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Please tell me why my year and month are not working together when i didnt select both year and month.&lt;/P&gt;&lt;P&gt;As shown in my attachment.&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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 08:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554424#M207149</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-07-09T08:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: year,month issue?</title>
      <link>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554425#M207150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narender,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try an easier (in my opinion) approach by using a YearMonth field with a integer value. This field can be very useful in many other situations like creating a chart which shows a trend by YearMonth and you can sort also a Month dimension using this YearMonth field in the Sort tab of the chart object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a YearMonth field like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;LOAD DECLARATION_ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RECEIPT_DATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(RECEIPT_DATE) as Year, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(RECEIPT_DATE) as Month, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Year(RECEIPT_DATE) * 100 + num(Month(RECEIPT_DATE)) as YearMonth,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day(RECEIPT_DATE) as Day,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONSIGNOR_ID,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CUSTOMS_VALUE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;C:\3newreport_QlikviewProject\Development\Data\QVD\DEC_HEADER.qvd&lt;/P&gt;&lt;P&gt;(qvd) where Year(RECEIPT_DATE)&amp;lt;&amp;gt;2212;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and then use this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;=sum({&amp;lt;YearMonth={$(=Max(YearMonth))}&amp;gt;}CUSTOMS_VALUE)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 09:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554425#M207150</guid>
      <dc:creator />
      <dc:date>2013-07-09T09:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: year,month issue?</title>
      <link>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554426#M207151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your Max (Year ) is 2013 and Maxstring(Month) is Dec, and there is no data for that period. please check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 09:12:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554426#M207151</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-07-09T09:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: year,month issue?</title>
      <link>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554427#M207152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Borja.&lt;/P&gt;&lt;P&gt;Some of my report based on max(day) or max(Day)-7 .So is working for max(day)part too??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i have done all of these things well in my previous project where these expression running well but here these expression are not working .Could you tell me why this happens??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 09:14:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554427#M207152</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-07-09T09:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: year,month issue?</title>
      <link>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554428#M207153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tresko.&lt;/P&gt;&lt;P&gt;But when i write &lt;/P&gt;&lt;P&gt;Sum({&amp;lt;year={$(=max(year))},month={$(=maxstring(month))}&amp;gt;}customsvalue)&lt;/P&gt;&lt;P&gt;for this its will take 1st max(year)=2013 after that it should take Max(month) of Max(Year)2013 like jun according to max(month) in database.&lt;/P&gt;&lt;P&gt;In qlikview it will take the expression logically like this.&lt;/P&gt;&lt;P&gt;I have done this things in my previous project where it is running successfully.&lt;/P&gt;&lt;P&gt;but here not??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Narender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 09:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554428#M207153</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-07-09T09:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: year,month issue?</title>
      <link>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554429#M207154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Borja.&lt;/P&gt;&lt;P&gt;If i want to calculete max(Day)-7&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=sum({&amp;lt;YearMonth={$(=Max(YearMonth))},Day={&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;$(=Max(Day)-7)}&lt;/SPAN&gt;&amp;gt;}CUSTOMS_VALUE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;it is not working.What i have to do???&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 09:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554429#M207154</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-07-09T09:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: year,month issue?</title>
      <link>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554430#M207155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is Day a full date (20130709) or just the day number (9)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no data you will see 0 but it doesn't mean it is worng (like @tresesco mentioned &lt;A _jive_internal="true" href="https://community.qlik.com/message/365436#365436"&gt;here&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try a similar approach by creating a field with the full date in an integer format (e.g. 20130709 for today) in the LOAD statement and then in the expression just use that field in Set Analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 10:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554430#M207155</guid>
      <dc:creator />
      <dc:date>2013-07-09T10:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: year,month issue?</title>
      <link>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554431#M207156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you have to use P() in the SET.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 10:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554431#M207156</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-07-09T10:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: year,month issue?</title>
      <link>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554432#M207157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My day is 9 .i can also place date like DD/MM/YYYY.&lt;/P&gt;&lt;P&gt;but not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 10:47:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554432#M207157</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-07-09T10:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: year,month issue?</title>
      <link>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554433#M207158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;What do you mean&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;Where to write?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 10:50:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554433#M207158</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-07-09T10:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: year,month issue?</title>
      <link>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554434#M207159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still think you shoul use a full date field in the Set Analysis instead of a Day field with just the day number. It will make things easier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 10:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554434#M207159</guid>
      <dc:creator />
      <dc:date>2013-07-09T10:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: year,month issue?</title>
      <link>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554435#M207160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please let me know if the output of the following expression is okay for you or not, may be i can try then in other method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; =Sum(If(InMonth(RECEIPT_DATE,vMaxDate,0),RECEIPT_DATE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where vMaxDate= Max(RECIEPT_DATE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 11:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554435#M207160</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-07-09T11:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: year,month issue?</title>
      <link>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554436#M207161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes its working.Showing right values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 15:07:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-month-issue/m-p/554436#M207161</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-07-09T15:07:49Z</dc:date>
    </item>
  </channel>
</rss>

