<?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 QlikSense Table column Background Color logic with Alternate State filter in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/QlikSense-Table-column-Background-Color-logic-with-Alternate/m-p/2070823#M87828</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;I need help on the Background color logic. In QlikSense table, I have one dimension column with 4 to 5 concatenate fields. like ID &amp;amp;'-'&amp;amp; Name &amp;amp;'-'&amp;amp; Address &amp;amp;'-'&amp;amp; ContactNo &amp;amp;'-'&amp;amp; Month&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;213-AAA-XYZ-56739-Apr&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;563-BBB-YNB-78654-May&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;745-CCC-YGD-45976-Jun&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;356-DDD-YGD-29747-&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;198-EEE-XYZ-46954-&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Color Logic:&lt;/P&gt;
&lt;P&gt;If the Month value is &lt;FONT color="#000000"&gt;&lt;STRONG&gt;Previous month&lt;/STRONG&gt;&lt;/FONT&gt; means always it should be in &lt;FONT color="#000000"&gt;Yellow&lt;/FONT&gt;. if the month is &lt;STRONG&gt;not Previous month&lt;/STRONG&gt; then we need to show it as Light green. suppose they &lt;STRONG&gt;select any values&lt;/STRONG&gt;&amp;nbsp;on the table that cell should be &lt;STRONG&gt;highlighted&lt;/STRONG&gt; as Darker green but &lt;STRONG&gt;yellow should be maintain the same color&lt;/STRONG&gt; and the&amp;nbsp;&lt;STRONG&gt;Unselected values&lt;/STRONG&gt; should be light green.&lt;/P&gt;
&lt;P&gt;Note: I'm using Alternate state (GWA Requirement) in my table based on requirement.&lt;/P&gt;
&lt;P&gt;My Background color condition&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if(MonthFlag='PreviousMonth','#ffbc3d',&lt;BR /&gt;if(GetFieldSelections(ID,',',100,'GWA Requirement' )=ID and MonthFlag='PreviousMonth','#ffbc3d',&lt;BR /&gt;if(GetFieldSelections(ID,',',100,'GWA Requirement' )=ID and MonthFlag&amp;lt;&amp;gt;'PreviousMonth','#57C880',&lt;BR /&gt;if(GetFieldSelections(ID,',',100,'GWA Requirement' )&amp;lt;&amp;gt;ID and MonthFlag&amp;lt;&amp;gt;'PreviousMonth','#c1e6ce',&lt;BR /&gt;'#ffbc3d'))))&lt;/P&gt;
&lt;P&gt;It's partially work for me. all the conditions work. except when they select "Not Previous month" ID value , the "Previous Month" ID color changed as lighter green. It's wrong.&lt;/P&gt;
&lt;P&gt;EX: Without any selection&lt;/P&gt;
&lt;TABLE width="245"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="245"&gt;&lt;FONT color="#FFCC00"&gt;213-AAA-XYZ-56739-Apr&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#99CC00"&gt;563-BBB-YNB-78654-May&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#99CC00"&gt;745-CCC-YGD-45976-Jun&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#99CC00"&gt;356-DDD-YGD-29747-&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#99CC00"&gt;198-EEE-XYZ-46954-&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Select the "Not Previous Month" value - Jun (here yellow should maintain the same)&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="245"&gt;&lt;FONT color="#FFCC00"&gt;213-AAA-XYZ-56739-Apr&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#99CC00"&gt;563-BBB-YNB-78654-May&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#008000"&gt;745-CCC-YGD-45976-Jun&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#99CC00"&gt;356-DDD-YGD-29747-&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#99CC00"&gt;198-EEE-XYZ-46954-&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Select the "Previous Month" value - Apr&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="245"&gt;&lt;FONT color="#FFCC00"&gt;213-AAA-XYZ-56739-Apr&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#99CC00"&gt;563-BBB-YNB-78654-May&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#99CC00"&gt;745-CCC-YGD-45976-Jun&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#99CC00"&gt;356-DDD-YGD-29747-&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#99CC00"&gt;198-EEE-XYZ-46954-&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly help on this. to write a correct expression&lt;/P&gt;
&lt;P&gt;Thanks for your help&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 21:48:41 GMT</pubDate>
    <dc:creator>24_02_SRR</dc:creator>
    <dc:date>2024-11-15T21:48:41Z</dc:date>
    <item>
      <title>QlikSense Table column Background Color logic with Alternate State filter</title>
      <link>https://community.qlik.com/t5/App-Development/QlikSense-Table-column-Background-Color-logic-with-Alternate/m-p/2070823#M87828</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;I need help on the Background color logic. In QlikSense table, I have one dimension column with 4 to 5 concatenate fields. like ID &amp;amp;'-'&amp;amp; Name &amp;amp;'-'&amp;amp; Address &amp;amp;'-'&amp;amp; ContactNo &amp;amp;'-'&amp;amp; Month&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;213-AAA-XYZ-56739-Apr&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;563-BBB-YNB-78654-May&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;745-CCC-YGD-45976-Jun&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;356-DDD-YGD-29747-&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;198-EEE-XYZ-46954-&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Color Logic:&lt;/P&gt;
&lt;P&gt;If the Month value is &lt;FONT color="#000000"&gt;&lt;STRONG&gt;Previous month&lt;/STRONG&gt;&lt;/FONT&gt; means always it should be in &lt;FONT color="#000000"&gt;Yellow&lt;/FONT&gt;. if the month is &lt;STRONG&gt;not Previous month&lt;/STRONG&gt; then we need to show it as Light green. suppose they &lt;STRONG&gt;select any values&lt;/STRONG&gt;&amp;nbsp;on the table that cell should be &lt;STRONG&gt;highlighted&lt;/STRONG&gt; as Darker green but &lt;STRONG&gt;yellow should be maintain the same color&lt;/STRONG&gt; and the&amp;nbsp;&lt;STRONG&gt;Unselected values&lt;/STRONG&gt; should be light green.&lt;/P&gt;
&lt;P&gt;Note: I'm using Alternate state (GWA Requirement) in my table based on requirement.&lt;/P&gt;
&lt;P&gt;My Background color condition&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if(MonthFlag='PreviousMonth','#ffbc3d',&lt;BR /&gt;if(GetFieldSelections(ID,',',100,'GWA Requirement' )=ID and MonthFlag='PreviousMonth','#ffbc3d',&lt;BR /&gt;if(GetFieldSelections(ID,',',100,'GWA Requirement' )=ID and MonthFlag&amp;lt;&amp;gt;'PreviousMonth','#57C880',&lt;BR /&gt;if(GetFieldSelections(ID,',',100,'GWA Requirement' )&amp;lt;&amp;gt;ID and MonthFlag&amp;lt;&amp;gt;'PreviousMonth','#c1e6ce',&lt;BR /&gt;'#ffbc3d'))))&lt;/P&gt;
&lt;P&gt;It's partially work for me. all the conditions work. except when they select "Not Previous month" ID value , the "Previous Month" ID color changed as lighter green. It's wrong.&lt;/P&gt;
&lt;P&gt;EX: Without any selection&lt;/P&gt;
&lt;TABLE width="245"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="245"&gt;&lt;FONT color="#FFCC00"&gt;213-AAA-XYZ-56739-Apr&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#99CC00"&gt;563-BBB-YNB-78654-May&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#99CC00"&gt;745-CCC-YGD-45976-Jun&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#99CC00"&gt;356-DDD-YGD-29747-&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#99CC00"&gt;198-EEE-XYZ-46954-&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Select the "Not Previous Month" value - Jun (here yellow should maintain the same)&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="245"&gt;&lt;FONT color="#FFCC00"&gt;213-AAA-XYZ-56739-Apr&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#99CC00"&gt;563-BBB-YNB-78654-May&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#008000"&gt;745-CCC-YGD-45976-Jun&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#99CC00"&gt;356-DDD-YGD-29747-&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#99CC00"&gt;198-EEE-XYZ-46954-&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Select the "Previous Month" value - Apr&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="245"&gt;&lt;FONT color="#FFCC00"&gt;213-AAA-XYZ-56739-Apr&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#99CC00"&gt;563-BBB-YNB-78654-May&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#99CC00"&gt;745-CCC-YGD-45976-Jun&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#99CC00"&gt;356-DDD-YGD-29747-&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT color="#99CC00"&gt;198-EEE-XYZ-46954-&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly help on this. to write a correct expression&lt;/P&gt;
&lt;P&gt;Thanks for your help&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:48:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikSense-Table-column-Background-Color-logic-with-Alternate/m-p/2070823#M87828</guid>
      <dc:creator>24_02_SRR</dc:creator>
      <dc:date>2024-11-15T21:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: QlikSense Table column Background Color logic with Alternate State filter</title>
      <link>https://community.qlik.com/t5/App-Development/QlikSense-Table-column-Background-Color-logic-with-Alternate/m-p/2070837#M87831</link>
      <description>&lt;P&gt;Try this and pls chk the braces&lt;/P&gt;
&lt;P&gt;if(MonthFlag='PreviousMonth',&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; if(GetSelectedCount({&amp;lt;MonthFlag={'PreviousMonth'}&amp;gt;} ID)&amp;gt;0, '#ffbc3d', '#ffbc3d'),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; if(GetSelectedCount({&amp;lt;MonthFlag={'PreviousMonth'}&amp;gt;} ID)&amp;gt;0, '#57C880',&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(GetSelectedCount({&amp;lt;MonthFlag={'PreviousMonth'}&amp;gt;} ID)=0, '#c1e6ce', '#ffbc3d')&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 18:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikSense-Table-column-Background-Color-logic-with-Alternate/m-p/2070837#M87831</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2023-05-12T18:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: QlikSense Table column Background Color logic with Alternate State filter</title>
      <link>https://community.qlik.com/t5/App-Development/QlikSense-Table-column-Background-Color-logic-with-Alternate/m-p/2070938#M87842</link>
      <description>&lt;P&gt;Thanks for your valuable reply.&lt;/P&gt;
&lt;P&gt;It's not working, Even I closed the brackets but I'm getting the error message.&lt;/P&gt;
&lt;P&gt;If I remove this part from getselectedcount, the error message is gone.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{&amp;lt;MonthFlag={'PreviousMonth'}&amp;gt;}&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2023 11:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikSense-Table-column-Background-Color-logic-with-Alternate/m-p/2070938#M87842</guid>
      <dc:creator>24_02_SRR</dc:creator>
      <dc:date>2023-05-13T11:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: QlikSense Table column Background Color logic with Alternate State filter</title>
      <link>https://community.qlik.com/t5/App-Development/QlikSense-Table-column-Background-Color-logic-with-Alternate/m-p/2071400#M87883</link>
      <description>&lt;P&gt;Finally, I found the Solution.&lt;/P&gt;
&lt;P&gt;if((count({&amp;lt;&lt;SPAN&gt;ID=,Name =,Address =,ContactNo =, Month&lt;/SPAN&gt;=,&lt;SPAN&gt;MonthFlag={'PreviousMonth'}&lt;/SPAN&gt;&amp;gt;}ID))&amp;gt;0,'#ffbc3d',&lt;BR /&gt;if(GetFieldSelections(ID,',',100,'GWA Requirement' )=ID and &lt;BR /&gt;&lt;SPAN&gt;MonthFlag&amp;lt;&amp;gt;'PreviousMonth'&lt;/SPAN&gt;,'#57C880',&lt;BR /&gt;if(not GetFieldSelections(ID',',100,'GWA Requirement' )=ID and&lt;BR /&gt;not MonthFlag='&lt;SPAN&gt;PreviousMonth'&lt;/SPAN&gt;','#c1e6ce')))&lt;/P&gt;
&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 14:17:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikSense-Table-column-Background-Color-logic-with-Alternate/m-p/2071400#M87883</guid>
      <dc:creator>24_02_SRR</dc:creator>
      <dc:date>2023-05-15T14:17:20Z</dc:date>
    </item>
  </channel>
</rss>

