<?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 Change in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Color-Change/m-p/592186#M219569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the below expression in Background Text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(CATEGORY='Profit\Loss', &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([Time Dimension]='DTD',&lt;/P&gt;&lt;P&gt;if(sum({$&amp;lt;TradeDate={'3/28/2014'}&amp;gt;}SalePrice)-sum({$&amp;lt;TradeDate={'3/28/2014'}&amp;gt;}TradePrice)&amp;gt;0,Green(),red()),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([Time Dimension]='MTD',&lt;/P&gt;&lt;P&gt;if(SUM({&amp;lt;Year={'$(vMaxYear)'},Month={'$(vMaxMonth)'},Day={'&amp;lt;=$(vMaxDay)'},TradeDate=&amp;gt;}SalePrice)-SUM({&amp;lt;Year={'$(vMaxYear)'},Month={'$(vMaxMonth)'},Day={'&amp;lt;=$(vMaxDay)'},TradeDate=&amp;gt;}TradePrice)&lt;/P&gt;&lt;P&gt;&amp;gt;0,Green(),red()),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([Time Dimension]='YTD',&lt;/P&gt;&lt;P&gt;if(SUM({&amp;lt;Year={'$(vMaxYear)'},TradeDate={'&amp;lt;=$(vMaxDate)'},Month=,Day=&amp;gt;}SalePrice)-SUM({&amp;lt;Year={'$(vMaxYear)'},TradeDate={'&amp;lt;=$(vMaxDate)'},Month=,Day=&amp;gt;}TradePrice)&amp;gt;0,Green(),red()),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Apr 2014 13:56:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-02T13:56:08Z</dc:date>
    <item>
      <title>Color Change</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Change/m-p/592185#M219568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the color of Profit\Loss to be changed to Red(Negative Values) and Green(Positive Values) for DTD, MTD and YTD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be changed only in Profit\Loss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA Qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with this ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 13:44:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Change/m-p/592185#M219568</guid>
      <dc:creator />
      <dc:date>2014-04-02T13:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Color Change</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Change/m-p/592186#M219569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the below expression in Background Text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(CATEGORY='Profit\Loss', &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([Time Dimension]='DTD',&lt;/P&gt;&lt;P&gt;if(sum({$&amp;lt;TradeDate={'3/28/2014'}&amp;gt;}SalePrice)-sum({$&amp;lt;TradeDate={'3/28/2014'}&amp;gt;}TradePrice)&amp;gt;0,Green(),red()),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([Time Dimension]='MTD',&lt;/P&gt;&lt;P&gt;if(SUM({&amp;lt;Year={'$(vMaxYear)'},Month={'$(vMaxMonth)'},Day={'&amp;lt;=$(vMaxDay)'},TradeDate=&amp;gt;}SalePrice)-SUM({&amp;lt;Year={'$(vMaxYear)'},Month={'$(vMaxMonth)'},Day={'&amp;lt;=$(vMaxDay)'},TradeDate=&amp;gt;}TradePrice)&lt;/P&gt;&lt;P&gt;&amp;gt;0,Green(),red()),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([Time Dimension]='YTD',&lt;/P&gt;&lt;P&gt;if(SUM({&amp;lt;Year={'$(vMaxYear)'},TradeDate={'&amp;lt;=$(vMaxDate)'},Month=,Day=&amp;gt;}SalePrice)-SUM({&amp;lt;Year={'$(vMaxYear)'},TradeDate={'&amp;lt;=$(vMaxDate)'},Month=,Day=&amp;gt;}TradePrice)&amp;gt;0,Green(),red()),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 13:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Change/m-p/592186#M219569</guid>
      <dc:creator />
      <dc:date>2014-04-02T13:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Color Change</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Change/m-p/592187#M219570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest use variables for this like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vDTD = if(sum({$&amp;lt;TradeDate={'3/28/2014'}&amp;gt;}SalePrice)-sum({$&amp;lt;TradeDate={'3/28/2014'}&amp;gt;}TradePrice)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vMTD = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(SUM({&amp;lt;Year={'$(vMaxYear)'},Month={'$(vMaxMonth)'},Day={'&amp;lt;=$(vMaxDay)'},TradeDate=&amp;gt;}SalePrice)-SUM({&amp;lt;Year={'$(vMaxYear)'},Month={'$(vMaxMonth)'},Day={'&amp;lt;=$(vMaxDay)'},TradeDate=&amp;gt;}TradePrice)&lt;/SPAN&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;"&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;"&gt;vYTD = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(SUM({&amp;lt;Year={'$(vMaxYear)'},TradeDate={'&amp;lt;=$(vMaxDate)'},Month=,Day=&amp;gt;}SalePrice)-SUM({&amp;lt;Year={'$(vMaxYear)'},TradeDate={'&amp;lt;=$(vMaxDate)'},Month=,Day=&amp;gt;}TradePrice)&lt;/SPAN&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;"&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;"&gt;And then use your expression like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(CATEGORY='Profit\Loss',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if([Time Dimension]='DTD',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(vDTD)&amp;gt;0,Green(),red()),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if([Time Dimension]='MTD',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(vMTD)&amp;gt;0,Green(),red()), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if([Time Dimension]='YTD',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(vYTD)&amp;gt;0,Green(),red()),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; ))))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 14:07:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Change/m-p/592187#M219570</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-04-02T14:07:22Z</dc:date>
    </item>
  </channel>
</rss>

