<?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 Text and image object with calculation condition in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Text-and-image-object-with-calculation-condition/m-p/1638209#M47579</link>
    <description>&lt;P&gt;Hi Qlik Community,&lt;/P&gt;&lt;P&gt;I am struggling with a calculation which is fairly heavy causing my whole report to run slowly.&lt;BR /&gt;However, the calculation is only relevant if the user has made some selections.&lt;BR /&gt;I would therefore like to add a calculation condition so that the calculation is only evaluated if the user has made selections.&lt;/P&gt;&lt;P&gt;It seems like I am only able to use calculation conditions in KPI's. However, it is required that I use text and image objects in the report...&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Does anyone know a way to implement calculation conditions on a text and image object or alternatively apply a calculation condition directly on the measure?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 19:50:46 GMT</pubDate>
    <dc:creator>NicolaiF</dc:creator>
    <dc:date>2024-11-16T19:50:46Z</dc:date>
    <item>
      <title>Text and image object with calculation condition</title>
      <link>https://community.qlik.com/t5/App-Development/Text-and-image-object-with-calculation-condition/m-p/1638209#M47579</link>
      <description>&lt;P&gt;Hi Qlik Community,&lt;/P&gt;&lt;P&gt;I am struggling with a calculation which is fairly heavy causing my whole report to run slowly.&lt;BR /&gt;However, the calculation is only relevant if the user has made some selections.&lt;BR /&gt;I would therefore like to add a calculation condition so that the calculation is only evaluated if the user has made selections.&lt;/P&gt;&lt;P&gt;It seems like I am only able to use calculation conditions in KPI's. However, it is required that I use text and image objects in the report...&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Does anyone know a way to implement calculation conditions on a text and image object or alternatively apply a calculation condition directly on the measure?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:50:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Text-and-image-object-with-calculation-condition/m-p/1638209#M47579</guid>
      <dc:creator>NicolaiF</dc:creator>
      <dc:date>2024-11-16T19:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Text and image object with calculation condition</title>
      <link>https://community.qlik.com/t5/App-Development/Text-and-image-object-with-calculation-condition/m-p/1638233#M47580</link>
      <description>&lt;P&gt;How about using an IF condition with&amp;nbsp;&lt;SPAN&gt;GetSelectedCount() function to check whether there are any current user selections on particular fields? For example&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;=If(GetSelectedCount(City) = 0, 'Please select at least one city', Sum(Sales))&lt;/LI-CODE&gt;&lt;P&gt;BR,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vu Nguyen&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 09:51:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Text-and-image-object-with-calculation-condition/m-p/1638233#M47580</guid>
      <dc:creator>vunguyenq89</dc:creator>
      <dc:date>2019-10-22T09:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Text and image object with calculation condition</title>
      <link>https://community.qlik.com/t5/App-Development/Text-and-image-object-with-calculation-condition/m-p/1638236#M47581</link>
      <description>&lt;P&gt;That was my initial though as well. However, I found out that Qlik sense evaluates all inputs in an IF-statement no matter what condition is fulfilled in the statement.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Example in the expression below both "Expression1" and "Expression2" will be evaluated no matter the size of "A".&amp;nbsp;&lt;BR /&gt;It evaluates all inputs and returns the correct one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF(A&amp;gt;1,&amp;nbsp;&lt;BR /&gt;[Expression1],&lt;BR /&gt;[Expression2])&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 10:06:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Text-and-image-object-with-calculation-condition/m-p/1638236#M47581</guid>
      <dc:creator>NicolaiF</dc:creator>
      <dc:date>2019-10-22T10:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Text and image object with calculation condition</title>
      <link>https://community.qlik.com/t5/App-Development/Text-and-image-object-with-calculation-condition/m-p/1638245#M47582</link>
      <description>&lt;P&gt;It's strange. The IF condition works in my example below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="exptest.png" style="width: 847px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22089iE361566F2FEDB0EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="exptest.png" alt="exptest.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can you share the expression and maybe some sample data?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 10:19:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Text-and-image-object-with-calculation-condition/m-p/1638245#M47582</guid>
      <dc:creator>vunguyenq89</dc:creator>
      <dc:date>2019-10-22T10:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Text and image object with calculation condition</title>
      <link>https://community.qlik.com/t5/App-Development/Text-and-image-object-with-calculation-condition/m-p/1638248#M47583</link>
      <description>&lt;P&gt;You may also explore &lt;STRONG&gt;Custom Objects &amp;gt; Show/hide container&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Oct 2019 10:20:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Text-and-image-object-with-calculation-condition/m-p/1638248#M47583</guid>
      <dc:creator>naumanshah</dc:creator>
      <dc:date>2019-10-22T10:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Text and image object with calculation condition</title>
      <link>https://community.qlik.com/t5/App-Development/Text-and-image-object-with-calculation-condition/m-p/1638254#M47584</link>
      <description>&lt;P&gt;The expression works, yes.&lt;/P&gt;&lt;P&gt;But Qlik will evaluate both expressions - As in it will use CPU's and calculation time to calculate both expressions.&amp;nbsp;&lt;BR /&gt;It will return the right result yes, but even if you do something like:&lt;/P&gt;&lt;P&gt;IF(GetSelectedCount(Field1)&amp;lt;2, 0, [Heavy expression])&lt;/P&gt;&lt;P&gt;your measure will still run slow because it evaluates the 'heavy expression' before returning the value '0'...&amp;nbsp;&lt;BR /&gt;It is just qlik functionality..&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 10:31:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Text-and-image-object-with-calculation-condition/m-p/1638254#M47584</guid>
      <dc:creator>NicolaiF</dc:creator>
      <dc:date>2019-10-22T10:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Text and image object with calculation condition</title>
      <link>https://community.qlik.com/t5/App-Development/Text-and-image-object-with-calculation-condition/m-p/1638298#M47587</link>
      <description>&lt;P&gt;Does the Hide/show container evaluate all the visualisations when it is used?&lt;/P&gt;&lt;P&gt;Or does it first evaulate when the "Show condition for chart" is fulfilled?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 11:38:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Text-and-image-object-with-calculation-condition/m-p/1638298#M47587</guid>
      <dc:creator>NicolaiF</dc:creator>
      <dc:date>2019-10-22T11:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Text and image object with calculation condition</title>
      <link>https://community.qlik.com/t5/App-Development/Text-and-image-object-with-calculation-condition/m-p/1638406#M47590</link>
      <description>&lt;P&gt;It will just evaluate "Show condition for chart" and if it is true, it will show that particular visualization.&lt;/P&gt;&lt;P&gt;You may add it like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 219px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22110iF016499C6305A916/image-dimensions/219x281?v=v2" width="219" height="281" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.JPG" style="width: 178px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22112i8F25FCE903BFDD42/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture2.JPG" alt="Capture2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 14:08:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Text-and-image-object-with-calculation-condition/m-p/1638406#M47590</guid>
      <dc:creator>naumanshah</dc:creator>
      <dc:date>2019-10-22T14:08:44Z</dc:date>
    </item>
  </channel>
</rss>

