<?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 Tracking Changes - Concatenate / Join in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Tracking-Changes-Concatenate-Join/m-p/1263618#M25793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a table that contains the following Key Fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Req Date, Order Number, Line Number, Qty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am adding a column called "Status" by adding the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(today()-[Req Date]&amp;lt;=7,'1to7',if(today()-[Req Date]&amp;lt;=14,'8to14',if(today()-[Req Date]&amp;lt;=21,'15to21',if(today()-[Req Date]&amp;lt;=28,'22to28','Over28'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and adding this field so I can refer back to what a position was at a selected date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;today() as [Date Added]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I end up with a table containing the following fields Req Date, Order Number, Line Number, Qty, Status,Date Added&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to track the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;New items:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Items that were not in arrears but are now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Status Change:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Items that were on the report previously but now moved Status, e.g. they were 1to7 days yesterday, but today they are 8to15days old.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Cleared:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Items that were in arrears before but are no longer (they will disappear from the main import if they are no longer in arrears)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I was thinking is create a master table (Called "Master") which would be my starting point. I would then do the following when the import runs each morning:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;1) &lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;Find what is new and store in the "New Arrears" table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So I would check for items that exist in the import but not in the "Master" table and store these in "New Arrears" (along with today() as [Date Added])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;2) Find Items where the status has changed and store in the "Changes"&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt; table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I would check for items that exist in the "Master" table AND in the Import, but where "Status" is different - I would then store these in the "Changes" table (along with today() as [Date Added])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;3) Find Items that have been cleared and store in the "Cleared" table&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I would check for items that exist in the "Master" table but not in the Import - I would then store these in the "Cleared" table (along with today() as [Date Added])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;4) Updated the "Master" table ready for the next run&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I would then add all items that exist in the import but not in the "Master" table into the "Master" table ready for the next time the report is run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will then be able to select a date and see what was in arrears, how old it was, what was getting older and what had been cleared in a graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've play around a lot with concatenate but I'm struggling as it's the first time I've really used it in this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can someone point me in the right direction or advise a better way to do this? An example would be great if someone could take the time to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jan 2017 15:03:19 GMT</pubDate>
    <dc:creator>chris1987</dc:creator>
    <dc:date>2017-01-17T15:03:19Z</dc:date>
    <item>
      <title>Tracking Changes - Concatenate / Join</title>
      <link>https://community.qlik.com/t5/App-Development/Tracking-Changes-Concatenate-Join/m-p/1263618#M25793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a table that contains the following Key Fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Req Date, Order Number, Line Number, Qty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am adding a column called "Status" by adding the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(today()-[Req Date]&amp;lt;=7,'1to7',if(today()-[Req Date]&amp;lt;=14,'8to14',if(today()-[Req Date]&amp;lt;=21,'15to21',if(today()-[Req Date]&amp;lt;=28,'22to28','Over28'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and adding this field so I can refer back to what a position was at a selected date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;today() as [Date Added]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I end up with a table containing the following fields Req Date, Order Number, Line Number, Qty, Status,Date Added&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to track the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;New items:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Items that were not in arrears but are now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Status Change:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Items that were on the report previously but now moved Status, e.g. they were 1to7 days yesterday, but today they are 8to15days old.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Cleared:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Items that were in arrears before but are no longer (they will disappear from the main import if they are no longer in arrears)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I was thinking is create a master table (Called "Master") which would be my starting point. I would then do the following when the import runs each morning:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;1) &lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;Find what is new and store in the "New Arrears" table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So I would check for items that exist in the import but not in the "Master" table and store these in "New Arrears" (along with today() as [Date Added])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;2) Find Items where the status has changed and store in the "Changes"&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt; table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I would check for items that exist in the "Master" table AND in the Import, but where "Status" is different - I would then store these in the "Changes" table (along with today() as [Date Added])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;3) Find Items that have been cleared and store in the "Cleared" table&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I would check for items that exist in the "Master" table but not in the Import - I would then store these in the "Cleared" table (along with today() as [Date Added])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;4) Updated the "Master" table ready for the next run&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I would then add all items that exist in the import but not in the "Master" table into the "Master" table ready for the next time the report is run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will then be able to select a date and see what was in arrears, how old it was, what was getting older and what had been cleared in a graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've play around a lot with concatenate but I'm struggling as it's the first time I've really used it in this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can someone point me in the right direction or advise a better way to do this? An example would be great if someone could take the time to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 15:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Tracking-Changes-Concatenate-Join/m-p/1263618#M25793</guid>
      <dc:creator>chris1987</dc:creator>
      <dc:date>2017-01-17T15:03:19Z</dc:date>
    </item>
  </channel>
</rss>

