<?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: Position costs in chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Position-costs-in-chart/m-p/1775749#M454827</link>
    <description>&lt;P&gt;you can&amp;nbsp;add a new field call it LastStage&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;StageDates:
load * inline  [
StageStart,StageEnd,ProjectName,StageName
1/1/2020,3/31/2020,Project 1,Stage 1
4/1/2020,6/30/2020,Project 1,Stage 2
7/31/2020,12/31/9999,Project 1,Stage 3
1/1/2020,2/28/2020,Project 2,Stage 1
3/1/2020,6/30/2020,Project 2,Stage 2
7/31/2020,12/31/2020,Project 2,Stage 3
1/1/2020,4/31/2020,Project 3,Stage 1
5/1/2020,6/30/2020,Project 3,Stage 2
7/31/2020,12/31/2020,Project 3,Stage 3
];
NoConcatenate
costmonth:
load * inline[
ProjectName, costid, costtype,  costmonth
Project 1, 1111, External,1/1/2020
Project 1, 1112, External,2/1/2020
Project 1, 1113, Internal,3/1/2020
Project 1, 1114, Internal,4/1/2020
Project 2, 2222, External,1/1/2020
Project 2, 2223, External,2/1/2020
Project 2, 2224, Internal,3/1/2020
Project 2, 2225, Internal,4/1/2020
Project 3, 3333, External,1/1/2020
Project 3, 3343, External,2/1/2020
Project 3, 3365, Internal,3/1/2020
Project 3, 3464, Internal,4/1/2020
];

inner join 
intervalMatch(costmonth, ProjectName)
load  StageStart, StageEnd, ProjectName
resident StageDates;

inner join (costmonth)
load StageStart,StageEnd,ProjectName,StageName Resident StageDates;

drop table StageDates;

inner join (costmonth)
load ProjectName, MaxString(StageName) as LastStage
Resident costmonth
group by ProjectName&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2021 18:45:55 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2021-01-19T18:45:55Z</dc:date>
    <item>
      <title>Position costs in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Position-costs-in-chart/m-p/1775411#M454814</link>
      <description>&lt;P&gt;So I have costs in a chart that I am trying to control the location&lt;/P&gt;&lt;P&gt;I currently have it working where when the costs are in the rage of the stage, they appear in the proper stage and year&lt;/P&gt;&lt;P&gt;Projects:&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;ProjectName, Phase&lt;/P&gt;&lt;P&gt;Project1, 1&lt;/P&gt;&lt;P&gt;Project2, 2&lt;/P&gt;&lt;P&gt;Project 3, 4&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;StageDates:&lt;/P&gt;&lt;P&gt;load inline * [&lt;/P&gt;&lt;P&gt;ProjectName, StageName, StageStart, StageEnd&lt;/P&gt;&lt;P&gt;project 1, Stage 1, 1/1/2020, 3/31/2020&lt;/P&gt;&lt;P&gt;Project 1, Stage 2, 4/1/2020, 6/30/2020&lt;/P&gt;&lt;P&gt;Project 1, Stage 3, 7/31/2020, 12/31/9999&lt;/P&gt;&lt;P&gt;project 2, Stage 1, 1/1/2020,2/31/2020&lt;/P&gt;&lt;P&gt;Project 2, Stage 2, 3/1/2020, 6/30/2020&lt;/P&gt;&lt;P&gt;Project 2,Stage 3, 7/31/2020, 12/31/2020&lt;/P&gt;&lt;P&gt;project 3, Stage 1, 1/1/2020, 4/31/2020&lt;/P&gt;&lt;P&gt;Project 3, Stage 2, 5/1/2020, 6/30/2020&lt;/P&gt;&lt;P&gt;Project 3, Stage 3, 7/31/2020, 12/31/2020&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;then I have the costs table generated through a intervalMatch function&lt;/P&gt;&lt;P&gt;load * inline[&lt;/P&gt;&lt;P&gt;ProjectName, costid, costtype,&amp;nbsp; costmonth&lt;/P&gt;&lt;P&gt;Project 1, 1111, External,&amp;nbsp; 1/1/2020&lt;/P&gt;&lt;P&gt;Project 1, 1112, External, 2/1/2020&lt;/P&gt;&lt;P&gt;Project 1, 1113, Internal, 3/1/2020&lt;/P&gt;&lt;P&gt;Project 1, 1114, Internal, 4/1/2020&lt;/P&gt;&lt;P&gt;Project 2, 2222, External,&amp;nbsp; 1/1/2020&lt;/P&gt;&lt;P&gt;Project 2, 2223, External, 2/1/2020&lt;/P&gt;&lt;P&gt;Project 2, 2224, Internal, 3/1/2020&lt;/P&gt;&lt;P&gt;Project 2, 2225, Internal, 4/1/2020&lt;/P&gt;&lt;P&gt;Project 3, 3333, External,&amp;nbsp; 1/1/2020&lt;/P&gt;&lt;P&gt;Project 3, 3343, External, 2/1/2020&lt;/P&gt;&lt;P&gt;Project 3, 3365, Internal, 3/1/2020&lt;/P&gt;&lt;P&gt;Project 3, 3464, Internal, 4/1/2020&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;intervalMatch(costmonth)&lt;/P&gt;&lt;P&gt;load&amp;nbsp; StageStart, StageEnd&lt;/P&gt;&lt;P&gt;resident&amp;nbsp;StageDates;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;load * resident&amp;nbsp;StageDates;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now what will happen above is the dates will be spread through Stage1, 2 and 3&lt;/P&gt;&lt;P&gt;however what I want to do is be able to look at the project and say if the Project is Phase 4, then all costs go to Stage 3 regardless of dates.&lt;/P&gt;&lt;P&gt;I still need to display all the stage dates in a different table as well.&lt;/P&gt;&lt;P&gt;any thoughts on how to override this for the interval match overall?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 23:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Position-costs-in-chart/m-p/1775411#M454814</guid>
      <dc:creator>RogerG</dc:creator>
      <dc:date>2021-01-18T23:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Position costs in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Position-costs-in-chart/m-p/1775749#M454827</link>
      <description>&lt;P&gt;you can&amp;nbsp;add a new field call it LastStage&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;StageDates:
load * inline  [
StageStart,StageEnd,ProjectName,StageName
1/1/2020,3/31/2020,Project 1,Stage 1
4/1/2020,6/30/2020,Project 1,Stage 2
7/31/2020,12/31/9999,Project 1,Stage 3
1/1/2020,2/28/2020,Project 2,Stage 1
3/1/2020,6/30/2020,Project 2,Stage 2
7/31/2020,12/31/2020,Project 2,Stage 3
1/1/2020,4/31/2020,Project 3,Stage 1
5/1/2020,6/30/2020,Project 3,Stage 2
7/31/2020,12/31/2020,Project 3,Stage 3
];
NoConcatenate
costmonth:
load * inline[
ProjectName, costid, costtype,  costmonth
Project 1, 1111, External,1/1/2020
Project 1, 1112, External,2/1/2020
Project 1, 1113, Internal,3/1/2020
Project 1, 1114, Internal,4/1/2020
Project 2, 2222, External,1/1/2020
Project 2, 2223, External,2/1/2020
Project 2, 2224, Internal,3/1/2020
Project 2, 2225, Internal,4/1/2020
Project 3, 3333, External,1/1/2020
Project 3, 3343, External,2/1/2020
Project 3, 3365, Internal,3/1/2020
Project 3, 3464, Internal,4/1/2020
];

inner join 
intervalMatch(costmonth, ProjectName)
load  StageStart, StageEnd, ProjectName
resident StageDates;

inner join (costmonth)
load StageStart,StageEnd,ProjectName,StageName Resident StageDates;

drop table StageDates;

inner join (costmonth)
load ProjectName, MaxString(StageName) as LastStage
Resident costmonth
group by ProjectName&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 18:45:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Position-costs-in-chart/m-p/1775749#M454827</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-01-19T18:45:55Z</dc:date>
    </item>
  </channel>
</rss>

