<?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 Coloring another field based on If(IsNull() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Coloring-another-field-based-on-If-IsNull/m-p/786431#M534353</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlik Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what i want to do is based on a null value in field1, apply a grey color on field2, when said IF does not apply keep the color white.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible in any way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know you can apply a color to field1 but have not found a way to apply the color to another field when the if statement is met.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I came up with this so far:&lt;/P&gt;&lt;P&gt;=If(IsNull([Field1]), ([Field2], Red()), White())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Feb 2015 08:21:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-25T08:21:08Z</dc:date>
    <item>
      <title>Coloring another field based on If(IsNull()</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-another-field-based-on-If-IsNull/m-p/786431#M534353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlik Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what i want to do is based on a null value in field1, apply a grey color on field2, when said IF does not apply keep the color white.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible in any way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know you can apply a color to field1 but have not found a way to apply the color to another field when the if statement is met.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I came up with this so far:&lt;/P&gt;&lt;P&gt;=If(IsNull([Field1]), ([Field2], Red()), White())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 08:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-another-field-based-on-If-IsNull/m-p/786431#M534353</guid>
      <dc:creator />
      <dc:date>2015-02-25T08:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring another field based on If(IsNull()</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-another-field-based-on-If-IsNull/m-p/786432#M534354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be i am missing something here but why not put the if statement for background color of field 2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to change the color of Field2 column in your table, then the if statement for the color needs to be in the background color for that field...so click on the + sign to the left of Field2, double click on background color and put in the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(isnull(Field1), rgb(150,150,150), white())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 16:20:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-another-field-based-on-If-IsNull/m-p/786432#M534354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-25T16:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring another field based on If(IsNull()</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-another-field-based-on-If-IsNull/m-p/786433#M534355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF takes only&amp;nbsp; two arguments so your expression will not work anyway....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 16:28:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-another-field-based-on-If-IsNull/m-p/786433#M534355</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-02-25T16:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring another field based on If(IsNull()</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-another-field-based-on-If-IsNull/m-p/786434#M534356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/79235_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;If I read this right, this is probably what you are after.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 16:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-another-field-based-on-If-IsNull/m-p/786434#M534356</guid>
      <dc:creator />
      <dc:date>2015-02-25T16:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring another field based on If(IsNull()</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-another-field-based-on-If-IsNull/m-p/786435#M534357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hello Geert!&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Using a &lt;EM&gt;If &lt;/EM&gt;clause as you expect, we can use a flag to "mark" a possible grey color condition.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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;Insert this condition on your script:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If ( &lt;SPAN style="line-height: 1.5em;"&gt;IsNull(FIELD1),1,0&lt;/SPAN&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as GreyColor&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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;In your FIELD2, insert this condition for changing its color:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If (GreyColor = 1, QlikTechGray(), White())&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You have many ways to do it, this is just one of them. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Edécio Santos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 16:42:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-another-field-based-on-If-IsNull/m-p/786435#M534357</guid>
      <dc:creator />
      <dc:date>2015-02-25T16:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring another field based on If(IsNull()</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-another-field-based-on-If-IsNull/m-p/786436#M534358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recommend that if you do make the background Red, change the text colour to white, as black is hard to read against a red background.&lt;/P&gt;&lt;P&gt;You do this by going to the Text colour and using similar logic, make the text white if the IsNull() returns true.&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 16:47:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-another-field-based-on-If-IsNull/m-p/786436#M534358</guid>
      <dc:creator />
      <dc:date>2015-02-25T16:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring another field based on If(IsNull()</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-another-field-based-on-If-IsNull/m-p/786437#M534359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the fast replies guys i really appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Jonathan Gegg: The red color was just an example &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To elaborate further on what i want to do, because i think i was not clear, apologies for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- I have a data set which I've added a master calendar, but some dates don't have values from the original data set.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;- I have created &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;several&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;list boxes&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;: Year, Month, Week#, etc to &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;precisely&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; select a time period.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;- When i select January, as an example, the impossible or null values get grayed out in the list box. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;what i am trying to create is make the &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;list boxes&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;grey out&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; values prior to a selection based on the null values in my &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;data set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Kind Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Geert&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 07:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-another-field-based-on-If-IsNull/m-p/786437#M534359</guid>
      <dc:creator />
      <dc:date>2015-02-26T07:39:42Z</dc:date>
    </item>
  </channel>
</rss>

