<?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 Apply condition for all expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Apply-condition-for-all-expressions/m-p/1193755#M385385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there anyway to apply entire row making color based on condition?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I' m using the following condition for one expression and it is working fine without any issues. Main issue is that I have to apply this condition to all expressions in the straight table object. Current Table having 164 expressions.&lt;/P&gt;&lt;P&gt;Instead of copying same script to all expressions, Is there any way to read all expressions one time by using script? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;if(ChangeCaptured = '&amp;lt;--', RGB(255,0,0), &lt;/P&gt;&lt;P&gt;&amp;nbsp; if(ChangeCaptured = '--&amp;gt;', RGB(0,0,255), RGB(255,255,255))&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, help me to fix this issue ASAP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2016 17:20:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-10-12T17:20:13Z</dc:date>
    <item>
      <title>Apply condition for all expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-condition-for-all-expressions/m-p/1193755#M385385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there anyway to apply entire row making color based on condition?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I' m using the following condition for one expression and it is working fine without any issues. Main issue is that I have to apply this condition to all expressions in the straight table object. Current Table having 164 expressions.&lt;/P&gt;&lt;P&gt;Instead of copying same script to all expressions, Is there any way to read all expressions one time by using script? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;if(ChangeCaptured = '&amp;lt;--', RGB(255,0,0), &lt;/P&gt;&lt;P&gt;&amp;nbsp; if(ChangeCaptured = '--&amp;gt;', RGB(0,0,255), RGB(255,255,255))&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, help me to fix this issue ASAP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 17:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-condition-for-all-expressions/m-p/1193755#M385385</guid>
      <dc:creator />
      <dc:date>2016-10-12T17:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Apply condition for all expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-condition-for-all-expressions/m-p/1193756#M385386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can take help of 'custom format cell'&lt;/P&gt;&lt;P&gt;press &lt;STRONG&gt;CTRL G&lt;/STRONG&gt; then right click on top of the table , select '&lt;STRONG&gt;custom format cel&lt;/STRONG&gt;l'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 17:37:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-condition-for-all-expressions/m-p/1193756#M385386</guid>
      <dc:creator>rupamjyotidas</dc:creator>
      <dc:date>2016-10-12T17:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Apply condition for all expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-condition-for-all-expressions/m-p/1193757#M385387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is only one condition, it should works for custom format cell. I do have multiple conditions like below,&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; font-size: 12px;"&gt;if(ChangeCaptured = '&amp;lt;--')&amp;nbsp; then TextColor = Red&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(ChangeCaptured = '--&amp;gt;')&amp;nbsp; then TextColor = Blue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(ChangeCaptured = '&amp;lt;--'&amp;gt;)&amp;nbsp; then TextColor = Black&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 18:31:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-condition-for-all-expressions/m-p/1193757#M385387</guid>
      <dc:creator />
      <dc:date>2016-10-12T18:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Apply condition for all expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-condition-for-all-expressions/m-p/1193758#M385388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I do in a case like this won't help with needing to repeat the expression. But it would make it much easier to modify if you want to change colors later. First thing is I would use a variable, like vColor. And you could set it to the expression you're currently using. However, if your expression depends only on the ChangeCaptured field, you might want to load the colors in script. Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;[Colors]:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; ChangeCaptured&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,rgb(R,G,B) as Color&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;INLINE [&lt;/SPAN&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ChangeCaptured,R,G,B&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;lt;--,255,0,0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;--&amp;gt;,0,0,255&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;lt;--&amp;gt;,0,0,0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you could just use Color as your color expression. But it still might be safer to use a variable, even if that variable is just set to Color right now, because again, it's easier to modify later if, say, you decide you need to take more than just the ChangeCaptured into account when setting the color.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 23:26:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-condition-for-all-expressions/m-p/1193758#M385388</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-10-12T23:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Apply condition for all expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-condition-for-all-expressions/m-p/1193759#M385389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After I added color expression, still I can't see color for the attribute "&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 12px; background-color: #f2f2f2;"&gt;ChangeCaptured". Now I can see the data for this color expression as like this RGB(0,0,255) or RGB(255,0,0) or RGB(0,0,0) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 14:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-condition-for-all-expressions/m-p/1193759#M385389</guid>
      <dc:creator />
      <dc:date>2016-10-13T14:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Apply condition for all expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-condition-for-all-expressions/m-p/1193760#M385390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure quite what you're saying, but I looked up a working example in case that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;[Types]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;[Type]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,rgb(R,G,B) as [Color]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Type,R,G,B&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Actual,220,91,78&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;SRP,113,113,185&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;BP,109,147,188&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Act,143,173,39&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Fcst,80,170,135&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture3.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140530_Capture3.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/140540_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/140541_Capture2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 17:11:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-condition-for-all-expressions/m-p/1193760#M385390</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-10-13T17:11:44Z</dc:date>
    </item>
  </channel>
</rss>

