<?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: How to prevent Qlik Sense from automatically selecting fields used in an IF condition when clicking a table cell? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-prevent-Qlik-Sense-from-automatically-selecting-fields/m-p/2538770#M108985</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/330321"&gt;@luissss&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the cleanest option is that you build the new field in the backend, like this:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;FieldX,&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Flag,&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;If(Flag&amp;lt;&amp;gt;1, FieldX) as FieldX_Display&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;FROM ...&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are other options like using calculated dimensions with aggregates or using alternate states, but they don't deliver the same good results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Wed, 10 Dec 2025 07:55:19 GMT</pubDate>
    <dc:creator>Daniel_Castella</dc:creator>
    <dc:date>2025-12-10T07:55:19Z</dc:date>
    <item>
      <title>How to prevent Qlik Sense from automatically selecting fields used in an IF condition when clicking a table cell?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-prevent-Qlik-Sense-from-automatically-selecting-fields/m-p/2538650#M108975</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;I’m trying to find a way to avoid a standard Qlik Sense behavior related to selections in a table.&lt;/P&gt;&lt;P&gt;I have a column with the following expression:&lt;/P&gt;&lt;PRE&gt;=If([Flag] &amp;lt;&amp;gt; 1, [Field X])&lt;/PRE&gt;&lt;P&gt;When a user clicks on a value in this column (so effectively on &lt;EM&gt;[Field X]&lt;/EM&gt;), Qlik Sense correctly applies a selection on &lt;EM&gt;[Field X]&lt;/EM&gt;, but it also &lt;STRONG&gt;automatically applies a selection on the field [Flag]&lt;/STRONG&gt;, since that field is used inside the IF condition.&lt;BR /&gt;Something that in my case is not desired.&lt;/P&gt;&lt;P&gt;My goal is: &lt;STRONG&gt;when the user selects a value from the X column, Qlik Sense should only select [Field X] and NOT [Flag].&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I already tried hiding the field using &lt;STRONG&gt;HidePrefix&lt;/STRONG&gt;, but Qlik Sense still applies the selection on [Flag], and since the field is hidden, I can't even see the selection to remove it.&lt;/P&gt;&lt;P&gt;So my question is:&lt;BR /&gt;&lt;STRONG&gt;Is there any way, or any workaround, to prevent Qlik Sense from applying selections on fields used inside the IF expression when the user clicks a cell in the table?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Any suggestion or workaround is appreciated.&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 14:39:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-prevent-Qlik-Sense-from-automatically-selecting-fields/m-p/2538650#M108975</guid>
      <dc:creator>luissss</dc:creator>
      <dc:date>2025-12-09T14:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent Qlik Sense from automatically selecting fields used in an IF condition when clicking a table cell?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-prevent-Qlik-Sense-from-automatically-selecting-fields/m-p/2538770#M108985</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/330321"&gt;@luissss&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the cleanest option is that you build the new field in the backend, like this:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;FieldX,&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Flag,&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;If(Flag&amp;lt;&amp;gt;1, FieldX) as FieldX_Display&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;FROM ...&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are other options like using calculated dimensions with aggregates or using alternate states, but they don't deliver the same good results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 07:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-prevent-Qlik-Sense-from-automatically-selecting-fields/m-p/2538770#M108985</guid>
      <dc:creator>Daniel_Castella</dc:creator>
      <dc:date>2025-12-10T07:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent Qlik Sense from automatically selecting fields used in an IF condition when clicking a table cell?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-prevent-Qlik-Sense-from-automatically-selecting-fields/m-p/2538786#M108987</link>
      <description>&lt;P&gt;Hi, and thanks for your reply!&lt;/P&gt;&lt;P&gt;Unfortunately, I can’t move this condition to the data load script.&lt;BR /&gt;The logic behind the IF expression is a bit more complex and depends on runtime factors that I can’t easily reproduce or pre-calculate in the backend. For this reason, generating a static &lt;EM&gt;FieldX_Display&lt;/EM&gt; during the load isn’t an option in my case.&lt;/P&gt;&lt;P&gt;That’s why I’m looking for a frontend workaround that prevents Qlik Sense from applying the selection on &lt;EM&gt;Flag&lt;/EM&gt; when the user clicks the table cell.&lt;/P&gt;&lt;P&gt;If you have any alternative ideas that can work without modifying the data model, I’d be happy to try them.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 09:03:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-prevent-Qlik-Sense-from-automatically-selecting-fields/m-p/2538786#M108987</guid>
      <dc:creator>luissss</dc:creator>
      <dc:date>2025-12-10T09:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent Qlik Sense from automatically selecting fields used in an IF condition when clicking a table cell?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-prevent-Qlik-Sense-from-automatically-selecting-fields/m-p/2538797#M108988</link>
      <description>&lt;P&gt;You may try:&lt;/P&gt;&lt;PRE&gt;[$(=If([Flag] &amp;lt;&amp;gt; 1, 'Field X'))]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 09:50:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-prevent-Qlik-Sense-from-automatically-selecting-fields/m-p/2538797#M108988</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-12-10T09:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent Qlik Sense from automatically selecting fields used in an IF condition when clicking a table cell?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-prevent-Qlik-Sense-from-automatically-selecting-fields/m-p/2538803#M108989</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/330321"&gt;@luissss&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this expression then. It seems to work on my end:&lt;/P&gt;
&lt;P&gt;=Aggr(Only({&amp;lt;Flag-={1}, [Field X]= &amp;gt;} [Field X]), [Field X])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 10:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-prevent-Qlik-Sense-from-automatically-selecting-fields/m-p/2538803#M108989</guid>
      <dc:creator>Daniel_Castella</dc:creator>
      <dc:date>2025-12-10T10:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent Qlik Sense from automatically selecting fields used in an IF condition when clicking a table cell?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-prevent-Qlik-Sense-from-automatically-selecting-fields/m-p/2540298#M109175</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/330321"&gt;@luissss&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i guess you are filtering the dimension and then hidding empty rows&lt;/P&gt;&lt;P&gt;if so, i would suggest to filter the measures and not the dimensions&lt;/P&gt;&lt;P&gt;so&lt;/P&gt;&lt;P&gt;dimension1: [Field X]&lt;/P&gt;&lt;P&gt;dimension2: [Field Y]&lt;/P&gt;&lt;P&gt;Measure1: count({&amp;lt; Flag-={1} &amp;gt;} quantity)&lt;/P&gt;&lt;P&gt;Measure2: count({&amp;lt; Flag-={1} &amp;gt;} amount)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if im wrong, you can try using your IF expression as a master dimension&lt;BR /&gt;for example, this is my master dimension expression&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RafaelBarrios_0-1767702512892.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186101iBC935387030B9AF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RafaelBarrios_0-1767702512892.png" alt="RafaelBarrios_0-1767702512892.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And if i select&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RafaelBarrios_1-1767702551746.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186102iA449CFA3DFC49C85/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RafaelBarrios_1-1767702551746.png" alt="RafaelBarrios_1-1767702551746.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;ths filter panel shows the value and not the expression&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RafaelBarrios_2-1767702573439.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186103i7667233D3D77D673/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RafaelBarrios_2-1767702573439.png" alt="RafaelBarrios_2-1767702573439.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT color="#0000FF"&gt;this will hide the the filter expression but i will apply the selections anyway&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as last option, you could still filter the dimension by&lt;/P&gt;&lt;P&gt;=Aggr(Only({&amp;lt;Flag-={1}, [Field X]= &amp;gt;} [Field X]), [Field X])&lt;/P&gt;&lt;P&gt;as commented by&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/342059"&gt;@Daniel_Castella&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;BR /&gt;Best.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2026 12:35:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-prevent-Qlik-Sense-from-automatically-selecting-fields/m-p/2540298#M109175</guid>
      <dc:creator>RafaelBarrios</dc:creator>
      <dc:date>2026-01-06T12:35:57Z</dc:date>
    </item>
  </channel>
</rss>

