<?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: If Else in Qliksense Expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/If-Else-in-Qliksense-Expression/m-p/1172429#M21452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes for both the expressions that you mentioned above returns a value and if i use the entire expression then it is returining me nothing..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jun 2016 20:45:31 GMT</pubDate>
    <dc:creator>praveen1108</dc:creator>
    <dc:date>2016-06-10T20:45:31Z</dc:date>
    <item>
      <title>If Else in Qliksense Expression</title>
      <link>https://community.qlik.com/t5/App-Development/If-Else-in-Qliksense-Expression/m-p/1172424#M21447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one help me out whats wrong with this below if else . Default View logic is not working as it gives ' - ' instead of number.&lt;/P&gt;&lt;P&gt;Quick help will be really appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;PK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Only Region&lt;/P&gt;&lt;P&gt;If(GetSelectedCount(QuarterFormat)=0 and GetSelectedCount(Region)=1 and GetSelectedCount(Group)=0 and GetSelectedCount(Org)=0 and&amp;nbsp; GetSelectedCount(Customer)=0,&lt;/P&gt;&lt;P&gt;max({&amp;lt;YearOfData={'$(=Max(YearOfData))'} ,QuarterOfData = {'All'} ,Region={$(=concat(DISTINCT chr(39) &amp;amp; Region &amp;amp; chr(39),','))}&amp;gt;} Noofevents),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Only Group&lt;/P&gt;&lt;P&gt;If(GetSelectedCount(QuarterFormat)=0 and GetSelectedCount(Group)=1 and GetSelectedCount(Region)=0 and GetSelectedCount(Org)=0 and&amp;nbsp; GetSelectedCount(Customer)=0,&lt;/P&gt;&lt;P&gt;max({&amp;lt;YearOfData={'$(=Max(YearOfData))'} ,QuarterOfData = {'All'} ,Group={$(=concat(DISTINCT chr(39) &amp;amp; Group &amp;amp; chr(39),','))}&amp;gt;} Noofevents),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Only Org&lt;/P&gt;&lt;P&gt;If(GetSelectedCount(QuarterFormat)=0 and GetSelectedCount(Org)=1 and GetSelectedCount(Group)=0 and GetSelectedCount(Region)=0 and&amp;nbsp; GetSelectedCount(Customer)=0,&lt;/P&gt;&lt;P&gt;max({&amp;lt;YearOfData={'$(=Max(YearOfData))'} ,QuarterOfData = {'All'} ,Org={$(=concat(DISTINCT chr(39) &amp;amp; Org &amp;amp; chr(39),','))}&amp;gt;} Noofevents),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Only Customer&lt;/P&gt;&lt;P&gt;If(GetSelectedCount(QuarterFormat)=0 and GetSelectedCount(Customer)=1 and GetSelectedCount(Group)=0 and GetSelectedCount(Org)=0 and&amp;nbsp; GetSelectedCount(Region)=0,&lt;/P&gt;&lt;P&gt;max({&amp;lt;YearOfData={'$(=Max(YearOfData))'} ,QuarterOfData = {'All'} ,Customer={$(=concat(DISTINCT chr(39) &amp;amp; Customer &amp;amp; chr(39),','))}&amp;gt;} Noofevents),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Quarter and Region&lt;/P&gt;&lt;P&gt;If(GetSelectedCount(QuarterFormat)=1 and GetSelectedCount(Region)=1 and GetSelectedCount(Group)=0 and GetSelectedCount(Org)=0 and&amp;nbsp; GetSelectedCount(Customer)=0,&lt;/P&gt;&lt;P&gt;max({&amp;lt;Region={$(=concat(DISTINCT chr(39) &amp;amp; Region &amp;amp; chr(39),','))}&amp;gt;} Noofevents),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Default View&lt;/P&gt;&lt;P&gt;If(GetSelectedCount(QuarterFormat)=0 and GetSelectedCount(Region)=0 and GetSelectedCount(Group)=0 and GetSelectedCount(Org)=0 and&amp;nbsp; GetSelectedCount(Customer)=0,&lt;/P&gt;&lt;P&gt;max({&amp;lt;YearOfData={'$(=Max(YearOfData))'} ,QuarterOfData = {'All'} ,DataCategory = {'Global Lam Research'},Region = {'Lam Research'}&amp;gt;} Noofevents),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Quarter and Group&lt;/P&gt;&lt;P&gt;If(GetSelectedCount(QuarterFormat)=1 and GetSelectedCount(Group)=1 and GetSelectedCount(Region)=0 and GetSelectedCount(Org)=0 and&amp;nbsp; GetSelectedCount(Customer)=0,&lt;/P&gt;&lt;P&gt;max({&amp;lt;Group={$(=concat(DISTINCT chr(39) &amp;amp; Group &amp;amp; chr(39),','))}&amp;gt;} Noofevents),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Quarter and Org&lt;/P&gt;&lt;P&gt;If(GetSelectedCount(QuarterFormat)=1 and GetSelectedCount(Org)=1 and GetSelectedCount(Group)=0 and GetSelectedCount(Region)=0 and&amp;nbsp; GetSelectedCount(Customer)=0,&lt;/P&gt;&lt;P&gt;max({&amp;lt;Org={$(=concat(DISTINCT chr(39) &amp;amp; Org &amp;amp; chr(39),','))}&amp;gt;} Noofevents),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Quarter and Customer&lt;/P&gt;&lt;P&gt;If(GetSelectedCount(QuarterFormat)=1 and GetSelectedCount(Customer)=1 and GetSelectedCount(Group)=0 and GetSelectedCount(Org)=0 and&amp;nbsp; GetSelectedCount(Region)=0,&lt;/P&gt;&lt;P&gt;max({&amp;lt;Customer={$(=concat(DISTINCT chr(39) &amp;amp; Customer &amp;amp; chr(39),','))}&amp;gt;} Noofevents),Max(Noofevents) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;))))))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 18:36:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-Else-in-Qliksense-Expression/m-p/1172424#M21447</guid>
      <dc:creator>praveen1108</dc:creator>
      <dc:date>2016-06-10T18:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: If Else in Qliksense Expression</title>
      <link>https://community.qlik.com/t5/App-Development/If-Else-in-Qliksense-Expression/m-p/1172425#M21448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tested each single expression and it works? Troubleshooting a big expression can be simplified by breaking down into pieces. If possible share a sample with the expected output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 18:55:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-Else-in-Qliksense-Expression/m-p/1172425#M21448</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-10T18:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: If Else in Qliksense Expression</title>
      <link>https://community.qlik.com/t5/App-Development/If-Else-in-Qliksense-Expression/m-p/1172426#M21449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes i had tested this and Default view expression is the culprit and trying to figure out why....The one i have shared above is the actual expression that has been used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 19:50:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-Else-in-Qliksense-Expression/m-p/1172426#M21449</guid>
      <dc:creator>praveen1108</dc:creator>
      <dc:date>2016-06-10T19:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: If Else in Qliksense Expression</title>
      <link>https://community.qlik.com/t5/App-Development/If-Else-in-Qliksense-Expression/m-p/1172427#M21450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By sample I meant your application &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 19:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-Else-in-Qliksense-Expression/m-p/1172427#M21450</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-10T19:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: If Else in Qliksense Expression</title>
      <link>https://community.qlik.com/t5/App-Development/If-Else-in-Qliksense-Expression/m-p/1172428#M21451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I vaguely remember some issues in Sense with lengthy expressions and nested if(), not sure if this might also cause your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to clarify:&lt;/P&gt;&lt;P&gt;- &lt;EM&gt;&lt;STRONG&gt;All&lt;/STRONG&gt;&lt;/EM&gt; other conditions work as expected when you select e.g values in Region, Org, Customer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The only condition that is not working correctly is you default view, no selections made?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Using this as single expression e.g. in a KPI object does return a number?&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;&lt;EM&gt;=If(GetSelectedCount(QuarterFormat)=0 and GetSelectedCount(Region)=0 and GetSelectedCount(Group)=0 and GetSelectedCount(Org)=0 and&amp;nbsp; GetSelectedCount(Customer)=0,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;max({&amp;lt;YearOfData={'$(=Max(YearOfData))'} ,QuarterOfData = {'All'} ,DataCategory = {'Global Lam Research'},Region = {'Lam Research'}&amp;gt;} Noofevents)&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt; )&lt;/EM&gt;&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;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If not, using this as single expression does return a number?&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;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;=max({&amp;lt;YearOfData={'$(=Max(YearOfData))'} ,QuarterOfData = {'All'} ,DataCategory = {'Global Lam Research'},Region = {'Lam Research'}&amp;gt;} Noofevents)&lt;/EM&gt;&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;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If not, you do actually have records for Noofevents when making selections in the fields stated in the set analysis with given values? And these records show numbers that can be aggregated using Max()?&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;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;As Sunny already asked for, if you still can't make it work, post a sample QVW.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;There are too many unknowns to give a solid answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 20:39:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-Else-in-Qliksense-Expression/m-p/1172428#M21451</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-10T20:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: If Else in Qliksense Expression</title>
      <link>https://community.qlik.com/t5/App-Development/If-Else-in-Qliksense-Expression/m-p/1172429#M21452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes for both the expressions that you mentioned above returns a value and if i use the entire expression then it is returining me nothing..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 20:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-Else-in-Qliksense-Expression/m-p/1172429#M21452</guid>
      <dc:creator>praveen1108</dc:creator>
      <dc:date>2016-06-10T20:45:31Z</dc:date>
    </item>
  </channel>
</rss>

