<?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: Comparing four values for a cell background color in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Comparing-four-values-for-a-cell-background-color/m-p/1939103#M77403</link>
    <description>&lt;P&gt;Hi Chris,&lt;/P&gt;
&lt;P&gt;Thanks but&amp;nbsp; I am not able to open that type of file &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Francine&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jun 2022 17:31:50 GMT</pubDate>
    <dc:creator>Francine</dc:creator>
    <dc:date>2022-06-02T17:31:50Z</dc:date>
    <item>
      <title>Comparing four values for a cell background color</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-four-values-for-a-cell-background-color/m-p/1939042#M77397</link>
      <description>&lt;P&gt;Good Day,&lt;/P&gt;
&lt;P&gt;I am trying to color a cell background and am confused on how to write the expression.&amp;nbsp; The below snippet is an example of what I'd like to highlight,&amp;nbsp; The anomaly of prices between states&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Francine_0-1654181449648.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/80904i4028A5AB1B767CCF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Francine_0-1654181449648.png" alt="Francine_0-1654181449648.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I wrote:&amp;nbsp;=if(sum([Virginia])-sum([Florida])+sum([Ohio])-sum([New Hampshire]) = 0,'White', LightRed())&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;for each state dimension within the color cell background which works but does not provide a accurate comparison .&amp;nbsp; It highlights the entire row.&amp;nbsp; I would only like to highlight the cell that has a different value from the others on the same row.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Francine&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 15:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-four-values-for-a-cell-background-color/m-p/1939042#M77397</guid>
      <dc:creator>Francine</dc:creator>
      <dc:date>2022-06-02T15:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing four values for a cell background color</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-four-values-for-a-cell-background-color/m-p/1939099#M77402</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This is going to be very dependent on your data structure, but the toy application attached might give some ideas.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 17:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-four-values-for-a-cell-background-color/m-p/1939099#M77402</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2022-06-02T17:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing four values for a cell background color</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-four-values-for-a-cell-background-color/m-p/1939103#M77403</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;
&lt;P&gt;Thanks but&amp;nbsp; I am not able to open that type of file &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Francine&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 17:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-four-values-for-a-cell-background-color/m-p/1939103#M77403</guid>
      <dc:creator>Francine</dc:creator>
      <dc:date>2022-06-02T17:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing four values for a cell background color</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-four-values-for-a-cell-background-color/m-p/1939109#M77404</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Hmmm, is a Qlik Sense file&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;.&lt;/P&gt;
&lt;P&gt;Anyway code was like this;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;data:
load * inline [
Car Name, State, Total
Subaru, Virgina, 1000
Subaru, Florida, 1000
Subaru, Ohio, 2000
Subaru, New Hampshire, 1000
Toyota, Virgina, 3000
Toyota, Florida, 3000
Toyota, Ohio, 3000
Toyota, New Hampshire, 2000
];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp; So pivot like this;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20220602_1.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/80911iF0F3CC7C5F18191B/image-size/large?v=v2&amp;amp;px=999" role="button" title="20220602_1.png" alt="20220602_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;amp; Background colour setting for the measure is;&lt;/P&gt;
&lt;P&gt;If(if(HRank(Sum(Total))=1 OR HRank(Sum(Total))=Count(DISTINCT TOTAL State),1,0)=1,Red(),White())&lt;/P&gt;
&lt;P&gt;Note similar should work in QlikView.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 17:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-four-values-for-a-cell-background-color/m-p/1939109#M77404</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2022-06-02T17:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing four values for a cell background color</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-four-values-for-a-cell-background-color/m-p/1939245#M77424</link>
      <description>&lt;P&gt;if(substringcount(HRank(Sum(Amount)),'-')=0,LightRed(200))&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 03:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-four-values-for-a-cell-background-color/m-p/1939245#M77424</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-06-03T03:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing four values for a cell background color</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-four-values-for-a-cell-background-color/m-p/1939401#M77434</link>
      <description>&lt;P&gt;Thank you both.&amp;nbsp; I was hoping for an expression without having to write code because the data will constantly be&amp;nbsp; changing and this is just a sample of what of what I am trying to accomplish.&amp;nbsp; My data-set is quite large but set up on an xls in the same manor.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 11:30:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-four-values-for-a-cell-background-color/m-p/1939401#M77434</guid>
      <dc:creator>Francine</dc:creator>
      <dc:date>2022-06-03T11:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing four values for a cell background color</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-four-values-for-a-cell-background-color/m-p/1939521#M77451</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I put code in as that was the code in the toy application QVF ... so you could copy and paste in to an empty application if you wanted to and recreate what I had done.&lt;/P&gt;
&lt;P&gt;You (probably) won't have to write code ... but can't tell from what you have posted what your data is structured like.&lt;/P&gt;
&lt;P&gt;I wonder if you are importing Excel that is structured very much like you show in your grid. That is fine, although limiting in some ways &amp;amp; in most applications you would manipulate so it looks more like a list Car Name, State, Amount (which you can do in Qlik - I think through the UI, so it writes code for you).&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 15:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-four-values-for-a-cell-background-color/m-p/1939521#M77451</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2022-06-03T15:41:14Z</dc:date>
    </item>
  </channel>
</rss>

