<?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 First date from YearMonth field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917919#M651699</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day!&lt;/P&gt;&lt;P&gt;Is any way to get first date for every YearMonth?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In model i have only one period field YearMonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get such values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YearMonth&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date&lt;/P&gt;&lt;P&gt;201401&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01.01.2014&lt;/P&gt;&lt;P&gt;201402&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01.02.2014&lt;/P&gt;&lt;P&gt;201507&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01.07.2015&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;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jul 2015 12:27:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-07-28T12:27:13Z</dc:date>
    <item>
      <title>First date from YearMonth field</title>
      <link>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917919#M651699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day!&lt;/P&gt;&lt;P&gt;Is any way to get first date for every YearMonth?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In model i have only one period field YearMonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get such values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YearMonth&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date&lt;/P&gt;&lt;P&gt;201401&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01.01.2014&lt;/P&gt;&lt;P&gt;201402&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01.02.2014&lt;/P&gt;&lt;P&gt;201507&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01.07.2015&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;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 12:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917919#M651699</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-28T12:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: First date from YearMonth field</title>
      <link>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917920#M651701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use monthstart function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 12:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917920#M651701</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-28T12:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: First date from YearMonth field</title>
      <link>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917921#M651703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;try this:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MakeDate(Year, Month, 1) as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 12:32:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917921#M651703</guid>
      <dc:creator />
      <dc:date>2015-07-28T12:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: First date from YearMonth field</title>
      <link>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917922#M651705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MonthStart(YearMonth) as Date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's working incorrectly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 12:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917922#M651705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-28T12:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: First date from YearMonth field</title>
      <link>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917923#M651707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in the front end:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Date(MakeDate(Year(Date#(YearMonth, 'YYYYMM')), Month&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;(Date#(YearMonth, 'YYYYMM')), 1), 'DD.MM.YYYY')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this in the back end:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;Date(MakeDate(Year(Date#(YearMonth, 'YYYYMM')), Month&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;(Date#(YearMonth, 'YYYYMM')), 1), 'DD.MM.YYYY') as Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 12:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917923#M651707</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-28T12:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: First date from YearMonth field</title>
      <link>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917924#M651709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Date(monthstart(date#(YearMonth,'YYYYMM')),'DD.MM.YYYY')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 12:35:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917924#M651709</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-07-28T12:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: First date from YearMonth field</title>
      <link>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917925#M651711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use makedate function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 12:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917925#M651711</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-28T12:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: First date from YearMonth field</title>
      <link>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917926#M651713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=MonthStart(Date#(YourMonthYearField,'YYYYMM'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 12:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917926#M651713</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-07-28T12:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: First date from YearMonth field</title>
      <link>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917927#M651715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;&lt;P&gt;Could you please write me, how to write flags:&lt;/P&gt;&lt;P&gt;1. &lt;STRONG&gt;YTD&lt;/STRONG&gt; (from beginning of current year till max yera month)&lt;/P&gt;&lt;P&gt;2. &lt;STRONG&gt;PriorYTD&lt;/STRONG&gt; (The same as YTD, but for prior year)&lt;/P&gt;&lt;P&gt;3. &lt;STRONG&gt;MTD&lt;/STRONG&gt; (get max YearMonth)&lt;/P&gt;&lt;P&gt;4. &lt;STRONG&gt;PriorMTD&lt;/STRONG&gt; (&lt;SPAN style="font-size: 13.3333330154419px;"&gt;The same as MTD, but for prior year&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 13:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917927#M651715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-28T13:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: First date from YearMonth field</title>
      <link>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917928#M651717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;YeartoDate(TempDate)*-1 as CurYTDFlag,&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;YeartoDate(TempDate,-1)*-1 as LastYTDFlag,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(TempDate &amp;gt;= MonthStart(Today()) and TempDate &amp;lt;= Today(), 1, 0) as CurMTDFlag,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(TempDate &amp;gt;= AddYears(MonthStart(Today()), -1) and TempDate &amp;lt;= AddYears(Today(), -1), 1, 0) as LastMTDFlag,&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 13:25:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917928#M651717</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-28T13:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: First date from YearMonth field</title>
      <link>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917929#M651719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.. but &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LastYTDFlag &lt;/STRONG&gt;works not for my need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;if max YearMonth is 201503 = &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LastYTDFlag &lt;/STRONG&gt;must include 201401,201402,201403&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what about MTD and PriorMTD?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 13:33:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917929#M651719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-28T13:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: First date from YearMonth field</title>
      <link>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917930#M651720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Updated my last response:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;YeartoDate(TempDate)*-1 as CurYTDFlag, &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;YeartoDate(TempDate,-1)*-1 as LastYTDFlag,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;If(TempDate &amp;gt;= MonthStart(Today()) and TempDate &amp;lt;= Today(), 1, 0) as CurMTDFlag,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;If(TempDate &amp;gt;= AddYears(MonthStart(Today()), -1) and TempDate &amp;lt;= AddYears(Today(), -1), 1, 0) as LastMTDFlag,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Here you can replace Today() with the variable that determines the max date in your data set.&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 13:35:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-date-from-YearMonth-field/m-p/917930#M651720</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-28T13:35:01Z</dc:date>
    </item>
  </channel>
</rss>

