<?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: Track change in one column over time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Track-change-in-one-column-over-time/m-p/434863#M162101</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;first, thanks a lot for your reply and for all the time you spend creating it! I really appreciate that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, it seems that I was not able to fully explain what my problem is. &lt;/P&gt;&lt;P&gt;The solution you proposed counts all the changes between two dates. Meaning when the status of one deal changes from nothing to open, and then from open to closed, the according deal is listed in those two sections. What I try to compute is just the difference between the given start and end date, no matter what happens in between.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevertheless, your answer helped me a lot in getting to my solution:&lt;/P&gt;&lt;P&gt;I just "copied" the data table, resulting in two identical tables, linked via the dealID. All fields except the dealID are qualified.&lt;/P&gt;&lt;P&gt;This way I am now able to select a start date of the "start-table" and an end date of the "end-table". Using a pivot table I can easily display what I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So again, thanks for your answer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jan 2013 10:46:08 GMT</pubDate>
    <dc:creator>bhorneber</dc:creator>
    <dc:date>2013-01-22T10:46:08Z</dc:date>
    <item>
      <title>Track change in one column over time</title>
      <link>https://community.qlik.com/t5/QlikView/Track-change-in-one-column-over-time/m-p/434861#M162099</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;I am trying to create one specific analysis and just cannot find the correct syntax/expression to put it all together. I really appreciate all the help you can give.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have: A list of deals, identified by IDs that have a specific status and volume. Once a week the complete list of all deals is pulled from a database, which looks like this:&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 50%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: rgb(102, 144, 188); text-align: center;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Deals-ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Day&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Status&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Volume&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="text-align: left;"&gt;ID1&lt;/TD&gt;&lt;TD&gt;02.11.&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;open&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;10'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ID1&lt;/TD&gt;&lt;TD&gt;09.11.&lt;/TD&gt;&lt;TD&gt;open&lt;/TD&gt;&lt;TD&gt;10'&lt;/TD&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, meaning "&lt;STRONG&gt;how many deals have changed their status from 'open to won', from 'created to open', etc.&lt;/STRONG&gt;" (in reality there are some more). &lt;/P&gt;&lt;P&gt;One thing I am struggeling with is that the time frame can be defined by the user. So the start and end day of my analysis are dynamic. Getting the user input is easy, but using the variables correctly unfortunately not, at least not for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example: When the user selects 02.11. as start and 23.11. as end, the following should be displayed:&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="80" style="border: 1px solid rgb(0, 0, 0); width: 297px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Status-Change&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;#ofDeals&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Sum(Volume)&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;open to won&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;17'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;EM&gt;null&lt;/EM&gt; to open&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;12'&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The format is not that important, a matrix would be great, too:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# of deals:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="124" style="border: 1px solid rgb(0, 0, 0); width: 198px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="text-align: center;"&gt;&lt;P&gt;open&lt;/P&gt;&lt;P&gt;(start)&lt;/P&gt;&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;P&gt;&lt;EM&gt;null&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;(start)&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="text-align: center;"&gt;-&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;1&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;P&gt;open&lt;/P&gt;&lt;P&gt;(end)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="text-align: center;"&gt;2&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;-&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;P&gt;won&lt;/P&gt;&lt;P&gt;(end)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, by clicking on one row/box the according IDs should be selected/displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can make a list with Deal-IDs as dimension and a status column for each day using &lt;SPAN style="font-family: courier new,courier;"&gt;Only( {&amp;lt;[Day]={'$(vStartDate)'}&amp;gt;} [Status])&lt;/SPAN&gt; as expression. But this merely is an overview.&lt;/P&gt;&lt;P&gt;I also played around with the aggr-function, unfortunately without any success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally I tried another format where I had one column for each day with the status, did not help either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really hope that some of you have an idea, how to track the status-changes of deals between two given days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Benedikt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 14:01:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Track-change-in-one-column-over-time/m-p/434861#M162099</guid>
      <dc:creator>bhorneber</dc:creator>
      <dc:date>2013-01-18T14:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Track change in one column over time</title>
      <link>https://community.qlik.com/t5/QlikView/Track-change-in-one-column-over-time/m-p/434862#M162100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Try joining your source data to the preivous transaction, in this example i have create a list box for the date selection but you could switch this to use variables pritty easyly here is a sample script: (I also attached the .qvw)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;LOAD DealsID, num(Day) as Day, Status, Volume&lt;/P&gt;&lt;P&gt; INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DealsID, Day, Status, Volume&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID1, 02/11/2012, open, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID1, 09/11/2012, open, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID1, 16/11/2012, won, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID1, 23/11/2012, won, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID2, 02/11/2012, open, 7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID2, 09/11/2012, open, 7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID2, 16/11/2012, open, 7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID2, 23/11/2012, won, 7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID3, 16/11/2012, created, 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID3, 23/11/2012, open, 12&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;min(Day) as min,&lt;/P&gt;&lt;P&gt;max(Day) as max&lt;/P&gt;&lt;P&gt;Resident data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let v_min = peek('min');&lt;/P&gt;&lt;P&gt;let v_max = peek('max');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;calender:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;RowNo() +$(v_min) -1 as Day,&lt;/P&gt;&lt;P&gt;date(RowNo() +$(v_min) -1) as StatusChangeDate&lt;/P&gt;&lt;P&gt;AutoGenerate ($(v_max) - $(v_min) + 1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tempdata:&lt;/P&gt;&lt;P&gt;noconcatenate load *,&lt;/P&gt;&lt;P&gt;AutoNumber(Day,DealsID) as DealsIDOrder&lt;/P&gt;&lt;P&gt;Resident data&lt;/P&gt;&lt;P&gt;order by DealsID,Day asc&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (tempdata)&lt;/P&gt;&lt;P&gt;load DealsID,DealsIDOrder+1 as DealsIDOrder,Status as PreviousStatus,Day as PrevousDay&lt;/P&gt;&lt;P&gt;Resident tempdata;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;load *,if(isnull(PreviousStatus),'Null',PreviousStatus) as temp Resident tempdata;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop field PreviousStatus;&lt;/P&gt;&lt;P&gt;rename field temp to PreviousStatus;&lt;/P&gt;&lt;P&gt;drop table tempdata;&lt;/P&gt;&lt;P&gt;rename table data to tempdata;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;NoConcatenate load *,PreviousStatus &amp;amp;'-&amp;gt;' &amp;amp; Status as StatusChange Resident tempdata;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table tempdata;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dealsummary:&lt;/P&gt;&lt;P&gt;load distinct DealsID,DealsID as DealsIDCounter,Volume Resident data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop field Volume from data; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 15:35:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Track-change-in-one-column-over-time/m-p/434862#M162100</guid>
      <dc:creator>sbaldwin</dc:creator>
      <dc:date>2013-01-18T15:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Track change in one column over time</title>
      <link>https://community.qlik.com/t5/QlikView/Track-change-in-one-column-over-time/m-p/434863#M162101</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;first, thanks a lot for your reply and for all the time you spend creating it! I really appreciate that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, it seems that I was not able to fully explain what my problem is. &lt;/P&gt;&lt;P&gt;The solution you proposed counts all the changes between two dates. Meaning when the status of one deal changes from nothing to open, and then from open to closed, the according deal is listed in those two sections. What I try to compute is just the difference between the given start and end date, no matter what happens in between.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevertheless, your answer helped me a lot in getting to my solution:&lt;/P&gt;&lt;P&gt;I just "copied" the data table, resulting in two identical tables, linked via the dealID. All fields except the dealID are qualified.&lt;/P&gt;&lt;P&gt;This way I am now able to select a start date of the "start-table" and an end date of the "end-table". Using a pivot table I can easily display what I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So again, thanks for your answer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 10:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Track-change-in-one-column-over-time/m-p/434863#M162101</guid>
      <dc:creator>bhorneber</dc:creator>
      <dc:date>2013-01-22T10:46:08Z</dc:date>
    </item>
  </channel>
</rss>

