<?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: Max Date for each workflow id in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-Date-for-each-workflow-id/m-p/415182#M154436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case you should consider adding a field in the load script and fill it using a mapping table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ClosedMap:&lt;/P&gt;&lt;P&gt;mapping load * [&lt;/P&gt;&lt;P&gt;order complete, 1&lt;/P&gt;&lt;P&gt;workflow complete, 1&lt;/P&gt;&lt;P&gt;dealer paid, 1&lt;/P&gt;&lt;P&gt;customer order confirmation, 1&lt;/P&gt;&lt;P&gt;rejected, 1&lt;/P&gt;&lt;P&gt;cancelled, 1&lt;/P&gt;&lt;P&gt;...etc.&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Workflows:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;StartDate,&lt;/P&gt;&lt;P&gt;EndDate,&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P&gt;applymap('ClosedMap',Description,0) as ClosedYesNo&lt;/P&gt;&lt;P&gt;...etc.&lt;/P&gt;&lt;P&gt;from ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the field ClosedYesNo can be used instead of Description to see if a workflow is closed. It can be done with a nested if statement, but this is a better solution imo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Nov 2012 11:37:18 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2012-11-08T11:37:18Z</dc:date>
    <item>
      <title>Max Date for each workflow id</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Date-for-each-workflow-id/m-p/415179#M154433</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;Below is example data from my Dashboard. i want to write an expression which defines whether a case is open or closed.&lt;/P&gt;&lt;P&gt;What i need to do is get the the most recent start date for the each workflow id and then see what the description is and decide whether it is open or closed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example using the data below. i would want it to return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Workflow ID 1 - Closed&lt;/P&gt;&lt;P&gt;Workflow ID 2 - Open&lt;/P&gt;&lt;P&gt;Workflow ID 3 - Open&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laura&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="418" style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; WIDTH: 441px; HEIGHT: 420px; BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid;"&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;Workflow 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;Start Date&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;End Date&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;Description&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;10/01/2012 16:00:05&lt;/TD&gt;&lt;TD&gt;10/01/2012 16:10:02&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;new case&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;10/01/2012 16:10:02&lt;/TD&gt;&lt;TD&gt;10/01/2012 16:10:05&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;query&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;10/01/2012 16:10:05&lt;/TD&gt;&lt;TD&gt;15/01/2012&amp;nbsp; 11:03:13&lt;/TD&gt;&lt;TD&gt;closed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;12/01/2012 12:40:05&lt;/TD&gt;&lt;TD&gt;12/01/2012 16:00:05&lt;/TD&gt;&lt;TD&gt;new case&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;12/01/2012 16:00:05&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;customer order&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;10/01/2012 16:00:05&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;new case&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 10:59:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Date-for-each-workflow-id/m-p/415179#M154433</guid>
      <dc:creator />
      <dc:date>2012-11-08T10:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Max Date for each workflow id</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Date-for-each-workflow-id/m-p/415180#M154434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe something like this:&lt;/P&gt;&lt;P&gt;if(aggr(FirstSortedValue([Description],-[Start Date]),[Workflow ID])='Closed','Closed','Open')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 11:09:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Date-for-each-workflow-id/m-p/415180#M154434</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-11-08T11:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Max Date for each workflow id</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Date-for-each-workflow-id/m-p/415181#M154435</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;Thats great however what if there is more than 1 description which can be closed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e the order is closed if the last decription is one of the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;order complete&lt;/P&gt;&lt;P&gt;workflow complete&lt;/P&gt;&lt;P&gt;dealer paid&lt;/P&gt;&lt;P&gt;customer order confirmation&lt;/P&gt;&lt;P&gt;rejected&lt;/P&gt;&lt;P&gt;cancelled&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 11:17:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Date-for-each-workflow-id/m-p/415181#M154435</guid>
      <dc:creator />
      <dc:date>2012-11-08T11:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Max Date for each workflow id</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Date-for-each-workflow-id/m-p/415182#M154436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case you should consider adding a field in the load script and fill it using a mapping table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ClosedMap:&lt;/P&gt;&lt;P&gt;mapping load * [&lt;/P&gt;&lt;P&gt;order complete, 1&lt;/P&gt;&lt;P&gt;workflow complete, 1&lt;/P&gt;&lt;P&gt;dealer paid, 1&lt;/P&gt;&lt;P&gt;customer order confirmation, 1&lt;/P&gt;&lt;P&gt;rejected, 1&lt;/P&gt;&lt;P&gt;cancelled, 1&lt;/P&gt;&lt;P&gt;...etc.&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Workflows:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;StartDate,&lt;/P&gt;&lt;P&gt;EndDate,&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P&gt;applymap('ClosedMap',Description,0) as ClosedYesNo&lt;/P&gt;&lt;P&gt;...etc.&lt;/P&gt;&lt;P&gt;from ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the field ClosedYesNo can be used instead of Description to see if a workflow is closed. It can be done with a nested if statement, but this is a better solution imo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 11:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Date-for-each-workflow-id/m-p/415182#M154436</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-11-08T11:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Max Date for each workflow id</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Date-for-each-workflow-id/m-p/415183#M154437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;WorkFlow:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;LOAD [Workflow ID], &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Start Date], &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [End Date], &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Book1.xlsx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;(ooxml, embedded labels, table is Sheet4);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Map1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Mapping&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;LOAD [Start Date],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;If(Description='closed','Closed','Open') as Description&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Resident WorkFlow;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;ResWorkFlow:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;LOAD [Workflow ID],ApplyMap('Map1',Date(Max([Start Date]),'MM-DD-YYYY hh:mm:ss')) as&amp;nbsp; NewColumn&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Resident WorkFlow&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Group By [Workflow ID]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;Jagan Nalla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 11:48:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Date-for-each-workflow-id/m-p/415183#M154437</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2012-11-08T11:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Max Date for each workflow id</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Date-for-each-workflow-id/m-p/415184#M154438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi the mapping does not work. how would a nested if statement look?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 13:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Date-for-each-workflow-id/m-p/415184#M154438</guid>
      <dc:creator />
      <dc:date>2012-11-08T13:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Max Date for each workflow id</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Date-for-each-workflow-id/m-p/415185#M154439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;If possible can you attach sample file with data file. It hepls to work b'coz we don't know in which format you have dates.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 13:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Date-for-each-workflow-id/m-p/415185#M154439</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2012-11-08T13:28:59Z</dc:date>
    </item>
  </channel>
</rss>

