<?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: Problem with formula for setting color in Textbox in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-formula-for-setting-color-in-Textbox/m-p/577648#M1234417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so it does, because the search string is present in both string (4NM and 24NM both contain 4NM). Is there no other field&amp;nbsp; to use to determine?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jan 2014 13:30:45 GMT</pubDate>
    <dc:creator>giakoum</dc:creator>
    <dc:date>2014-01-28T13:30:45Z</dc:date>
    <item>
      <title>Problem with formula for setting color in Textbox</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-formula-for-setting-color-in-Textbox/m-p/577645#M1234408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with a formula. The formula looks like:&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;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;index&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Datum_verg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Severity&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,','),'4NM')&amp;gt;0,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Yellow&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;index&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Datum_verg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Severity&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,','),'4I')&amp;gt;0,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;LightBlue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;index&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Datum_verg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Severity&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,','),'4A')&amp;gt;0,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;LightRed&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DAY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MakeDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),4))&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DAY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;LightGreen&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;White&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;For examplI if I have data in my table for the 24.01.2014 so Datum_verg will create with 24. The textbox of the 24 will mark with the color for Severity. But the Textbox for the 4 will also mark like the 24. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;See for more information the attachment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;What can I do can anyone help me. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;grettings sven&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-formula-for-setting-color-in-Textbox/m-p/577645#M1234408</guid>
      <dc:creator />
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with formula for setting color in Textbox</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-formula-for-setting-color-in-Textbox/m-p/577646#M1234413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using subfield instead of index&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 13:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-formula-for-setting-color-in-Textbox/m-p/577646#M1234413</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-01-28T13:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with formula for setting color in Textbox</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-formula-for-setting-color-in-Textbox/m-p/577647#M1234415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please explaine or insert an example thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 13:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-formula-for-setting-color-in-Textbox/m-p/577647#M1234415</guid>
      <dc:creator />
      <dc:date>2014-01-28T13:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with formula for setting color in Textbox</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-formula-for-setting-color-in-Textbox/m-p/577648#M1234417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so it does, because the search string is present in both string (4NM and 24NM both contain 4NM). Is there no other field&amp;nbsp; to use to determine?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 13:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-formula-for-setting-color-in-Textbox/m-p/577648#M1234417</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-01-28T13:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with formula for setting color in Textbox</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-formula-for-setting-color-in-Textbox/m-p/577649#M1234418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So your problem is with the formula marking both 4NM and 24NM with the same value? Why don't you create dummy characters in the beginning, middle and end like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(index(concat('|' &amp;amp;Datum_verg&amp;amp; '|' &amp;amp; Severity &amp;amp; '|',','),'|4|NM|')&amp;gt;0,Yellow(),&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(index(concat('|' &amp;amp;Datum_verg&amp;amp; '|' &amp;amp; Severity &amp;amp; '|',','),'|4|I|')&amp;gt;0,LightBlue(),&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(index(concat('|' &amp;amp;Datum_verg&amp;amp; '|' &amp;amp; Severity &amp;amp; '|',','),'|4|A|')&amp;gt;0,LightRed(),&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(DAY(MakeDate(Year(Today()),Month(Today()),24))&amp;lt;DAY(Today()),LightGreen(),White()))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or maybe even better, use match function such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(max(match(Datum_verg&amp;amp;Severity,'24NM')),Yellow(),&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(max(match(Datum_verg&amp;amp;Severity,'24I')),LightBlue(),&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(max(match(Datum_verg&amp;amp;Severity,'24A')),LightRed(),&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(DAY(MakeDate(Year(Today()),Month(Today()),24))&amp;lt;DAY(Today()),LightGreen(),White()))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this doesn't help, can you explain a little more of what you are trying to achieve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 13:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-formula-for-setting-color-in-Textbox/m-p/577649#M1234418</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-01-28T13:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with formula for setting color in Textbox</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-formula-for-setting-color-in-Textbox/m-p/577650#M1234421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jerem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the second function and it works. Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use this for a safteycross for our plant, so we have a table for all accidents in it. The colors ar standing for different severitys. So we can represent the achtually month on our teamboards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings Sven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 14:33:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-formula-for-setting-color-in-Textbox/m-p/577650#M1234421</guid>
      <dc:creator />
      <dc:date>2014-01-28T14:33:49Z</dc:date>
    </item>
  </channel>
</rss>

