<?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: Convert if statement to pick - match function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Convert-if-statement-to-pick-match-function/m-p/1418595#M33598</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think this can be converted to a pick match statement.... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Oct 2017 13:01:40 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-10-09T13:01:40Z</dc:date>
    <item>
      <title>Convert if statement to pick - match function</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-if-statement-to-pick-match-function/m-p/1418594#M33597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to convert the below if statement to pick - match combination:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(getselectedcount([Year])&amp;lt;1 and getselectedcount([Month Year])&amp;lt;1&lt;/P&gt;&lt;P&gt;, &lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Month Year]=,[Year]=,[MonthID]= {"$(=((Year(Today()) -1)*12) + Num(Month(Today())))"}&amp;gt;} [Target])&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;Sum([Target])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 12:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-if-statement-to-pick-match-function/m-p/1418594#M33597</guid>
      <dc:creator>madnanansari</dc:creator>
      <dc:date>2017-10-09T12:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Convert if statement to pick - match function</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-if-statement-to-pick-match-function/m-p/1418595#M33598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think this can be converted to a pick match statement.... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 13:01:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-if-statement-to-pick-match-function/m-p/1418595#M33598</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-09T13:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Convert if statement to pick - match function</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-if-statement-to-pick-match-function/m-p/1418596#M33599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you can use a pick/ match combination here, but I believe without any benefit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick( Match( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;getselectedcount([Year]) &amp;amp;'-'&amp;amp; getselectedcount([Month Year]), '0-0'),&lt;/SPAN&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;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 13:12:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-if-statement-to-pick-match-function/m-p/1418596#M33599</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-10-09T13:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Convert if statement to pick - match function</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-if-statement-to-pick-match-function/m-p/1418597#M33600</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;pick(match(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;getselectedcount([Year])&amp;amp;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;getselectedcount([Month Year]) ,'00')+1,&lt;/SPAN&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum([Target]),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({$&amp;lt;[Month Year]=,[Year]=,[MonthID]= {"$(=((Year(Today()) -1)*12) + Num(Month(Today())))"}&amp;gt;} [Target])&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Pradosh&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 13:22:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-if-statement-to-pick-match-function/m-p/1418597#M33600</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2017-10-09T13:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Convert if statement to pick - match function</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-if-statement-to-pick-match-function/m-p/1418598#M33601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, like pradosh suggested, you should use a +1 to account for a default value and change the order of expressions accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still, I believe this won't perform better nor be better maintainable than the original If().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 13:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-if-statement-to-pick-match-function/m-p/1418598#M33601</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-10-09T13:31:05Z</dc:date>
    </item>
  </channel>
</rss>

