<?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 Straight Chart Colour Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Straight-Chart-Colour-Expression/m-p/452971#M169037</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 have a straight chart which show data per criteria.&amp;nbsp; However I have a field called Last Action which is a calculated field.&lt;/P&gt;&lt;P&gt;On the Straight chart is there a way that I can write an expression so if the Last Action is more than 20 Hours, then on the table it shows a red, while everything under 20 hours is white?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jon Ditchfield&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. The calculated field for Last Action is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(call_status_full = 'Pending' or call_status_full = 'Unaccepted' or call_status_full = 'Off Hold' or call_status_full = 'Unassigned',&amp;nbsp; &lt;/P&gt;&lt;P&gt;Interval(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RangeMin(frac(vJD_TIME), MakeTime(18)) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - RangeMax(frac(lastactdate), MakeTime(8)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + (NetWorkDays(lastactdate, vJD_TIME-1) * MakeTime(10)) // Only 10 hours per whole day&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2012 15:13:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-19T15:13:58Z</dc:date>
    <item>
      <title>Straight Chart Colour Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Chart-Colour-Expression/m-p/452971#M169037</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 have a straight chart which show data per criteria.&amp;nbsp; However I have a field called Last Action which is a calculated field.&lt;/P&gt;&lt;P&gt;On the Straight chart is there a way that I can write an expression so if the Last Action is more than 20 Hours, then on the table it shows a red, while everything under 20 hours is white?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jon Ditchfield&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. The calculated field for Last Action is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(call_status_full = 'Pending' or call_status_full = 'Unaccepted' or call_status_full = 'Off Hold' or call_status_full = 'Unassigned',&amp;nbsp; &lt;/P&gt;&lt;P&gt;Interval(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RangeMin(frac(vJD_TIME), MakeTime(18)) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - RangeMax(frac(lastactdate), MakeTime(8)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + (NetWorkDays(lastactdate, vJD_TIME-1) * MakeTime(10)) // Only 10 hours per whole day&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 15:13:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Chart-Colour-Expression/m-p/452971#M169037</guid>
      <dc:creator />
      <dc:date>2012-12-19T15:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Chart Colour Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Chart-Colour-Expression/m-p/452972#M169038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You certainly can.&amp;nbsp; Use attribute expressions for text color, and use your expression for last action, a sort of this:&lt;/P&gt;&lt;P&gt;if(&amp;lt;your expression&amp;gt; &amp;gt;20, red())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 15:19:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Chart-Colour-Expression/m-p/452972#M169038</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-19T15:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Chart Colour Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Chart-Colour-Expression/m-p/452973#M169039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand you want highlight the row in the striaght table when the last action is more than 20 hours.&lt;/P&gt;&lt;P&gt;I would prefer to define the last action and its duration in the edit script as addtional columns.&lt;/P&gt;&lt;P&gt;And you can define the background color of dimension and expression. if you could attach the sample file it would be easier to analyze.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 15:25:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Chart-Colour-Expression/m-p/452973#M169039</guid>
      <dc:creator>brindlogcool</dc:creator>
      <dc:date>2012-12-19T15:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Chart Colour Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Chart-Colour-Expression/m-p/452974#M169040</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;Please find attached a copy of the Qlikview File.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 15:33:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Chart-Colour-Expression/m-p/452974#M169040</guid>
      <dc:creator />
      <dc:date>2012-12-19T15:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Chart Colour Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Chart-Colour-Expression/m-p/452975#M169041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this as expression for background color:&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;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: #800000; font-size: 8pt;"&gt;call_status_full&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'Pending' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;call_status_full&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'Unaccepted' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;call_status_full&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'Off Hold' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;call_status_full&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'Unassigned',&amp;nbsp; &lt;BR /&gt;(&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RangeMin&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;frac&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;vJD_TIME&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MakeTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(18)) &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RangeMax&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;frac&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;lastactdate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MakeTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(8)))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NetWorkDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;lastactdate&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;vJD_TIME&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;-1) * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MakeTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(10)) &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Only 10 hours per whole day&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;STRONG&gt;*24&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;20, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rgb&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(255,200,200)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 15:44:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Chart-Colour-Expression/m-p/452975#M169041</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-19T15:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Chart Colour Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Chart-Colour-Expression/m-p/452976#M169042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have entered the above expression in the table, under style, background, color, and then pasted into calculated colour, however it all still shows the writing as black.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 15:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Chart-Colour-Expression/m-p/452976#M169042</guid>
      <dc:creator />
      <dc:date>2012-12-19T15:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Chart Colour Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Chart-Colour-Expression/m-p/452977#M169043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have added micheal expression in your file and attached it.You can create a variable for the expression and replace the expression with varaible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 15:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Chart-Colour-Expression/m-p/452977#M169043</guid>
      <dc:creator>brindlogcool</dc:creator>
      <dc:date>2012-12-19T15:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Chart Colour Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Chart-Colour-Expression/m-p/452978#M169044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is in attribute expressions, not style background - see example form brindlogcool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 16:00:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Chart-Colour-Expression/m-p/452978#M169044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-19T16:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Chart Colour Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Chart-Colour-Expression/m-p/452979#M169045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Both, this worked as I wanted it too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 15:44:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Chart-Colour-Expression/m-p/452979#M169045</guid>
      <dc:creator />
      <dc:date>2012-12-20T15:44:56Z</dc:date>
    </item>
  </channel>
</rss>

