<?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: Help with nested IF statement in conditional formatting in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Help-with-nested-IF-statement-in-conditional-formatting/m-p/1459840#M36048</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;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/189129_Untitled.png" style="height: 134px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could use this:&lt;/P&gt;&lt;P&gt;If(Column(1)-Column(2)&amp;lt;0 and Category&amp;lt;&amp;gt;'Gallons',RGB(198,224,180),&lt;/P&gt;&lt;P&gt;If(Column(1)-Column(2)&amp;gt;0 and Category&amp;lt;&amp;gt;'Gallons',RGB(242,220,219),&lt;/P&gt;&lt;P&gt;If(Column(1)-Column(2)&amp;lt;0 and Category='Gallons',RGB(242,220,219),&lt;/P&gt;&lt;P&gt;If(Column(1)-Column(2)&amp;gt;0 and Category='Gallons',RGB(198,224,180),White()))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if Column(3) already has the difference then you could use it:&lt;/P&gt;&lt;P&gt;If(Column(3)&amp;lt;0 and Category&amp;lt;&amp;gt;'Gallons',RGB(198,224,180),&lt;/P&gt;&lt;P&gt;If(Column(3)&amp;gt;0 and Category&amp;lt;&amp;gt;'Gallons',RGB(242,220,219),&lt;/P&gt;&lt;P&gt;If(Column(3)&amp;lt;0 and Category='Gallons',RGB(242,220,219),&lt;/P&gt;&lt;P&gt;If(Column(3)&amp;gt;0 and Category='Gallons',RGB(198,224,180),White()))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Jan 2018 04:08:36 GMT</pubDate>
    <dc:creator>luismadriz</dc:creator>
    <dc:date>2018-01-06T04:08:36Z</dc:date>
    <item>
      <title>Help with nested IF statement in conditional formatting</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-nested-IF-statement-in-conditional-formatting/m-p/1459839#M36047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a table that shows various items from our P&amp;amp;L for the current period, average prior 3 periods, and a column with the variance between the two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have sales P&amp;amp;L items with a credit balance (looks like a negative) and expenses with a debit balance (looks like a positive), but then we also have gallons sold (looks positive). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the variance in sales &amp;amp; expenses are&amp;nbsp; negative, I want them to highlight green and red if the variance is positive. &lt;/P&gt;&lt;P&gt;If the variance in gallons are negative, I want them to highlight red and highlight green if the variance is positive. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have grouped the GL accounts into [GL Type] = 'Income Expense' or 'Gallons' in order to try and get the conditional formatting to work.&lt;/P&gt;&lt;P&gt;Please see table below for a simplified example:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Category&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Current Month&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Average 3 Periods&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Variance from Average&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Color Highlight&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;Income&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-$1,000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-$750&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-$250&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Green - RGB(198,224,180)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Income&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;-$1,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-$1,250&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$250&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Red - RGB(242,220,219)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Expense&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$1,000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$750&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$250&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Red - RGB(242,220,219)&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Expense&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$1,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$1,250&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-$250&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Green - RGB(198,224,180)&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Gallons&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$1,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$750&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$250&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Green - RGB(198,224,180)&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Gallons&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$1,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;$1,250&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-$250&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Red - RGB(242,220,219)&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the formula for conditional formatting I currently have (that's not working): &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If((((Column(1))-(Column(2))&amp;lt;0) and [GL Type]='Income Expense')&lt;/P&gt;&lt;P&gt;RGB(198,224,180),&lt;/P&gt;&lt;P&gt;(IF(((Column(1)))-(Column(2)))&amp;gt;0) and [GL Type]='Income Expense')&lt;/P&gt;&lt;P&gt;RGB(242,220,219),&lt;/P&gt;&lt;P&gt;(IF(((Column(1)))-(Column(2)))&amp;lt;0) and [GL Type]='Gallons')&lt;/P&gt;&lt;P&gt;RGB(242,220,219),&lt;/P&gt;&lt;P&gt;(IF(((Column(1)))-(Column(2)))&amp;gt;0) and [GL Type]='Gallons')&lt;/P&gt;&lt;P&gt;RGB(198,224,180),&lt;/P&gt;&lt;P&gt;White()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 22:17:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-nested-IF-statement-in-conditional-formatting/m-p/1459839#M36047</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-05T22:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help with nested IF statement in conditional formatting</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-nested-IF-statement-in-conditional-formatting/m-p/1459840#M36048</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;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/189129_Untitled.png" style="height: 134px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could use this:&lt;/P&gt;&lt;P&gt;If(Column(1)-Column(2)&amp;lt;0 and Category&amp;lt;&amp;gt;'Gallons',RGB(198,224,180),&lt;/P&gt;&lt;P&gt;If(Column(1)-Column(2)&amp;gt;0 and Category&amp;lt;&amp;gt;'Gallons',RGB(242,220,219),&lt;/P&gt;&lt;P&gt;If(Column(1)-Column(2)&amp;lt;0 and Category='Gallons',RGB(242,220,219),&lt;/P&gt;&lt;P&gt;If(Column(1)-Column(2)&amp;gt;0 and Category='Gallons',RGB(198,224,180),White()))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if Column(3) already has the difference then you could use it:&lt;/P&gt;&lt;P&gt;If(Column(3)&amp;lt;0 and Category&amp;lt;&amp;gt;'Gallons',RGB(198,224,180),&lt;/P&gt;&lt;P&gt;If(Column(3)&amp;gt;0 and Category&amp;lt;&amp;gt;'Gallons',RGB(242,220,219),&lt;/P&gt;&lt;P&gt;If(Column(3)&amp;lt;0 and Category='Gallons',RGB(242,220,219),&lt;/P&gt;&lt;P&gt;If(Column(3)&amp;gt;0 and Category='Gallons',RGB(198,224,180),White()))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jan 2018 04:08:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-nested-IF-statement-in-conditional-formatting/m-p/1459840#M36048</guid>
      <dc:creator>luismadriz</dc:creator>
      <dc:date>2018-01-06T04:08:36Z</dc:date>
    </item>
  </channel>
</rss>

