<?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: Change text colour based on variable within an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-text-colour-based-on-variable-within-an-expression/m-p/77050#M782856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you should verify the format of all dates &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Mar 2018 16:55:25 GMT</pubDate>
    <dc:creator>olivierrobin</dc:creator>
    <dc:date>2018-03-23T16:55:25Z</dc:date>
    <item>
      <title>Change text colour based on variable within an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Change-text-colour-based-on-variable-within-an-expression/m-p/77047#M782853</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;I am trying to achieve an outcome whereby the text colour within a text box changes based on the data value of the current period compared to the previous period. The below continues to result in red text irrespective.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested the maxdate and maxdatepreviousperiod variables and they are working as expected&lt;/P&gt;&lt;P&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: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[Category 2]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={'Excess'},&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[Pay Period]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;"$(= '$(vmaxdate)')"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;)&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[Category 2]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={'Excess'},&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[Pay Period]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;"$(= '$(vmaxdatepreviousperiod)')"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;rgb&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(255,0,0), &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;rgb&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(0,128,0))&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, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-text-colour-based-on-variable-within-an-expression/m-p/77047#M782853</guid>
      <dc:creator>hogo1701</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Change text colour based on variable within an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Change-text-colour-based-on-variable-within-an-expression/m-p/77048#M782854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked if these work to give the right number you expect in a text box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Category 2]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;={'Excess'},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Pay Period]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;"$(= '$(vmaxdate)')"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Category 2]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;={'Excess'},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Pay Period]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;"$(= '$(vmaxdatepreviousperiod)')"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 16:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-text-colour-based-on-variable-within-an-expression/m-p/77048#M782854</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-23T16:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Change text colour based on variable within an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Change-text-colour-based-on-variable-within-an-expression/m-p/77049#M782855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the result of your if condition?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 16:28:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-text-colour-based-on-variable-within-an-expression/m-p/77049#M782855</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-03-23T16:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Change text colour based on variable within an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Change-text-colour-based-on-variable-within-an-expression/m-p/77050#M782856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you should verify the format of all dates &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 16:55:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-text-colour-based-on-variable-within-an-expression/m-p/77050#M782856</guid>
      <dc:creator>olivierrobin</dc:creator>
      <dc:date>2018-03-23T16:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Change text colour based on variable within an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Change-text-colour-based-on-variable-within-an-expression/m-p/77051#M782857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny. The first returns the correct number but the second returns 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Mar 2018 21:27:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-text-colour-based-on-variable-within-an-expression/m-p/77051#M782857</guid>
      <dc:creator>hogo1701</dc:creator>
      <dc:date>2018-03-25T21:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change text colour based on variable within an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Change-text-colour-based-on-variable-within-an-expression/m-p/77052#M782858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you define vmaxdate and vmaxdatepreviousperiod? Also, are you making selection in any date and time related field other than Pay Period?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Mar 2018 23:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-text-colour-based-on-variable-within-an-expression/m-p/77052#M782858</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-25T23:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Change text colour based on variable within an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Change-text-colour-based-on-variable-within-an-expression/m-p/77053#M782859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vmaxdate&amp;nbsp; &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Pay Period]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'D/MM/YYYY') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;vmaxpreviousperiod &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&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;vmaxdate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;-14),'D/MM/YYY') &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;There are no other selections referring to date / time etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 00:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-text-colour-based-on-variable-within-an-expression/m-p/77053#M782859</guid>
      <dc:creator>hogo1701</dc:creator>
      <dc:date>2018-03-26T00:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Change text colour based on variable within an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Change-text-colour-based-on-variable-within-an-expression/m-p/77054#M782860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about if you do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vmaxpreviousperiod&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Date(Max([Pay Period])-14,'D/MM/YYY')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 00:22:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-text-colour-based-on-variable-within-an-expression/m-p/77054#M782860</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-26T00:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change text colour based on variable within an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Change-text-colour-based-on-variable-within-an-expression/m-p/77055#M782861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately still the same outcome. The variable works when returning the date but when I include it in an expression to provide the number it returns 0. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 02:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-text-colour-based-on-variable-within-an-expression/m-p/77055#M782861</guid>
      <dc:creator>hogo1701</dc:creator>
      <dc:date>2018-03-26T02:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Change text colour based on variable within an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Change-text-colour-based-on-variable-within-an-expression/m-p/77056#M782862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know if this is a typo, I see a Y missing from the format part... try this&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Date(Max([Pay Period])-14,'D/MM/YYY&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;Y&lt;/SPAN&gt;')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 09:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-text-colour-based-on-variable-within-an-expression/m-p/77056#M782862</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-26T09:01:50Z</dc:date>
    </item>
  </channel>
</rss>

