<?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 Conditional formatting based on button Variable in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Conditional-formatting-based-on-button-Variable/m-p/2145652#M93219</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;I have created a switch to apply conditional formatting in table&amp;nbsp; and trying to enable both at a same time. but one switch is not working if I enable the other one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;eg :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cbhuvi27_0-1702025303702.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/121276i2A6F44804009A995/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cbhuvi27_0-1702025303702.png" alt="Cbhuvi27_0-1702025303702.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For 1st switch it is blue() and for 2nd switch it is grey, even I enabled both I am unable to see the conditional formatting for 2nd switch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If($(vSwitch1)='Switch1',IF(SUM(Sales)&amp;gt;0 AND SUM(Sales)&amp;lt;100, RGB(201,218,248)),&lt;BR /&gt;IF($(vSwitch2)='Switch2',IF(SUM(Sales)=0,RGB(192,192,192))))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2023 08:55:43 GMT</pubDate>
    <dc:creator>Cbhuvi27</dc:creator>
    <dc:date>2023-12-08T08:55:43Z</dc:date>
    <item>
      <title>Conditional formatting based on button Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-formatting-based-on-button-Variable/m-p/2145652#M93219</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;I have created a switch to apply conditional formatting in table&amp;nbsp; and trying to enable both at a same time. but one switch is not working if I enable the other one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;eg :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cbhuvi27_0-1702025303702.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/121276i2A6F44804009A995/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cbhuvi27_0-1702025303702.png" alt="Cbhuvi27_0-1702025303702.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For 1st switch it is blue() and for 2nd switch it is grey, even I enabled both I am unable to see the conditional formatting for 2nd switch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If($(vSwitch1)='Switch1',IF(SUM(Sales)&amp;gt;0 AND SUM(Sales)&amp;lt;100, RGB(201,218,248)),&lt;BR /&gt;IF($(vSwitch2)='Switch2',IF(SUM(Sales)=0,RGB(192,192,192))))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 08:55:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-formatting-based-on-button-Variable/m-p/2145652#M93219</guid>
      <dc:creator>Cbhuvi27</dc:creator>
      <dc:date>2023-12-08T08:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting based on button Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-formatting-based-on-button-Variable/m-p/2481461#M100831</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/247872"&gt;@Cbhuvi27&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;the current expression is evaluating &lt;SPAN&gt;vSwitch1&amp;nbsp;&lt;/SPAN&gt;and, if it is 'Switch1', it applies the first condition, but it doesn't leave room for the second condition to be evaluated unless the first one fails. You need to adjust the logic so that both conditions can be evaluated independently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;IF(&lt;BR /&gt;$(vSwitch1) = 'Switch1' AND SUM(Sales) &amp;gt; 0 AND SUM(Sales) &amp;lt; 100, &lt;BR /&gt;RGB(201,218,248),&lt;BR /&gt;IF(&lt;BR /&gt;$(vSwitch2) = 'Switch2' AND SUM(Sales) = 0, &lt;BR /&gt;RGB(192,192,192),&lt;BR /&gt;// Default color if no conditions are met&lt;BR /&gt;'black'&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 08:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-formatting-based-on-button-Variable/m-p/2481461#M100831</guid>
      <dc:creator>F_B</dc:creator>
      <dc:date>2024-09-13T08:21:35Z</dc:date>
    </item>
  </channel>
</rss>

