<?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 GetFieldSelections - MonthYear in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-MonthYear/m-p/228297#M80343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John! date# worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Oct 2010 17:43:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-05T17:43:44Z</dc:date>
    <item>
      <title>GetFieldSelections - MonthYear</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-MonthYear/m-p/228295#M80341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hey Guys,&lt;/P&gt;&lt;P&gt;I'm trying to pull a list of MonthYear and convert it to a number of the monthstart.&lt;/P&gt;&lt;P&gt;subfield(GetFieldSelections(MonthYear, ';'), ';',1)&lt;/P&gt;&lt;P&gt;Once I get it to this point it brings in the first MonthYear selected it is then converted to text. For example, (Jan-2010) but I need it as 40209 (1-31-2010).&lt;/P&gt;&lt;P&gt;I have tried wrapping date and num around it but then I get null.&lt;/P&gt;&lt;P&gt;I thought about doing a left 3 to grab the month and then a right 4 to grab the year. Then using makedate, but the month isn't a number.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 16:02:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-MonthYear/m-p/228295#M80341</guid>
      <dc:creator />
      <dc:date>2010-10-05T16:02:00Z</dc:date>
    </item>
    <item>
      <title>GetFieldSelections - MonthYear</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-MonthYear/m-p/228296#M80342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your only problem might be that you need to wrap date#() instead of date():&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;num(date#(subfield(GetFieldSelections(MonthYear, ';'), ';',1),'MMM-YYYY'))&lt;/P&gt;&lt;P&gt;I think this would give the same result more efficiently, assuming MonthYear is sorted ascending (otherwise use max):&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(getselectedcount(MonthYear),num(min(MonthYear)))&lt;/P&gt;&lt;P&gt;Or if you don't mind taking the min of all possible values when nothing is selected:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;num(min(MonthYear))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 17:32:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-MonthYear/m-p/228296#M80342</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-10-05T17:32:02Z</dc:date>
    </item>
    <item>
      <title>GetFieldSelections - MonthYear</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-MonthYear/m-p/228297#M80343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John! date# worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 17:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-MonthYear/m-p/228297#M80343</guid>
      <dc:creator />
      <dc:date>2010-10-05T17:43:44Z</dc:date>
    </item>
  </channel>
</rss>

