<?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 Line color based on weeks. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Line-color-based-on-weeks/m-p/1246449#M517176</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this chart below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="original chart.JPG" class="jive-image image-1" src="/legacyfs/online/147869_original chart.JPG" style="height: 202px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the previous week to be Burgundy, the week before Green60 and so on. I put below in the expression under Background Color for the line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Week(Today())=[Week],vCOLOUR_BURGUNDY,&lt;/P&gt;&lt;P&gt;If(Week(Today()-7)&amp;gt;[Week], vCOLOUR_GREEN60, &lt;/P&gt;&lt;P&gt;If(Week(Today()-14)&amp;gt;[Week], vCOLOUR_GREEN30, &lt;/P&gt;&lt;P&gt;If(Week(Today()-21)&amp;gt;[Week], vCOLOUR_AQUA60, &lt;/P&gt;&lt;P&gt;If(Week(Today()-28)&amp;gt;[Week], vCOLOUR_AQUA30, &lt;/P&gt;&lt;P&gt;If(Week(Today()-35)&amp;gt;[Week], vCOLOUR_BLUE60, &lt;/P&gt;&lt;P&gt;If(Week(Today()-42)&amp;gt;[Week], vCOLOUR_BLUE30, &lt;/P&gt;&lt;P&gt;vCOLOUR_BLACK)))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="after update chart.JPG" class="jive-image image-2" src="/legacyfs/online/147870_after update chart.JPG" style="height: 225px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What did I do wrong? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Dec 2016 21:02:08 GMT</pubDate>
    <dc:creator>mp802377</dc:creator>
    <dc:date>2016-12-28T21:02:08Z</dc:date>
    <item>
      <title>Line color based on weeks.</title>
      <link>https://community.qlik.com/t5/QlikView/Line-color-based-on-weeks/m-p/1246449#M517176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this chart below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="original chart.JPG" class="jive-image image-1" src="/legacyfs/online/147869_original chart.JPG" style="height: 202px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the previous week to be Burgundy, the week before Green60 and so on. I put below in the expression under Background Color for the line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Week(Today())=[Week],vCOLOUR_BURGUNDY,&lt;/P&gt;&lt;P&gt;If(Week(Today()-7)&amp;gt;[Week], vCOLOUR_GREEN60, &lt;/P&gt;&lt;P&gt;If(Week(Today()-14)&amp;gt;[Week], vCOLOUR_GREEN30, &lt;/P&gt;&lt;P&gt;If(Week(Today()-21)&amp;gt;[Week], vCOLOUR_AQUA60, &lt;/P&gt;&lt;P&gt;If(Week(Today()-28)&amp;gt;[Week], vCOLOUR_AQUA30, &lt;/P&gt;&lt;P&gt;If(Week(Today()-35)&amp;gt;[Week], vCOLOUR_BLUE60, &lt;/P&gt;&lt;P&gt;If(Week(Today()-42)&amp;gt;[Week], vCOLOUR_BLUE30, &lt;/P&gt;&lt;P&gt;vCOLOUR_BLACK)))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="after update chart.JPG" class="jive-image image-2" src="/legacyfs/online/147870_after update chart.JPG" style="height: 225px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What did I do wrong? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 21:02:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-color-based-on-weeks/m-p/1246449#M517176</guid>
      <dc:creator>mp802377</dc:creator>
      <dc:date>2016-12-28T21:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Line color based on weeks.</title>
      <link>https://community.qlik.com/t5/QlikView/Line-color-based-on-weeks/m-p/1246450#M517177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Martha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should change the order of your IF() conditions. Currently, all prior weeks satisfy the IF condition for the first green color, and none of the following conditions are being evaluated. Something like this should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Week(Today())=[Week],vCOLOUR_BURGUNDY,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Week(Today()-42)&amp;gt;[Week], vCOLOUR_BLUE30,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Week(Today()-35)&amp;gt;[Week], vCOLOUR_BLUE60,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Week(Today()-28)&amp;gt;[Week], vCOLOUR_AQUA30,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Week(Today()-21)&amp;gt;[Week], vCOLOUR_AQUA60,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Week(Today()-14)&amp;gt;[Week], vCOLOUR_GREEN30,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Week(Today()-7)&amp;gt;[Week], vCOLOUR_GREEN60,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vCOLOUR_BLACK)))))))&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;Having said that, you should probably enhance your conditions a bit, to account for the following:&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;1. It looks like the GREEN60 condition works for the week that's before the prior week. You might need to use "Greater or equal" comparison to get prior week.&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;2. If you make that change, then the Black color condition is not going to materialize - all the older weeks will remain Blue30. You may want to add a second condition to limit the last color before Black&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;3. Once you turn into the new year, the week comparisons will break. In order to account for year-end, it's better to compare dates, such as WeekStart().&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;cheers,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Oleg Troyansky&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Upgrade your Qlik skills at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for Qlik&lt;/A&gt; - coming soon to Munich, Germany!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 21:15:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-color-based-on-weeks/m-p/1246450#M517177</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-12-28T21:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Line color based on weeks.</title>
      <link>https://community.qlik.com/t5/QlikView/Line-color-based-on-weeks/m-p/1246451#M517178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much! How would the WeekStart() look? Instead of using Today()?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 21:18:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-color-based-on-weeks/m-p/1246451#M517178</guid>
      <dc:creator>mp802377</dc:creator>
      <dc:date>2016-12-28T21:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Line color based on weeks.</title>
      <link>https://community.qlik.com/t5/QlikView/Line-color-based-on-weeks/m-p/1246452#M517179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to use WeekStart, you should prepare your [Week] field accordingly - use a Dual value that holds the WeekStart() date as a number and the desired week format as a text. In that case, if the [Week] Field is a dual field, you could use it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #edf8ca;"&gt;If(WeekStart(Today())=[Week],vCOLOUR_BURGUNDY,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #edf8ca;"&gt;If(WeekStart(Today()-42)&amp;gt;[Week], vCOLOUR_BLUE30,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #edf8ca;"&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 21:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-color-based-on-weeks/m-p/1246452#M517179</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-12-28T21:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Line color based on weeks.</title>
      <link>https://community.qlik.com/t5/QlikView/Line-color-based-on-weeks/m-p/1246453#M517180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or perhaps some expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;pick(1+(weekstart(today())-[Week])/7, vCOLOUR_BLACK, vCOLOUR_BURGUNDY, vCOLOUR_GREEN60, etc.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively consider creating a WeeksBack field and mapping it directly to colours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;WeekColours:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,rgb(R,G,B) as WeekColour&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;INLINE [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;WeeksBack,R,G,B&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;0,0,0,0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;1,200,50,100&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;2,100,200,100&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then just use WeekColour as your background colour. That's what I'd likely do myself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 21:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-color-based-on-weeks/m-p/1246453#M517180</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-12-28T21:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Line color based on weeks.</title>
      <link>https://community.qlik.com/t5/QlikView/Line-color-based-on-weeks/m-p/1246454#M517181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this because I like how clean it is. but I am having some issues. I am fairly new to Qlivkiew. My variable for week is vWeek =&amp;nbsp; Date(WeekStart(Date, 0, -1), 'DD-MMM-YY') , this is also used for my field setting so that way I can start the week on Sunday. Week did not work in the formula, but Date did. The problem is Sunday is one color then the remainder of the week is another.&lt;/P&gt;&lt;P&gt;My dimension for Week is: =Date(WeekStart(Date, 0, -1), 'DD-MMM-YY') so that way I start it on Sunday (which is what they want).&amp;nbsp;&amp;nbsp; How do I fix? I tried putting a -1 after (pick(1+((weekstart(today(),0,&amp;nbsp; -1)-[Date])/7)) to get it to Sunday, but that didn't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the formula that I have now:&amp;nbsp; &lt;/P&gt;&lt;P&gt;pick(1+((weekstart(today())-[Date])/7), vCOLOUR_RED, vCOLOUR_GREEN60, vCOLOUR_DARKGREEN40, &lt;/P&gt;&lt;P&gt;vCOLOUR_AQUA60,vCOLOUR_BURGUNDY50, vCOLOUR_BLUE60,vCOLOUR_DARKGREEN10,&lt;/P&gt;&lt;P&gt;vCOLOUR_YELLOW,vCOLOUR_DKGREY,vCOLOUR_LTGREY60)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="using weekstart.JPG" class="jive-image image-1" src="/legacyfs/online/147934_using weekstart.JPG" style="height: 208px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 17:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-color-based-on-weeks/m-p/1246454#M517181</guid>
      <dc:creator>mp802377</dc:creator>
      <dc:date>2016-12-29T17:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Line color based on weeks.</title>
      <link>https://community.qlik.com/t5/QlikView/Line-color-based-on-weeks/m-p/1246455#M517182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, weeks starting on Sunday instead of Monday, and you already understand how to do that in the weekstart() function. Do you have Week as a field rather than just a calculated dimension? It works regardless, but I always prefer real dimensions to calculated dimensions where practical. So I'd have a Week field defined as date(weekstart(Date,0,-1),'DD-MMM-YY'). And that may be what you meant. At that point, I think we'd want this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;pick(1+(weekstart(today(),0,-1)-[Week])/7,...colors...)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you're saying that Week didn't work. Well, if Week is a real field, but defined in some other way than shown above, that could be why the expression wasn't working with Week in it. But I'm not clear how Date would work at all, since for a given week, there could be multiple Dates, and thus a reference to Date would be expected to return null in those cases. And even if there was a single Date for the week, unless it was always Sunday, you'd need to weekstart(Date,0,-1), or plug in your vWeek.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 18:06:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-color-based-on-weeks/m-p/1246455#M517182</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-12-29T18:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Line color based on weeks.</title>
      <link>https://community.qlik.com/t5/QlikView/Line-color-based-on-weeks/m-p/1246456#M517183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have week in my calendar (in the Script Editor) as:&lt;/P&gt;&lt;P&gt;Week(Temp_Date) as Week,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a variable setup vWeek as: WeekStart(Date, 0, -1). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try pick(1+(weekstart(today(),0,-1)-[vWeek])/7, it does not work and when I try Week it does not work either. That is why I tried Date just to see.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 19:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-color-based-on-weeks/m-p/1246456#M517183</guid>
      <dc:creator>mp802377</dc:creator>
      <dc:date>2016-12-29T19:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Line color based on weeks.</title>
      <link>https://community.qlik.com/t5/QlikView/Line-color-based-on-weeks/m-p/1246457#M517184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, then I would add this to the calendar:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;weekstart(Temp_Date,0,-1) as WeekStart,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;pick(1+(weekstart(today(),0,-1)-WeekStart)/7,...colors...)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 19:08:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-color-based-on-weeks/m-p/1246457#M517184</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-12-29T19:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Line color based on weeks.</title>
      <link>https://community.qlik.com/t5/QlikView/Line-color-based-on-weeks/m-p/1246458#M517185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was it. Thank you so much for the help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 19:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-color-based-on-weeks/m-p/1246458#M517185</guid>
      <dc:creator>mp802377</dc:creator>
      <dc:date>2016-12-29T19:50:26Z</dc:date>
    </item>
  </channel>
</rss>

