<?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 Re: Simple If Contains Statement in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Simple-If-Contains-Statement/m-p/1507565#M37191</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can remove the nested If statements altogether ...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try below ::&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pick(wildmatch(&lt;SPAN&gt;OrderDate,&lt;/SPAN&gt;'*2016*',&lt;SPAN&gt;'*2017*','*2018*',OrderDate),2016,2017,2018,'Other')&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Nov 2018 20:21:17 GMT</pubDate>
    <dc:creator>jayanttibhe</dc:creator>
    <dc:date>2018-11-15T20:21:17Z</dc:date>
    <item>
      <title>Simple If Contains Statement</title>
      <link>https://community.qlik.com/t5/App-Development/Simple-If-Contains-Statement/m-p/106976#M37188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simple statement that I need help with.&lt;/P&gt;&lt;P&gt;If [date] field contains '2016', then display as '2016'&lt;/P&gt;&lt;P&gt;If [date] field contains '2017', then display as '2017'&lt;/P&gt;&lt;P&gt;If [date] field contains '2018', then display as '2018'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I properly write this up as one expression?&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, 16 Oct 2018 03:43:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Simple-If-Contains-Statement/m-p/106976#M37188</guid>
      <dc:creator>ltc</dc:creator>
      <dc:date>2018-10-16T03:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Simple If Contains Statement</title>
      <link>https://community.qlik.com/t5/App-Development/Simple-If-Contains-Statement/m-p/106977#M37189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can enter the following as a chart expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(OrderDate like '*2016*','2016',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(OrderDate like '*2017*','2017',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(OrderDate like '*2018*','2018','Other')))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2018 10:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Simple-If-Contains-Statement/m-p/106977#M37189</guid>
      <dc:creator>Anthony_Ventura</dc:creator>
      <dc:date>2018-10-16T10:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Simple If Contains Statement</title>
      <link>https://community.qlik.com/t5/App-Development/Simple-If-Contains-Statement/m-p/1506657#M37190</link>
      <description>Why can't you just do&lt;BR /&gt;&lt;BR /&gt;=Year([date field])&lt;BR /&gt;&lt;BR /&gt;Not sure why you'd need an IF statement for this requirement.</description>
      <pubDate>Wed, 14 Nov 2018 20:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Simple-If-Contains-Statement/m-p/1506657#M37190</guid>
      <dc:creator>ogster1974</dc:creator>
      <dc:date>2018-11-14T20:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Simple If Contains Statement</title>
      <link>https://community.qlik.com/t5/App-Development/Simple-If-Contains-Statement/m-p/1507565#M37191</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can remove the nested If statements altogether ...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try below ::&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pick(wildmatch(&lt;SPAN&gt;OrderDate,&lt;/SPAN&gt;'*2016*',&lt;SPAN&gt;'*2017*','*2018*',OrderDate),2016,2017,2018,'Other')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 20:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Simple-If-Contains-Statement/m-p/1507565#M37191</guid>
      <dc:creator>jayanttibhe</dc:creator>
      <dc:date>2018-11-15T20:21:17Z</dc:date>
    </item>
  </channel>
</rss>

