<?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 String concatenation in variable declaration in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/String-concatenation-in-variable-declaration/m-p/19965#M1332</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;I'm trying to create a variable that looks at the current year and month to decide on the content based on the simple rule:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;So far I have&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: terminal, monaco;"&gt;SET ThisYear = Year(Today());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 12pt;"&gt;SET ThisMonth = num(Month(Today()));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: terminal, monaco;"&gt;SET ThisFY = '=if($(ThisMonth)&amp;gt;6, $(ThisYear)+1, $(ThisYear))';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works great - it returns &lt;STRONG&gt;2018&lt;/STRONG&gt; for Jan-June 2018,&amp;nbsp; &lt;STRONG&gt;2019&lt;/STRONG&gt; for July-Aug 2018&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a variable that will contain the value &lt;STRONG&gt;FY18&lt;/STRONG&gt; or &lt;STRONG&gt;FY19&lt;/STRONG&gt; in the above scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried variants of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: terminal, monaco;"&gt;SET ThisFY_Full = 'FY' &amp;amp; right('$(ThisFY)',2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and nothing seems to work - can someone help out.&lt;/P&gt;&lt;P&gt;I'm sure this is very simple - it's just that I am not achieving it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Mar 2018 16:04:53 GMT</pubDate>
    <dc:creator>alexis</dc:creator>
    <dc:date>2018-03-27T16:04:53Z</dc:date>
    <item>
      <title>String concatenation in variable declaration</title>
      <link>https://community.qlik.com/t5/App-Development/String-concatenation-in-variable-declaration/m-p/19965#M1332</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;I'm trying to create a variable that looks at the current year and month to decide on the content based on the simple rule:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;So far I have&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: terminal, monaco;"&gt;SET ThisYear = Year(Today());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 12pt;"&gt;SET ThisMonth = num(Month(Today()));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: terminal, monaco;"&gt;SET ThisFY = '=if($(ThisMonth)&amp;gt;6, $(ThisYear)+1, $(ThisYear))';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works great - it returns &lt;STRONG&gt;2018&lt;/STRONG&gt; for Jan-June 2018,&amp;nbsp; &lt;STRONG&gt;2019&lt;/STRONG&gt; for July-Aug 2018&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a variable that will contain the value &lt;STRONG&gt;FY18&lt;/STRONG&gt; or &lt;STRONG&gt;FY19&lt;/STRONG&gt; in the above scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried variants of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: terminal, monaco;"&gt;SET ThisFY_Full = 'FY' &amp;amp; right('$(ThisFY)',2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and nothing seems to work - can someone help out.&lt;/P&gt;&lt;P&gt;I'm sure this is very simple - it's just that I am not achieving it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2018 16:04:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/String-concatenation-in-variable-declaration/m-p/19965#M1332</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2018-03-27T16:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: String concatenation in variable declaration</title>
      <link>https://community.qlik.com/t5/App-Development/String-concatenation-in-variable-declaration/m-p/19966#M1333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;SET ThisYear = Year(Today());&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;SET ThisMonth = num(Month(Today()));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;LET ThisFY = if($(ThisMonth)&amp;gt;6, $(ThisYear)+1, $(ThisYear));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;LET ThisFY_Full = 'FY' &amp;amp; right('$(ThisFY)',2);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2018 16:16:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/String-concatenation-in-variable-declaration/m-p/19966#M1333</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-27T16:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: String concatenation in variable declaration</title>
      <link>https://community.qlik.com/t5/App-Development/String-concatenation-in-variable-declaration/m-p/19967#M1334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny&lt;/P&gt;&lt;P&gt;I was close but not close enough!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2018 17:39:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/String-concatenation-in-variable-declaration/m-p/19967#M1334</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2018-03-27T17:39:58Z</dc:date>
    </item>
  </channel>
</rss>

