<?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: Color expression not functions within buckets created by aggr function in qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Color-expression-not-functions-within-buckets-created-by-aggr/m-p/124448#M764922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this but it seems to be true in all buckets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jul 2018 07:20:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-10T07:20:58Z</dc:date>
    <item>
      <title>Color expression not functions within buckets created by aggr function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Color-expression-not-functions-within-buckets-created-by-aggr/m-p/124446#M764920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;I need to create buckets based on the % of target achieved and then count the # of accounts falling in each bucket.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm using a calculated dimension for the purpose of bucketing.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The first dimension&lt;/STRONG&gt; looks something like this &lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;=if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;0.75,dual('&amp;lt;75%',1),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;0.8,DUAL('75%-80%',2),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;0.85,DUAL('80%-85%',3),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;0.9,Dual('85%-90%',4),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;0.95,dual('90%-95%',5),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;1.0,dual('95%-100%',6),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;1.05,dual('100%-105%',7),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;1.1,dual('105%-110%',8),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;1.15,dual('110%-115%',9),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;1.2,dual('115%-120%',10),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;1.25,dual('120%-125%',11),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;1.3,dual('125%-130%',12),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;1.35,dual('130%-135%',13),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;dual('&amp;gt;135%',14))))))))))))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and the second dimension is GROUP&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Expression&lt;/STRONG&gt; uses:&lt;/P&gt;&lt;P&gt;Count(distinct Shop ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now would like to highlight the borderline cases where a little increase in the target achieved can get the shop higher discounts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The&lt;STRONG&gt; Background color code&lt;/STRONG&gt; i'm using is:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;match&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;0.75,dual('&amp;lt;75%',1),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;0.8,DUAL('75%-80%',2),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;0.85,DUAL('80%-85%',3),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;0.9,Dual('85%-90%',4),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;0.95,dual('90%-95%',5),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;1.0,dual('95%-100%',6),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;1.05,dual('100%-105%',7),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;1.1,dual('105%-110%',8),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;1.15,dual('110%-115%',9),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;1.2,dual('115%-120%',10),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;1.25,dual('120%-125%',11),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;1.3,dual('125%-130%',12),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;if(Aggr(sum(Units)/sum(Target),[Head Office],Brand,QuarterYear,GROUP)&amp;lt;1.35,dual('130%-135%',13),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #575757;"&gt;dual('&amp;gt;135%',14)))))))))))))),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;'85%-90%'),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;argb&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(50,255,255,255) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;bitand&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;color&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;FieldIndex&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('GROUP', GROUP)),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;color&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;FieldIndex&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('GROUP’, GROUP))).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Ideally it should look like this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" height="159" src="https://community.qlik.com/legacyfs/online/207364_Capture.PNG" style="height: 159px; width: 383.304px;" width="383" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesn't seem to highlight the 85-90% segment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be extremely useful!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-expression-not-functions-within-buckets-created-by-aggr/m-p/124446#M764920</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Color expression not functions within buckets created by aggr function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Color-expression-not-functions-within-buckets-created-by-aggr/m-p/124447#M764921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you just do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=If(Aggr(Sum(Units)/Sum(Target), [Head Office], Brand, QuarterYear, GROUP) &amp;lt; 0.9, ARGB(50,255,255,255) bitand color(FieldIndex('GROUP', GROUP)), color(FieldIndex('GROUP’, GROUP)))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 17:22:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-expression-not-functions-within-buckets-created-by-aggr/m-p/124447#M764921</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-09T17:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Color expression not functions within buckets created by aggr function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Color-expression-not-functions-within-buckets-created-by-aggr/m-p/124448#M764922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this but it seems to be true in all buckets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 07:20:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-expression-not-functions-within-buckets-created-by-aggr/m-p/124448#M764922</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-10T07:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Color expression not functions within buckets created by aggr function in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Color-expression-not-functions-within-buckets-created-by-aggr/m-p/124449#M764923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=If(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Aggr(Sum(Units)/Sum(Target), [Head Office], Brand, QuarterYear, GROUP) &amp;gt;= 0.85 and&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Aggr(Sum(Units)/Sum(Target), [Head Office], Brand, QuarterYear, GROUP) &amp;lt; 0.9,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ARGB(50,255,255,255) bitand color(FieldIndex('GROUP', GROUP)), color(FieldIndex('GROUP’, GROUP)))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 11:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-expression-not-functions-within-buckets-created-by-aggr/m-p/124449#M764923</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-10T11:07:04Z</dc:date>
    </item>
  </channel>
</rss>

