<?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 How do you count specific Colored results in a table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-do-you-count-specific-Colored-results-in-a-table/m-p/2607#M180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to write a KPI that shows the number of rows returned where the background color was changed to Red based on a condition.&lt;/P&gt;&lt;P&gt;This is the FX:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ( TOTAL_TAX &amp;gt; Avg(TOTAL &amp;lt;[Category Type]&amp;gt; TOTAL_TAX) , red() , green() )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running Qlik Sense November Release desktop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jan 2018 03:25:17 GMT</pubDate>
    <dc:creator>deerhunter</dc:creator>
    <dc:date>2018-01-18T03:25:17Z</dc:date>
    <item>
      <title>How do you count specific Colored results in a table</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-count-specific-Colored-results-in-a-table/m-p/2607#M180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to write a KPI that shows the number of rows returned where the background color was changed to Red based on a condition.&lt;/P&gt;&lt;P&gt;This is the FX:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ( TOTAL_TAX &amp;gt; Avg(TOTAL &amp;lt;[Category Type]&amp;gt; TOTAL_TAX) , red() , green() )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running Qlik Sense November Release desktop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 03:25:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-count-specific-Colored-results-in-a-table/m-p/2607#M180</guid>
      <dc:creator>deerhunter</dc:creator>
      <dc:date>2018-01-18T03:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do you count specific Colored results in a table</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-count-specific-Colored-results-in-a-table/m-p/2608#M181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;I think this should work for you:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;&amp;nbsp; Sum( Aggr ( -(Sum(TOTAL_TAX) &amp;gt; Avg(TOTAL &amp;lt;[Category Type]&amp;gt; TOTAL_TAX)) , &lt;STRONG style="color: #ff0000;"&gt;&lt;EM&gt;dim1&lt;/EM&gt;&lt;/STRONG&gt; ) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;You have to replace the &lt;STRONG&gt;&lt;EM&gt;dim1&lt;/EM&gt;&lt;/STRONG&gt; in the above expression with the same dimension(s) as in your chart.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;If there is more than one dimension you have to list all with a comma in between instead of just &lt;STRONG&gt;&lt;EM&gt;dim1&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 05:49:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-count-specific-Colored-results-in-a-table/m-p/2608#M181</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-01-18T05:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do you count specific Colored results in a table</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-count-specific-Colored-results-in-a-table/m-p/2609#M182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;sum(If ( TOTAL_TAX &amp;gt; Avg(TOTAL &amp;lt;[Category Type]&amp;gt; TOTAL_TAX) , 1,0))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you are using it in a KPI you may need to use something like this &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;sum(aggr(If ( TOTAL_TAX &amp;gt; Avg(TOTAL &amp;lt;[Category Type]&amp;gt; TOTAL_TAX) , 1,0),your dimesnions) )&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 05:56:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-count-specific-Colored-results-in-a-table/m-p/2609#M182</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2018-01-18T05:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do you count specific Colored results in a table</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-count-specific-Colored-results-in-a-table/m-p/2610#M183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect that worked, Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 13:06:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-count-specific-Colored-results-in-a-table/m-p/2610#M183</guid>
      <dc:creator>deerhunter</dc:creator>
      <dc:date>2018-01-18T13:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do you count specific Colored results in a table</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-count-specific-Colored-results-in-a-table/m-p/2611#M184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 13:37:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-count-specific-Colored-results-in-a-table/m-p/2611#M184</guid>
      <dc:creator>seanbruton</dc:creator>
      <dc:date>2018-01-18T13:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do you count specific Colored results in a table</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-count-specific-Colored-results-in-a-table/m-p/2612#M185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Buck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked into this a bit and played with the idea.&lt;/P&gt;&lt;P&gt;On my dashboard, we just have the totals for various dimension/ measure relationships.&lt;/P&gt;&lt;P&gt;The thing that got me thinking was that a total is always the nett value of positive and negative numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, therefore, this post got my interest as its always good to show the movement in the business. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I did was in my case I have Current YTD values and Previous YTD values the sum of the two is my variance.&lt;/P&gt;&lt;P&gt;So if Current is greater than Previous its green and the reverse is red. If equal yellow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote that if current &amp;gt; previous then 1, then sum of the ones, then to get a financial value I added this.&lt;/P&gt;&lt;P&gt;Sum(CYTD_Value* IF(CYTD_Value &amp;gt; PYTD_Value,1,0)) so in theory this stays dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My results are great now as I have 3 KPI's &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Total Financial Value and &lt;/SPAN&gt;number&lt;SPAN style="font-size: 10pt;"&gt; of accounts &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Total Increase or grown Financial Value and number of account doing better than last year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Total Decline or slipping Financial Value and number of accounts doing worse than last year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2018 11:30:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-count-specific-Colored-results-in-a-table/m-p/2612#M185</guid>
      <dc:creator>seanbruton</dc:creator>
      <dc:date>2018-01-19T11:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do you count specific Colored results in a table</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-count-specific-Colored-results-in-a-table/m-p/2613#M186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, so if i also wanted to count those results where &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Sum(TOTAL_TAX) Plus 200 Greater than the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Avg(TOTAL &amp;lt;[Category Type]&amp;gt; TOTAL_TAX))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;How might that look?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 01:38:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-count-specific-Colored-results-in-a-table/m-p/2613#M186</guid>
      <dc:creator>deerhunter</dc:creator>
      <dc:date>2018-01-30T01:38:07Z</dc:date>
    </item>
  </channel>
</rss>

