<?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 Use a formula inside an Inline table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-a-formula-inside-an-Inline-table/m-p/916058#M317729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Can you insert a formula instead of a hard-coded value to return a value in an inline table?&lt;/P&gt;&lt;P&gt;2. If so, what is the proper syntax?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CloseYear:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;CloseYear, CloseYearCat&lt;/P&gt;&lt;P&gt;2014, 2014&lt;/P&gt;&lt;P&gt;2015, 2015&lt;/P&gt;&lt;P&gt;2014, Delta&lt;/P&gt;&lt;P&gt;2015, Delta&lt;/P&gt;&lt;P&gt;2015, Goal&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to enter a function for CloseYear, something like Year(Today()) and get it to return "2015" instead of having to actually type in "2015" as above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Aug 2015 23:04:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-07T23:04:21Z</dc:date>
    <item>
      <title>Use a formula inside an Inline table</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-formula-inside-an-Inline-table/m-p/916058#M317729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Can you insert a formula instead of a hard-coded value to return a value in an inline table?&lt;/P&gt;&lt;P&gt;2. If so, what is the proper syntax?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CloseYear:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;CloseYear, CloseYearCat&lt;/P&gt;&lt;P&gt;2014, 2014&lt;/P&gt;&lt;P&gt;2015, 2015&lt;/P&gt;&lt;P&gt;2014, Delta&lt;/P&gt;&lt;P&gt;2015, Delta&lt;/P&gt;&lt;P&gt;2015, Goal&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to enter a function for CloseYear, something like Year(Today()) and get it to return "2015" instead of having to actually type in "2015" as above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 23:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-formula-inside-an-Inline-table/m-p/916058#M317729</guid>
      <dc:creator />
      <dc:date>2015-08-07T23:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Use a formula inside an Inline table</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-formula-inside-an-Inline-table/m-p/916059#M317730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could instead of having a * after load do the function you mentioned - something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CloseYear:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp; Pick( Match( CloseYear , 'ThisYear' , 'LastYear' ) , Year( Today() ) , Year( AddMonths( Today() , -12 ))) AS CloseYear,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp; Pick( Match( CloseYear , 'ThisYear' , 'LastYear' ) , Year( Today() ) , Year( AddMonths( Today() , -12 ))) AS CloseYearCat&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Inline [&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CloseYear, CloseYearCat&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;PreviousYear, PreviousYear&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ThisYear, ThisYear&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;PreviousYear, Delta&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ThisYear, Delta&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ThisYear, Goal&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 23:13:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-formula-inside-an-Inline-table/m-p/916059#M317730</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-08-07T23:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Use a formula inside an Inline table</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-formula-inside-an-Inline-table/m-p/916060#M317731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET YearList = ['TY' , 'LY' , 'Y2', 'Y3', 'Y4' ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; Year( Today() ) - Match( Y1 , $(YearList) ) + 1 AS Y1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year( Today() ) - Match( Y2 , $(YearList) ) + 1 AS Y2&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;Y1, Y2&lt;/P&gt;&lt;P&gt;TY, LY&lt;/P&gt;&lt;P&gt;TY, TY&lt;/P&gt;&lt;P&gt;TY, Y4&lt;/P&gt;&lt;P&gt;LY, Y3&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 23:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-formula-inside-an-Inline-table/m-p/916060#M317731</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-08-07T23:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Use a formula inside an Inline table</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-formula-inside-an-Inline-table/m-p/916061#M317732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *, Evaluate(CloseYear) as CloseYearNew,&lt;/P&gt;&lt;P&gt;Evaluate(CloseMonth) as CloseMonthNew&lt;/P&gt;&lt;P&gt; Inline [&lt;/P&gt;&lt;P&gt;CloseYear,CloseMonth&lt;/P&gt;&lt;P&gt;year(today()),month(today())&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2015 05:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-formula-inside-an-Inline-table/m-p/916061#M317732</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-08-08T05:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Use a formula inside an Inline table</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-formula-inside-an-Inline-table/m-p/916062#M317733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 22:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-formula-inside-an-Inline-table/m-p/916062#M317733</guid>
      <dc:creator />
      <dc:date>2015-08-18T22:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Use a formula inside an Inline table</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-formula-inside-an-Inline-table/m-p/916063#M317734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 22:17:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-formula-inside-an-Inline-table/m-p/916063#M317734</guid>
      <dc:creator />
      <dc:date>2015-08-18T22:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Use a formula inside an Inline table</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-formula-inside-an-Inline-table/m-p/916064#M317735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Kushal!! This was exactly what I was looking for!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 15:05:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-formula-inside-an-Inline-table/m-p/916064#M317735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-02T15:05:41Z</dc:date>
    </item>
  </channel>
</rss>

