<?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: Moving a field from one table to another based on dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Moving-a-field-from-one-table-to-another-based-on-dates/m-p/1777620#M454996</link>
    <description>&lt;P&gt;This solution worked, but I am trying to take the next step in my path,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to be able to view all the projects with&amp;nbsp; all the phases, and costs assigned to them.&amp;nbsp; but when i try to join them together, i end up with a full sum of all costs, or end up with the costs replicated across all account/phase combinations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help would be appreciated&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2021 07:01:23 GMT</pubDate>
    <dc:creator>RogerG</dc:creator>
    <dc:date>2021-01-27T07:01:23Z</dc:date>
    <item>
      <title>Moving a field from one table to another based on dates</title>
      <link>https://community.qlik.com/t5/QlikView/Moving-a-field-from-one-table-to-another-based-on-dates/m-p/1777543#M454990</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;Lets say I have a table with projects and phases along with costs&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Phases:
load * inline [
Project, phase, startdate, enddate
P1, p1, 1/1/2020, 3/30/2020
p1, p2, 4/1/2020, 5/1/2020
]
costs
load * inline [
activity, account, CostDate, Cost
a1,Act1, 1/4/2020, 1000
a1,Act2, 2/4/2020, 3000
a1,Act3, 4/15/2020, 2000
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can create the master table of&amp;nbsp; to get to this, using joins, and interval match, but it duplicates the costs across the phases. (change Cost to Phase)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RogerG_1-1611692288151.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47797iBB8CFBFD41A369C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RogerG_1-1611692288151.png" alt="RogerG_1-1611692288151.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but what I need is&amp;nbsp;(change Cost to Phase)&amp;nbsp; How do I keep the other phases null?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RogerG_0-1611692243858.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47796iE951EB9C1898F68C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RogerG_0-1611692243858.png" alt="RogerG_0-1611692243858.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 20:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Moving-a-field-from-one-table-to-another-based-on-dates/m-p/1777543#M454990</guid>
      <dc:creator>RogerG</dc:creator>
      <dc:date>2021-01-26T20:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a field from one table to another based on dates</title>
      <link>https://community.qlik.com/t5/QlikView/Moving-a-field-from-one-table-to-another-based-on-dates/m-p/1777554#M454992</link>
      <description>&lt;P&gt;try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Phases:
load * inline [
Project, phase, startdate, enddate
P1, p1, 1/1/2020, 3/30/2020
P1, p2, 4/1/2020, 5/1/2020
];
inner join (Phases)
load * inline [
activity, account, CostDate, Cost
a1,Act1, 1/4/2020, 1000
a1,Act2, 2/4/2020, 3000
a1,Act3, 4/15/2020, 2000
];

NoConcatenate
NewPhase:
load
 Project, phase, startdate, enddate,
activity, account, CostDate, if(CostDate&amp;gt;=startdate and CostDate&amp;lt;=enddate,Cost) as Cost
Resident Phases;
drop table Phases;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 26 Jan 2021 21:58:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Moving-a-field-from-one-table-to-another-based-on-dates/m-p/1777554#M454992</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-01-26T21:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a field from one table to another based on dates</title>
      <link>https://community.qlik.com/t5/QlikView/Moving-a-field-from-one-table-to-another-based-on-dates/m-p/1777579#M454993</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/95702"&gt;@RogerG&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like below&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Phases:&lt;BR /&gt;load * inline [&lt;BR /&gt;Project, phase, startdate, enddate&lt;BR /&gt;P1, p1, 1/1/2020, 3/30/2020&lt;BR /&gt;p1, p2, 4/1/2020, 5/1/2020&lt;BR /&gt;];&lt;BR /&gt;costs:&lt;BR /&gt;load * inline [&lt;BR /&gt;activity, account, CostDate, Cost&lt;BR /&gt;a1,Act1, 1/4/2020, 1000&lt;BR /&gt;a1,Act2, 2/4/2020, 3000&lt;BR /&gt;a1,Act3, 4/15/2020, 2000&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;IntervalMatch(CostDate)&lt;BR /&gt;Load startdate, enddate&lt;BR /&gt;Resident Phases;&lt;/P&gt;&lt;P&gt;Join&lt;BR /&gt;LOAD * Resident Phases;&lt;/P&gt;&lt;P&gt;Join&lt;BR /&gt;LOAD * Resident costs;&lt;BR /&gt;DROP Table Phases, costs;&lt;/P&gt;&lt;P&gt;o/p:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MayilVahanan_0-1611718250006.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47802iAEAA28B4C2831D9D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MayilVahanan_0-1611718250006.png" alt="MayilVahanan_0-1611718250006.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 03:31:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Moving-a-field-from-one-table-to-another-based-on-dates/m-p/1777579#M454993</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-01-27T03:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a field from one table to another based on dates</title>
      <link>https://community.qlik.com/t5/QlikView/Moving-a-field-from-one-table-to-another-based-on-dates/m-p/1777620#M454996</link>
      <description>&lt;P&gt;This solution worked, but I am trying to take the next step in my path,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to be able to view all the projects with&amp;nbsp; all the phases, and costs assigned to them.&amp;nbsp; but when i try to join them together, i end up with a full sum of all costs, or end up with the costs replicated across all account/phase combinations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help would be appreciated&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 07:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Moving-a-field-from-one-table-to-another-based-on-dates/m-p/1777620#M454996</guid>
      <dc:creator>RogerG</dc:creator>
      <dc:date>2021-01-27T07:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a field from one table to another based on dates</title>
      <link>https://community.qlik.com/t5/QlikView/Moving-a-field-from-one-table-to-another-based-on-dates/m-p/1777622#M454997</link>
      <description>&lt;P&gt;Mayiln, your solution seems to remove the 0 elements, I need to keep a cross table of all possible values, weather they have costs or not&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 07:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Moving-a-field-from-one-table-to-another-based-on-dates/m-p/1777622#M454997</guid>
      <dc:creator>RogerG</dc:creator>
      <dc:date>2021-01-27T07:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a field from one table to another based on dates</title>
      <link>https://community.qlik.com/t5/QlikView/Moving-a-field-from-one-table-to-another-based-on-dates/m-p/1777829#M455019</link>
      <description>&lt;P&gt;not sure what the issue is.&amp;nbsp; what i do observe is Account is not specific to a project so it is showing up for all projects where the cost dates will fall within the phases for that project - this is why you are seeing the costs duplicated (if that is the issue)&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 17:05:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Moving-a-field-from-one-table-to-another-based-on-dates/m-p/1777829#M455019</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-01-27T17:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a field from one table to another based on dates</title>
      <link>https://community.qlik.com/t5/QlikView/Moving-a-field-from-one-table-to-another-based-on-dates/m-p/1777838#M455020</link>
      <description>&lt;P&gt;That is the issue, I needed the costs to align with the account that entered it. not all of them.&amp;nbsp; the accepted solution worked for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 17:22:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Moving-a-field-from-one-table-to-another-based-on-dates/m-p/1777838#M455020</guid>
      <dc:creator>RogerG</dc:creator>
      <dc:date>2021-01-27T17:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a field from one table to another based on dates</title>
      <link>https://community.qlik.com/t5/QlikView/Moving-a-field-from-one-table-to-another-based-on-dates/m-p/1777854#M455022</link>
      <description>&lt;P&gt;ok&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 18:07:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Moving-a-field-from-one-table-to-another-based-on-dates/m-p/1777854#M455022</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-01-27T18:07:22Z</dc:date>
    </item>
  </channel>
</rss>

