<?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 How to handle - 'This Selection generated no data' in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-handle-This-Selection-generated-no-data/m-p/1461767#M36113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using a Bar chart with&lt;/P&gt;&lt;P&gt;Measure -&lt;/P&gt;&lt;P&gt;1-&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(Distinct {&amp;lt;[Is Engaged Flag?]={1}&amp;gt;} PartyMonthID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Count(Distinct total [Party ID])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension - &lt;STRONG&gt;1)&lt;/STRONG&gt; &lt;STRONG&gt;Month Year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2) Channel Type&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For certain selections, the 'numerator' in above expression &lt;STRONG style="font-size: 13.3333px;"&gt;Count(Distinct {&amp;lt;[Is Engaged Flag?]={1}&amp;gt;} PartyMonthID) &lt;/STRONG&gt;results into &lt;STRONG&gt;'This selection generated no data for this chart' &lt;/STRONG&gt;as for these selection &lt;STRONG style="font-size: 13.3333px;"&gt;[Is Engaged Flag?] is null (which is the business logic)&lt;/STRONG&gt; and because of this our chart dimension appears as '-' instead of showing the corresponding Month Year and also the chart color also become off. Refer to the image attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We tried using the &lt;STRONG&gt;Alt(&lt;/STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Count(Distinct {&amp;lt;[Is Engaged Flag?]={1}&amp;gt;} PartyMonthID), &lt;STRONG style="font-size: 13.3333px;"&gt;Count(Distinct {$-&amp;lt;[Is Engaged Flag?]={'*'}&amp;gt;} PartyMonthID)&lt;/STRONG&gt; ) &lt;/STRONG&gt;to deal with Null values, but is this the best way to handle the situation or there is another better approach and an underlying fact which we are missing out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be great if anyonecould help us in this regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jan 2018 10:41:14 GMT</pubDate>
    <dc:creator>aditya12345</dc:creator>
    <dc:date>2018-01-10T10:41:14Z</dc:date>
    <item>
      <title>How to handle - 'This Selection generated no data'</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-handle-This-Selection-generated-no-data/m-p/1461767#M36113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using a Bar chart with&lt;/P&gt;&lt;P&gt;Measure -&lt;/P&gt;&lt;P&gt;1-&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(Distinct {&amp;lt;[Is Engaged Flag?]={1}&amp;gt;} PartyMonthID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Count(Distinct total [Party ID])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension - &lt;STRONG&gt;1)&lt;/STRONG&gt; &lt;STRONG&gt;Month Year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2) Channel Type&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For certain selections, the 'numerator' in above expression &lt;STRONG style="font-size: 13.3333px;"&gt;Count(Distinct {&amp;lt;[Is Engaged Flag?]={1}&amp;gt;} PartyMonthID) &lt;/STRONG&gt;results into &lt;STRONG&gt;'This selection generated no data for this chart' &lt;/STRONG&gt;as for these selection &lt;STRONG style="font-size: 13.3333px;"&gt;[Is Engaged Flag?] is null (which is the business logic)&lt;/STRONG&gt; and because of this our chart dimension appears as '-' instead of showing the corresponding Month Year and also the chart color also become off. Refer to the image attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We tried using the &lt;STRONG&gt;Alt(&lt;/STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Count(Distinct {&amp;lt;[Is Engaged Flag?]={1}&amp;gt;} PartyMonthID), &lt;STRONG style="font-size: 13.3333px;"&gt;Count(Distinct {$-&amp;lt;[Is Engaged Flag?]={'*'}&amp;gt;} PartyMonthID)&lt;/STRONG&gt; ) &lt;/STRONG&gt;to deal with Null values, but is this the best way to handle the situation or there is another better approach and an underlying fact which we are missing out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be great if anyonecould help us in this regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 10:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-handle-This-Selection-generated-no-data/m-p/1461767#M36113</guid>
      <dc:creator>aditya12345</dc:creator>
      <dc:date>2018-01-10T10:41:14Z</dc:date>
    </item>
  </channel>
</rss>

