<?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 Avoiding If for the following Expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Avoiding-If-for-the-following-Expression/m-p/1635340#M47335</link>
    <description>&lt;P&gt;I do not want to add if else in my expression as we are going through some standards.&lt;/P&gt;&lt;P&gt;Please help me to convert the below expression without If&lt;/P&gt;&lt;P&gt;if(GetSelectedCount([Employee])=1,&lt;BR /&gt;avg({&amp;lt;Level={3}, [Department Code]={2}, Country={'India'}&amp;gt;} Target),&lt;BR /&gt;if (GetSelectedCount(Department)=1,&lt;BR /&gt;avg({&amp;lt;Level={2}, [Department Code]={2}, Country={'India'}&amp;gt;} Target),&lt;BR /&gt;avg({&amp;lt;Level={1}, [Department Code]={2}, Country={'India'}&amp;gt;} Target)))&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2019 11:25:32 GMT</pubDate>
    <dc:creator>Ron1</dc:creator>
    <dc:date>2019-10-15T11:25:32Z</dc:date>
    <item>
      <title>Avoiding If for the following Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Avoiding-If-for-the-following-Expression/m-p/1635340#M47335</link>
      <description>&lt;P&gt;I do not want to add if else in my expression as we are going through some standards.&lt;/P&gt;&lt;P&gt;Please help me to convert the below expression without If&lt;/P&gt;&lt;P&gt;if(GetSelectedCount([Employee])=1,&lt;BR /&gt;avg({&amp;lt;Level={3}, [Department Code]={2}, Country={'India'}&amp;gt;} Target),&lt;BR /&gt;if (GetSelectedCount(Department)=1,&lt;BR /&gt;avg({&amp;lt;Level={2}, [Department Code]={2}, Country={'India'}&amp;gt;} Target),&lt;BR /&gt;avg({&amp;lt;Level={1}, [Department Code]={2}, Country={'India'}&amp;gt;} Target)))&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 11:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Avoiding-If-for-the-following-Expression/m-p/1635340#M47335</guid>
      <dc:creator>Ron1</dc:creator>
      <dc:date>2019-10-15T11:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Avoiding If for the following Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Avoiding-If-for-the-following-Expression/m-p/1635345#M47336</link>
      <description>&lt;P&gt;Give this a shot&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Pick(Match(1, GetSelectedCount([Employee]), GetSelectedCount(Department)) + 1,
Avg({&amp;lt;Level={1}, [Department Code]={2}, Country={'India'}&amp;gt;} Target),
Avg({&amp;lt;Level={3}, [Department Code]={2}, Country={'India'}&amp;gt;} Target),
Avg({&amp;lt;Level={2}, [Department Code]={2}, Country={'India'}&amp;gt;} Target))&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 15 Oct 2019 11:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Avoiding-If-for-the-following-Expression/m-p/1635345#M47336</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-15T11:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Avoiding If for the following Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Avoiding-If-for-the-following-Expression/m-p/1635742#M47364</link>
      <description>&lt;P&gt;It works perfectly.&amp;nbsp;Thank you very much.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 05:15:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Avoiding-If-for-the-following-Expression/m-p/1635742#M47364</guid>
      <dc:creator>Ron1</dc:creator>
      <dc:date>2019-10-16T05:15:24Z</dc:date>
    </item>
  </channel>
</rss>

