<?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: Background col0r condition + pivot in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Background-col0r-condition-pivot/m-p/1288312#M859415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think in your dimension you have 3 fields and you are using only Two fields in aggr part of the expression, that is why the color is only at aggr of first two columns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jan 2017 19:27:28 GMT</pubDate>
    <dc:creator>neelamsaroha157</dc:creator>
    <dc:date>2017-01-23T19:27:28Z</dc:date>
    <item>
      <title>Background col0r condition + pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Background-col0r-condition-pivot/m-p/1288305#M859408</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;/P&gt;&lt;P&gt;I have used the below condition to get the color but it is not working. Please have a look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if((aggr(num((sum({&amp;lt;Date={$(varMaxDate)},flag={'eSign'},Category={'Complete'}&amp;gt;} Sales))&amp;nbsp; /(sum({&amp;lt;Date={$(varMaxDate)},flag={'Wet Sign'}&amp;gt;} Sales)+sum({&amp;lt;Date={$(varMaxDate)},flag={'eSign'},Category={'Complete'}&amp;gt;} Sales)&amp;nbsp; +sum({&amp;lt;Date={$(varMaxDate)},flag={'eSign'},Category={'Not Complete'}&amp;gt;} Sales)),' #,##0.0%'),Loc,A7BANB))*100 &amp;gt;=70&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and (aggr(num((sum({&amp;lt;Date={$(varMaxDate)},flag={'eSign'},Category={'Complete'}&amp;gt;} Sales))&amp;nbsp; /(sum({&amp;lt;Date={$(varMaxDate)},flag={'Wet Sign'}&amp;gt;} Sales)+sum({&amp;lt;Date={$(varMaxDate)},flag={'eSign'},Category={'Complete'}&amp;gt;} Sales)&amp;nbsp; +sum({&amp;lt;Date={$(varMaxDate)},flag={'eSign'},Category={'Not Complete'}&amp;gt;} Sales)),' #,##0.0%'),Loc,A7BANB)&lt;STRONG&gt;*100) &amp;lt;90,RGB(252,219,8) ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if((aggr(num((sum({&amp;lt;Date={$(varMaxDate)},flag={'eSign'},Category={'Complete'}&amp;gt;} Sales))&amp;nbsp; /(sum({&amp;lt;Date={$(varMaxDate)},flag={'Wet Sign'}&amp;gt;} Sales)+sum({&amp;lt;Date={$(varMaxDate)},flag={'eSign'},Category={'Complete'}&amp;gt;} Sales)&amp;nbsp; +sum({&amp;lt;Date={$(varMaxDate)},flag={'eSign'},Category={'Not Complete'}&amp;gt;} Sales)),' #,##0.0%'),Loc,A7BANB)*100)&amp;gt;=90,rgb(0,238,0),&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if((aggr(num((sum({&amp;lt;Date={$(varMaxDate)},flag={'eSign'},Category={'Complete'}&amp;gt;} Sales))&amp;nbsp; /(sum({&amp;lt;Date={$(varMaxDate)},flag={'Wet Sign'}&amp;gt;} Sales)+sum({&amp;lt;Date={$(varMaxDate)},flag={'eSign'},Category={'Complete'}&amp;gt;} Sales)&amp;nbsp; +sum({&amp;lt;Date={$(varMaxDate)},flag={'eSign'},Category={'Not Complete'}&amp;gt;} Sales)),' #,##0.0%'),Loc,A7BANB)*100)&amp;lt;70,rgb(255,69,0))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.. &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/Background-col0r-condition-pivot/m-p/1288305#M859408</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Background col0r condition + pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Background-col0r-condition-pivot/m-p/1288306#M859409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just by looking at this humongous expression we are suppose to know what is wrong with it and why it isn't working? All the best bro... I hope someone can really decipher this for you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 15:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-col0r-condition-pivot/m-p/1288306#M859409</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-20T15:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Background col0r condition + pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Background-col0r-condition-pivot/m-p/1288307#M859410</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;/P&gt;&lt;P&gt;Only few cells were highlighted.Please find below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/150482_Untitled.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 14:03:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-col0r-condition-pivot/m-p/1288307#M859410</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2017-01-23T14:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Background col0r condition + pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Background-col0r-condition-pivot/m-p/1288308#M859411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not use Visual Cues tab and your already calculated expression?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="background.GIF" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/150497_background.GIF" style="width: 620px; height: 239px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 15:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-col0r-condition-pivot/m-p/1288308#M859411</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2017-01-23T15:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Background col0r condition + pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Background-col0r-condition-pivot/m-p/1288309#M859412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="bg1.GIF" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/150500_bg1.GIF" style="width: 620px; height: 230px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 15:08:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-col0r-condition-pivot/m-p/1288309#M859412</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2017-01-23T15:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Background col0r condition + pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Background-col0r-condition-pivot/m-p/1288310#M859413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you can use &lt;STRONG&gt;Custom Format Cell&lt;/STRONG&gt; to give your color expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enable the &lt;STRONG&gt;'Design Grid' from the view option&lt;/STRONG&gt; on the top left. Then right click on the column you want to change the color.&lt;/P&gt;&lt;P&gt;Give your color expression there and check if it works?&lt;/P&gt;&lt;P&gt;And if you can add the below expression to a Variable?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;vExp =&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: 13px;"&gt;if((aggr(num((sum({&amp;lt;Date={$(varMaxDate)},flag={'eSign'},Category={'Complete'}&amp;gt;} Sales))&amp;nbsp; /(sum({&amp;lt;Date={$(varMaxDate)},flag={'Wet Sign'}&amp;gt;} Sales)+sum({&amp;lt;Date={$(varMaxDate)},flag={'eSign'},Category={'Complete'}&amp;gt;} Sales)&amp;nbsp; +sum({&amp;lt;Date={$(varMaxDate)},flag={'eSign'},Category={'Not Complete'}&amp;gt;} Sales)),' #,##0.0%'),Loc,A7BANB)*100)&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: 13px;"&gt;and for defining the color use&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: 13px;"&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: 13px;"&gt;&lt;STRONG&gt;if($(vExp)&amp;lt;70,&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;rgb(255,69,0))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 15:44:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-col0r-condition-pivot/m-p/1288310#M859413</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2017-01-23T15:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Background col0r condition + pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Background-col0r-condition-pivot/m-p/1288311#M859414</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;/P&gt;&lt;P&gt;I have done the same but it's not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 17:51:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-col0r-condition-pivot/m-p/1288311#M859414</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2017-01-23T17:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Background col0r condition + pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Background-col0r-condition-pivot/m-p/1288312#M859415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think in your dimension you have 3 fields and you are using only Two fields in aggr part of the expression, that is why the color is only at aggr of first two columns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 19:27:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-col0r-condition-pivot/m-p/1288312#M859415</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2017-01-23T19:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Background col0r condition + pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Background-col0r-condition-pivot/m-p/1288313#M859416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Staffan that Visual Cues is probably the easiest and best approach here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But suppose you can't use Visual Cues because you are doing something more complicated or using more colors than Visual Cues allows. I'll assume the expression calculating the value in your background color is the same as your chart expression, Assume that expression is labeled "Margin". In that case, you can simply refer to the label of the expression in your background color:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Margin * 100 &amp;gt; 90, green(),&lt;/P&gt;&lt;P&gt;,if(Margin * 100 &amp;gt; 70, yellow()&lt;/P&gt;&lt;P&gt;,red()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't want to depend on the label name, then you can use to the Column() function to refer to the nth expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if(Column(1) * 100 &amp;gt; 90, green(),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,if(&lt;SPAN style="font-size: 13.3333px;"&gt;Column(1) &lt;/SPAN&gt; &amp;gt; 70, yellow()&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;,red()))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Much more efficient than repeating the expression, &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 19:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-col0r-condition-pivot/m-p/1288313#M859416</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-01-23T19:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Background col0r condition + pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Background-col0r-condition-pivot/m-p/1288314#M859417</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;/P&gt;&lt;P&gt;I have used it as an Calculated Dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 01:23:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-col0r-condition-pivot/m-p/1288314#M859417</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2017-01-24T01:23:16Z</dc:date>
    </item>
  </channel>
</rss>

