<?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: IF statement as a Variable for Background Colour in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-statement-as-a-Variable-for-Background-Colour/m-p/1327500#M614961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;admittedly in the overviewer the first and last '' exist so it may be that..............&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jun 2017 11:35:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-06-07T11:35:50Z</dc:date>
    <item>
      <title>IF statement as a Variable for Background Colour</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-as-a-Variable-for-Background-Colour/m-p/1327496#M614957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I have the following If which is setting the background colour in my straight table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;IF(FORECAST_STATUS='CONFIRMED FDD',rgb(200,240,200),&lt;BR /&gt; IF(FORECAST_STATUS='UNCONFIRMED FDD',rgb(255,153,0),&lt;BR /&gt; IF(FORECAST_STATUS='NO FDD',rgb(255,80,80),'')))'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;On its own it works fine but so that I don’t have to amend it 2 dozen times I assumed I could set it as a Variable and apply the variable to the background colour instead.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;The set variable is scripted as follows in the first tab:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;SET&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;vFDDSTATUS&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; = '=IF(FORECAST_STATUS='CONFIRMED FDD',rgb(200,240,200),&lt;BR /&gt; IF(FORECAST_STATUS='UNCONFIRMED FDD',rgb(255,153,0),&lt;BR /&gt; IF(FORECAST_STATUS='NO FDD',rgb(255,80,80),'')))'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;My main concern is that FORECAST_STATUS doesn’t exist this early………………or is that not a concern when setting variable?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Thank You&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2017 11:21:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-as-a-Variable-for-Background-Colour/m-p/1327496#M614957</guid>
      <dc:creator />
      <dc:date>2017-06-07T11:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement as a Variable for Background Colour</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-as-a-Variable-for-Background-Colour/m-p/1327497#M614958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should not be a problem if FORECAST_STATUS doesn't exists. What might be a concern is that fact that you have single quote within the single quote here. Not sure how it will behave, but give it a shot and see what happens?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2017 11:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-as-a-Variable-for-Background-Colour/m-p/1327497#M614958</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-07T11:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement as a Variable for Background Colour</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-as-a-Variable-for-Background-Colour/m-p/1327498#M614959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afternoon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;oh it definitely doesn't work but I am not getting a failure and the variable is being created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like I say, using the statement on it own in the Background Colour setting works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2017 11:30:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-as-a-Variable-for-Background-Colour/m-p/1327498#M614959</guid>
      <dc:creator />
      <dc:date>2017-06-07T11:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement as a Variable for Background Colour</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-as-a-Variable-for-Background-Colour/m-p/1327499#M614960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you see the variable in the variable overview? How does it look within the variable overview?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2017 11:31:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-as-a-Variable-for-Background-Colour/m-p/1327499#M614960</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-07T11:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement as a Variable for Background Colour</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-as-a-Variable-for-Background-Colour/m-p/1327500#M614961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;admittedly in the overviewer the first and last '' exist so it may be that..............&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2017 11:35:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-as-a-Variable-for-Background-Colour/m-p/1327500#M614961</guid>
      <dc:creator />
      <dc:date>2017-06-07T11:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement as a Variable for Background Colour</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-as-a-Variable-for-Background-Colour/m-p/1327501#M614962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then try it like this and see what happens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET vFDDSTATUS = &lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;IF(FORECAST_STATUS='CONFIRMED FDD',rgb(200,240,200),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;IF(FORECAST_STATUS='UNCONFIRMED FDD',rgb(255,153,0),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;IF(FORECAST_STATUS='NO FDD',rgb(255,80,80),'')));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET vFDDSTATUS = IF(FORECAST_STATUS='CONFIRMED FDD',rgb(200,240,200),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;IF(FORECAST_STATUS='UNCONFIRMED FDD',rgb(255,153,0),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;IF(FORECAST_STATUS='NO FDD',rgb(255,80,80),'')));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice that the second expression doesn't have an equal sign&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2017 11:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-as-a-Variable-for-Background-Colour/m-p/1327501#M614962</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-07T11:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement as a Variable for Background Colour</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-as-a-Variable-for-Background-Colour/m-p/1327502#M614963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;worked it out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vFDDSTATUS&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = IF(FORECAST_STATUS='CONFIRMED FDD',rgb(200,240,200),&lt;BR /&gt; IF(FORECAST_STATUS='UNCONFIRMED FDD',rgb(255,153,0),&lt;BR /&gt; IF(FORECAST_STATUS='NO FDD',rgb(255,80,80),''))); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;then use variable as such:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vFDDSTATUS) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2017 12:02:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-as-a-Variable-for-Background-Colour/m-p/1327502#M614963</guid>
      <dc:creator />
      <dc:date>2017-06-07T12:02:23Z</dc:date>
    </item>
  </channel>
</rss>

