<?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 Adding a reference line in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-a-reference-line/m-p/253015#M95915</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;As i understand the things that you want to show on chart for this i suggest you to use two reference lines &lt;/P&gt;&lt;P&gt;Min( BUDGET_DAYS ) and&amp;nbsp; Max( BUDGET_DAYS ) and use two reference lines for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Sep 2011 10:38:51 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2011-09-12T10:38:51Z</dc:date>
    <item>
      <title>Adding a reference line</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-reference-line/m-p/253014#M95914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a graph showing actuals against projects accumulated over time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on the x-axis I have set the static min to be the start_date of the project&lt;/P&gt;&lt;P&gt;the static max to be the end_date of the project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to add a reference line&amp;nbsp; which starts at a value of 'BUDGET_DAYS'&amp;nbsp; (the project's budget) at the start of the x-axis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and reduces uniformly overtime to a value of 0 at the end of the x-axis (the static max)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking that the value could be worked out on a daily basis, by working out the BUDGET per day (BUDGET/(END_DATE-START_DATE))&lt;/P&gt;&lt;P&gt;and then reducing it by this amount for each day..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its just that I have NO idea how to express that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fields I have are:&lt;/P&gt;&lt;P&gt;PROJECT_CODE&amp;nbsp; &lt;/P&gt;&lt;P&gt;START_DATE&lt;/P&gt;&lt;P&gt;END_DATE,&lt;/P&gt;&lt;P&gt;BUDGET_DAYS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest how I might achieve that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 10:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-reference-line/m-p/253014#M95914</guid>
      <dc:creator />
      <dc:date>2011-09-12T10:05:08Z</dc:date>
    </item>
    <item>
      <title>Adding a reference line</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-reference-line/m-p/253015#M95915</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;As i understand the things that you want to show on chart for this i suggest you to use two reference lines &lt;/P&gt;&lt;P&gt;Min( BUDGET_DAYS ) and&amp;nbsp; Max( BUDGET_DAYS ) and use two reference lines for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 10:38:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-reference-line/m-p/253015#M95915</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-09-12T10:38:51Z</dc:date>
    </item>
    <item>
      <title>Adding a reference line</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-reference-line/m-p/253016#M95916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying.&lt;/P&gt;&lt;P&gt;Unfortunately I need only 1 line.&lt;/P&gt;&lt;P&gt;I have attached a qvw to my original post.&lt;/P&gt;&lt;P&gt;You can see the graph I am working on its a makeshift burn-down chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reference line I need would go from 22.0004444&amp;nbsp; (as seen in one of the text boxes) at 27/06/2011 on the x-axis&lt;/P&gt;&lt;P&gt;DOWN to 0 on the x-axis at a date of 26/10/2011&amp;nbsp; (corresponding with the finish date of the selected project -D03271-A)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need a straight line going diagonally down from 22.0004444 to 0 across those two dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 11:01:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-reference-line/m-p/253016#M95916</guid>
      <dc:creator />
      <dc:date>2011-09-12T11:01:33Z</dc:date>
    </item>
    <item>
      <title>Adding a reference line</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-reference-line/m-p/253017#M95917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as far as I see, your TRANS_DATEs are not including the start and (projected) end dates of the projects. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If they would, I think a simple&lt;/P&gt;&lt;P&gt;=if(TRANSDATE=MIN(START_DATE),sum(total BUDGET_DAYS),&lt;/P&gt;&lt;P&gt;if(TRANSDATE=max(END_DATE),0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would be enough, adding two data points at the TRANS_DATE extrema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think it is possible to add those dates to your model?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 13:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-reference-line/m-p/253017#M95917</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-12T13:12:54Z</dc:date>
    </item>
    <item>
      <title>Adding a reference line</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-reference-line/m-p/253018#M95918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure how I could do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The transdates are from the transactional tables where resource time-entries are stored - a project start date might sometimes be before any time is booked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping that using a continuous axis would have provided a reference point for a line &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;my axis starts and ends with the project start/finish date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 14:00:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-reference-line/m-p/253018#M95918</guid>
      <dc:creator />
      <dc:date>2011-09-12T14:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a reference line</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-reference-line/m-p/253019#M95919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are right, there is an easier solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added an expression like:&lt;/P&gt;&lt;P&gt;=if(TRANSDATE = min(total TRANSDATE), &lt;/P&gt;&lt;P&gt;sum(total BUDGET_DAYS)+ sum(total BUDGET_DAYS)/(min(total START_DATE)-max(total FINISH_DATE))*(min(total TRANSDATE)-min(total START_DATE)),&lt;/P&gt;&lt;P&gt;if(TRANSDATE=max(total TRANSDATE),&lt;/P&gt;&lt;P&gt;sum(total BUDGET_DAYS)+ sum(total BUDGET_DAYS)/(min(total START_DATE)-max(total FINISH_DATE))*(max(total TRANSDATE)-min(total START_DATE))&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to calculate two sampling points for your reference line at the min and max TRANSDATE. Then just add a trendline to get a line from start till end of your x-axis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you wanted?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 14:50:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-reference-line/m-p/253019#M95919</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-12T14:50:16Z</dc:date>
    </item>
    <item>
      <title>Adding a reference line</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-reference-line/m-p/253020#M95920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thats exactly what I wanted.&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;... i really must try learning some more about how QV works.&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 08:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-reference-line/m-p/253020#M95920</guid>
      <dc:creator />
      <dc:date>2011-09-13T08:04:50Z</dc:date>
    </item>
  </channel>
</rss>

