<?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 with If Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-with-If-Expression/m-p/1662521#M448937</link>
    <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;I have created buttons that use the Action "Select in Field'.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first button is when '1' is selected, the second when '2' is selected, and the third when &amp;gt;2 is selected. The data range in this field is 1 - 10.&lt;/P&gt;&lt;P&gt;Now I would like to conditionally format those buttons to change color when clicked. For 1 and 2 they are working well but for &amp;gt;2 I am having difficulty getting it to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are the expressions I use:&lt;/P&gt;&lt;P&gt;If(GetFieldSelections([Range])=1,RGB(5,66,117)) for value 1&lt;/P&gt;&lt;P&gt;If(GetFieldSelections([Range])=2,RGB(5,66,117)) for value 2&lt;/P&gt;&lt;P&gt;If(GetFieldSelections([Range])&amp;gt;2,RGB(5,66,117)) and is meant to capture anything greater than 2.&lt;/P&gt;&lt;P&gt;But the third color formatting is not working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on how I can reconstruct the expression?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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 01:35:50 GMT</pubDate>
    <dc:creator>ZoeM</dc:creator>
    <dc:date>2024-11-16T01:35:50Z</dc:date>
    <item>
      <title>Conditional Formatting with If Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-with-If-Expression/m-p/1662521#M448937</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;I have created buttons that use the Action "Select in Field'.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first button is when '1' is selected, the second when '2' is selected, and the third when &amp;gt;2 is selected. The data range in this field is 1 - 10.&lt;/P&gt;&lt;P&gt;Now I would like to conditionally format those buttons to change color when clicked. For 1 and 2 they are working well but for &amp;gt;2 I am having difficulty getting it to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are the expressions I use:&lt;/P&gt;&lt;P&gt;If(GetFieldSelections([Range])=1,RGB(5,66,117)) for value 1&lt;/P&gt;&lt;P&gt;If(GetFieldSelections([Range])=2,RGB(5,66,117)) for value 2&lt;/P&gt;&lt;P&gt;If(GetFieldSelections([Range])&amp;gt;2,RGB(5,66,117)) and is meant to capture anything greater than 2.&lt;/P&gt;&lt;P&gt;But the third color formatting is not working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on how I can reconstruct the expression?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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 01:35:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Formatting-with-If-Expression/m-p/1662521#M448937</guid>
      <dc:creator>ZoeM</dc:creator>
      <dc:date>2024-11-16T01:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting with If Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-with-If-Expression/m-p/1662527#M448940</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can you check the attached file.&lt;/P&gt;&lt;P&gt;I didn't find any problems with the formatting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sans titre.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26344i14E19F02914D6736/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sans titre.png" alt="Sans titre.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(GetFieldSelections(Range)=1,RGB(5,66,117),If(GetFieldSelections(Range)=2,RGB(50,66,230),If(GetFieldSelections(Range)&amp;gt;2,RGB(50,0,230))))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;notice that you put the same RGB color code&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 17:07:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Formatting-with-If-Expression/m-p/1662527#M448940</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-01-03T17:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting with If Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-with-If-Expression/m-p/1662528#M448941</link>
      <description>&lt;P&gt;Hi Taoufiq,&lt;/P&gt;&lt;P&gt;Thanks for the quick response.&lt;/P&gt;&lt;P&gt;So the idea is to have three different buttons that when not active they are a neutral color.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the first button is clicked (value 1), its color changes to show that it is active.&lt;/P&gt;&lt;P&gt;When the second button is clicked (value 2), its color changes to show it is active, and the other two buttons remain in the neutral color.&lt;/P&gt;&lt;P&gt;When the third button is clicked (value &amp;gt;2),&amp;nbsp;its color changes to show it is active, and the other two buttons remain in the neutral color.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 17:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Formatting-with-If-Expression/m-p/1662528#M448941</guid>
      <dc:creator>ZoeM</dc:creator>
      <dc:date>2020-01-03T17:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting with If Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-with-If-Expression/m-p/1662533#M448942</link>
      <description>&lt;P&gt;Hi Zoe,&lt;/P&gt;&lt;P&gt;attached a second version that you can improve if you want.&lt;/P&gt;&lt;P&gt;So the idea is :&lt;/P&gt;&lt;P&gt;1- I have created several variables to identify the active button&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 392px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26345iA3619E641C09F100/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2- then for Button Actions i add a Set variable action that allows to save the&amp;nbsp; variable state&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 696px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26346i2852932E451AD6E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;then for the function :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;If(GetFieldSelections(Range)=1 and B1=1,RGB(5,66,117),RGB(0,0,0))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 17:32:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Formatting-with-If-Expression/m-p/1662533#M448942</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-01-03T17:32:16Z</dc:date>
    </item>
  </channel>
</rss>

