<?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 Color by expressions - How to show greater than average in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Color-by-expressions-How-to-show-greater-than-average/m-p/928366#M12816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I would like to have conditional formatting in my QlikSense bar chart so that when the output is significantly greater than the average, it is a distinct color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bar graph with # of invoices processed by week. I included a line chart with the average invoices processed by week with the expression: Count([Invoice #])/Count([Billed week])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the color by expression in the bar chart, I tried&lt;/P&gt;&lt;P&gt;if(Count("Invoice #") &amp;gt; (Count([Invoice #])/Count([Billed week])*1.25)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,rgb(192,0,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,rgb(0,0,192)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This results in every bar being red, as it doesn't look at the unique count for that week. If I change the second part of the formula to a # instead of the expression, for example &lt;/P&gt;&lt;P&gt;if(Count("Invoice #") &amp;gt; 5,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; ,rgb(192,0,0)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; ,rgb(0,0,192)&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;works with any weeks with more than 5 invoices being red. Any suggestions to update the first part of the formula to only look at the count of unique billing weeks?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Nov 2024 11:05:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2024-11-16T11:05:50Z</dc:date>
    <item>
      <title>Color by expressions - How to show greater than average</title>
      <link>https://community.qlik.com/t5/App-Development/Color-by-expressions-How-to-show-greater-than-average/m-p/928366#M12816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I would like to have conditional formatting in my QlikSense bar chart so that when the output is significantly greater than the average, it is a distinct color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bar graph with # of invoices processed by week. I included a line chart with the average invoices processed by week with the expression: Count([Invoice #])/Count([Billed week])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the color by expression in the bar chart, I tried&lt;/P&gt;&lt;P&gt;if(Count("Invoice #") &amp;gt; (Count([Invoice #])/Count([Billed week])*1.25)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,rgb(192,0,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,rgb(0,0,192)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This results in every bar being red, as it doesn't look at the unique count for that week. If I change the second part of the formula to a # instead of the expression, for example &lt;/P&gt;&lt;P&gt;if(Count("Invoice #") &amp;gt; 5,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; ,rgb(192,0,0)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; ,rgb(0,0,192)&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;works with any weeks with more than 5 invoices being red. Any suggestions to update the first part of the formula to only look at the count of unique billing weeks?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-by-expressions-How-to-show-greater-than-average/m-p/928366#M12816</guid>
      <dc:creator />
      <dc:date>2024-11-16T11:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Color by expressions - How to show greater than average</title>
      <link>https://community.qlik.com/t5/App-Development/Color-by-expressions-How-to-show-greater-than-average/m-p/928367#M12817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What dimensions do you have on your chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 15:21:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-by-expressions-How-to-show-greater-than-average/m-p/928367#M12817</guid>
      <dc:creator>maximiliano_vel</dc:creator>
      <dc:date>2015-08-14T15:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Color by expressions - How to show greater than average</title>
      <link>https://community.qlik.com/t5/App-Development/Color-by-expressions-How-to-show-greater-than-average/m-p/928368#M12818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dimension is billed week&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Qliksense expression by color sample.JPG" class="jive-image image-1" height="187" src="/legacyfs/online/96129_Qliksense expression by color sample.JPG" style="height: 187.489655172414px; width: 394px;" width="394" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 15:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-by-expressions-How-to-show-greater-than-average/m-p/928368#M12818</guid>
      <dc:creator />
      <dc:date>2015-08-14T15:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Color by expressions - How to show greater than average</title>
      <link>https://community.qlik.com/t5/App-Development/Color-by-expressions-How-to-show-greater-than-average/m-p/928369#M12819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since I dont have a sample data, here is an approximation of what you need&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 17:40:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-by-expressions-How-to-show-greater-than-average/m-p/928369#M12819</guid>
      <dc:creator>maximiliano_vel</dc:creator>
      <dc:date>2015-08-14T17:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Color by expressions - How to show greater than average</title>
      <link>https://community.qlik.com/t5/App-Development/Color-by-expressions-How-to-show-greater-than-average/m-p/928370#M12820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried using the expression in the file you attached but am not having any success. I've moved the data into a new file which is uploaded below, please let me know if that helps shed some light on what I'm doing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 18:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-by-expressions-How-to-show-greater-than-average/m-p/928370#M12820</guid>
      <dc:creator />
      <dc:date>2015-08-14T18:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Color by expressions - How to show greater than average</title>
      <link>https://community.qlik.com/t5/App-Development/Color-by-expressions-How-to-show-greater-than-average/m-p/928371#M12821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I took the liberty on changing the formula for your average since checking the data I notice that when you count the number of Invoice over the number of Billed Week, i.e week 1 has 5 invoices then the formula result would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Invoice #]/[Billed Weeek]*1.25 = 5/5*1.25=1.25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what I did was calculate the total avg of invoices per week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls see attached file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2015 00:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-by-expressions-How-to-show-greater-than-average/m-p/928371#M12821</guid>
      <dc:creator>maximiliano_vel</dc:creator>
      <dc:date>2015-08-15T00:39:46Z</dc:date>
    </item>
  </channel>
</rss>

