<?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 How to Use Mid with Min Function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-Use-Mid-with-Min-Function/m-p/1099106#M18526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have this field which contains a code and within that code there is a year (e.g. XXYYYYZZZZZ, where YYYY represents the year).&lt;/P&gt;&lt;P&gt;So what I would like to do is to get the minimum year after extracting it from that field. I have tried the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Min(Mid(Code, 3, 4))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Min(aggr(Mid(Code, 3, 4), ID))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;But it doesn't work. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Your help is appreciated. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 May 2016 11:34:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-08T11:34:20Z</dc:date>
    <item>
      <title>How to Use Mid with Min Function</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Use-Mid-with-Min-Function/m-p/1099106#M18526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have this field which contains a code and within that code there is a year (e.g. XXYYYYZZZZZ, where YYYY represents the year).&lt;/P&gt;&lt;P&gt;So what I would like to do is to get the minimum year after extracting it from that field. I have tried the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Min(Mid(Code, 3, 4))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Min(aggr(Mid(Code, 3, 4), ID))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;But it doesn't work. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Your help is appreciated. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 May 2016 11:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Use-Mid-with-Min-Function/m-p/1099106#M18526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-08T11:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use Mid with Min Function</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Use-Mid-with-Min-Function/m-p/1099107#M18527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With these informations it's quite difficult to say what didn't worked like expected. Maybe it's easier to extract this within the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num(Mid(Code, 3, 4)) as CodeYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are the other code-parts not numeric you could also use: keepchar(Code, '0123456789'). And then should be a min() or a firstsortedvalue() expression within the charts simpler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 May 2016 14:07:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Use-Mid-with-Min-Function/m-p/1099107#M18527</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-05-08T14:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use Mid with Min Function</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Use-Mid-with-Min-Function/m-p/1099108#M18528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where exactly are you trying to do this? In the script? In an expression may be like this&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;&lt;STRONG&gt;Min(Year(Date#(Mid(Code, 3, 4), 'YYYY')))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 May 2016 14:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Use-Mid-with-Min-Function/m-p/1099108#M18528</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-08T14:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use Mid with Min Function</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Use-Mid-with-Min-Function/m-p/1099109#M18529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry didn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 05:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Use-Mid-with-Min-Function/m-p/1099109#M18529</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-09T05:21:17Z</dc:date>
    </item>
  </channel>
</rss>

