<?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: Using condition to change expression on Qlik Sense charts in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-condition-to-change-expression-on-Qlik-Sense-charts/m-p/1262301#M25738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried unchecking 'Show zero values' under Add-ons? This is checked by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/144080_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2016 19:40:32 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-11-16T19:40:32Z</dc:date>
    <item>
      <title>Using condition to change expression on Qlik Sense charts</title>
      <link>https://community.qlik.com/t5/App-Development/Using-condition-to-change-expression-on-Qlik-Sense-charts/m-p/1262300#M25737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a chart that alternate expressions based on field selections using a formula similar to this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( GetSelectedCount( Year )=0 and GetSelectedCount( Month_Year )=0,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt; Date= {"&amp;gt;=$(vMin_Date)&amp;lt;=$(vMax_Date)"} &amp;gt;} Value),&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt;Sum( Value)&amp;nbsp; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I basically want to restrict my data within a range when there are no selections made to the year and month_year fields.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This condition works perfectly in tables and KPI objects, however, it behaves in a strange way in charts. When there are no selections made in the year and month_year fields, the only values shown are in the range determined in the set analysis, but, all the other dates still appear with zero values. Like shown in the image below. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturar.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/144075_Capturar.PNG" style="height: 267px; width: 620px;" /&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Note that there are values for all periods in my data model.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Anyone has any insights on why this might be happening?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you very much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Stefano Draghi&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:15:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-condition-to-change-expression-on-Qlik-Sense-charts/m-p/1262300#M25737</guid>
      <dc:creator />
      <dc:date>2024-11-16T10:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using condition to change expression on Qlik Sense charts</title>
      <link>https://community.qlik.com/t5/App-Development/Using-condition-to-change-expression-on-Qlik-Sense-charts/m-p/1262301#M25738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried unchecking 'Show zero values' under Add-ons? This is checked by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/144080_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 19:40:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-condition-to-change-expression-on-Qlik-Sense-charts/m-p/1262301#M25738</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-16T19:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using condition to change expression on Qlik Sense charts</title>
      <link>https://community.qlik.com/t5/App-Development/Using-condition-to-change-expression-on-Qlik-Sense-charts/m-p/1262302#M25739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, thank you for the fast answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unchecking the box does work, however, it also hides zero values within the 12 months range I established. In the example below, my analysis ended up a little bit distorted because July and August don't show up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturar 1.PNG" class="jive-image image-1" src="/legacyfs/online/144083_Capturar 1.PNG" style="height: 226px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 19:56:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-condition-to-change-expression-on-Qlik-Sense-charts/m-p/1262302#M25739</guid>
      <dc:creator />
      <dc:date>2016-11-16T19:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using condition to change expression on Qlik Sense charts</title>
      <link>https://community.qlik.com/t5/App-Development/Using-condition-to-change-expression-on-Qlik-Sense-charts/m-p/1262303#M25740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use an if statement to assign a value of 0.00001 to those which are within your range?&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;STRONG&gt;If( GetSelectedCount( Year )=0 and GetSelectedCount( Month_Year )=0,&lt;/STRONG&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;&lt;STRONG style="color: #ff0000;"&gt;If(Sum( {&amp;lt; Date= {"&amp;gt;=$(vMin_Date)&amp;lt;=$(vMax_Date)"} &amp;gt;} Value) = 0, 0.000001,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum( {&amp;lt; Date= {"&amp;gt;=$(vMin_Date)&amp;lt;=$(vMax_Date)"} &amp;gt;} Value))&lt;/SPAN&gt;, &lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;STRONG&gt;Sum( Value)&amp;nbsp; )&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 20:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-condition-to-change-expression-on-Qlik-Sense-charts/m-p/1262303#M25740</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-16T20:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using condition to change expression on Qlik Sense charts</title>
      <link>https://community.qlik.com/t5/App-Development/Using-condition-to-change-expression-on-Qlik-Sense-charts/m-p/1262304#M25741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The second if statement doesn't really work in my case, but it's not a problem. Since the cases where the values will be zero are exceptions, unchecking the show zero values box will be sufficient.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 20:21:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-condition-to-change-expression-on-Qlik-Sense-charts/m-p/1262304#M25741</guid>
      <dc:creator />
      <dc:date>2016-11-16T20:21:05Z</dc:date>
    </item>
  </channel>
</rss>

