<?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: Previous function help in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1872849#M72012</link>
    <description>&lt;P&gt;Hi Or - I guess your script logic worked with some minor changes to fit my environment and requirement&lt;/P&gt;
&lt;P&gt;I am testing the data with few scenarios, will keep you updated.&lt;/P&gt;
&lt;P&gt;Thanks for your help!!&lt;/P&gt;</description>
    <pubDate>Fri, 17 Dec 2021 21:58:19 GMT</pubDate>
    <dc:creator>jpjust</dc:creator>
    <dc:date>2021-12-17T21:58:19Z</dc:date>
    <item>
      <title>Previous function help</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1871653#M71931</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;
&lt;P&gt;Hope some one can help me here. An critical one, any help will be greatly appreciated.&lt;/P&gt;
&lt;P&gt;I have an qliksense table below.&lt;/P&gt;
&lt;P&gt;Appname&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AppID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Publish date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Analyzed date&lt;/P&gt;
&lt;P&gt;App1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12345&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2012-12-15&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2012-12-14&lt;/P&gt;
&lt;P&gt;App[1]&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 23456&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Never&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2012-12-15&lt;/P&gt;
&lt;P&gt;Now the output I want is below, the second record from the above. instead of Never, I want the date from the App1 and the App[1] name should change to App1. Publish date should be current date. Is this possible?&lt;/P&gt;
&lt;P&gt;Appname&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AppID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Publish date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Analyzed date&lt;/P&gt;
&lt;P&gt;App 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 23456&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2012-12-15 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2012-12-15&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 19:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1871653#M71931</guid>
      <dc:creator>jpjust</dc:creator>
      <dc:date>2021-12-15T19:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Previous function help</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1871677#M71933</link>
      <description>&lt;P&gt;What would be the logic for determining that App1 and App[1] are the same app, rather than two separate apps?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 20:37:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1871677#M71933</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-12-15T20:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Previous function help</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1872033#M71959</link>
      <description>&lt;P&gt;Sorry the App names are App1 and App1[1]&lt;/P&gt;
&lt;P&gt;So,may be by the name until App1.&lt;/P&gt;
&lt;P&gt;App1[1] is same as App1. App1[1] is located in the work stream and App1 is located in a published stream.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 13:43:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1872033#M71959</guid>
      <dc:creator>jpjust</dc:creator>
      <dc:date>2021-12-16T13:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Previous function help</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1872056#M71960</link>
      <description>&lt;P&gt;So the logic is that apps are the same if the name is a perfect match up to the first square bracket, and otherwise you seem to be picking the max value from the combined rows?&lt;/P&gt;
&lt;P&gt;If that's the case, something along the lines of (Note: I replaced the square bracket so I could use inline load, but in your case swap the '(' for '['):&lt;/P&gt;
&lt;P&gt;Apps:&lt;BR /&gt;Load Subfield(Appname,'(',1) as Appname, Max(AppID) as AppID, MaxString(If([Publish date]&amp;lt;&amp;gt;'Never',[Publish date])) as [Publish date], MaxString([Analyzed date]) as [Analyzed date]&lt;BR /&gt;Group by Subfield(Appname,'(',1);&lt;BR /&gt;Load * INLINE [&lt;BR /&gt;Appname, AppID , Publish date , Analyzed date&lt;/P&gt;
&lt;P&gt;App1, 12345 , 2012-12-15 , 2012-12-14&lt;BR /&gt;App1(1), 23456 , Never , 2012-12-15];&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Or_0-1639663410664.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/68732iE3CB5F2A8A4C2FF9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Or_0-1639663410664.png" alt="Or_0-1639663410664.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 14:03:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1872056#M71960</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-12-16T14:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Previous function help</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1872221#M71966</link>
      <description>&lt;P&gt;Thank you so much, that was an awesome solution.&lt;/P&gt;
&lt;P&gt;My qvf has little more than the inline / sample data (Eg., an join to another table) that I provided here, so I thought to share the qvf with you, probably you can advice on a solution.&lt;/P&gt;
&lt;P&gt;If you look at the "My new sheet",&amp;nbsp; the expected output that I am looking for is the 3'rd record.&lt;/P&gt;
&lt;P&gt;The script to consider is "QSDA" and "get_apps" and there is a join between the 2 tables.&lt;/P&gt;
&lt;P&gt;Thank you so much again for your help!!&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 17:22:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1872221#M71966</guid>
      <dc:creator>jpjust</dc:creator>
      <dc:date>2021-12-16T17:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Previous function help</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1872260#M71969</link>
      <description>&lt;P&gt;&lt;BR /&gt;load *,if([Publish date]='Never',previous([Publish date]),[Publish date]) as new;&lt;BR /&gt;Load * INLINE [&lt;BR /&gt;Appname, AppID , Publish date , Analyzed date&lt;/P&gt;
&lt;P&gt;App1, 12345 , 2012-12-15 , 2012-12-14&lt;BR /&gt;App1(1), 23456 , Never , 2012-12-15&lt;BR /&gt;App2, 12345 , 2012-12-16 , 2012-12-15&lt;BR /&gt;App2, 12345 , 2012-12-16 , 2012-12-15&lt;BR /&gt;App2 (1), 123456 , Never , 2012-12-16&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;exit script;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 18:35:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1872260#M71969</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2021-12-16T18:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Previous function help</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1872277#M71971</link>
      <description>&lt;P&gt;Sorry, but I don't really follow what it is you're trying to do with that. The third line looks like it has the exact same app name as the second line to begin with, and if you're trying to do this in the front end, you could just use the modified app name as your dimension and max() on the other two fields regardless of which table they originate from. You may want to date() the app publish date or otherwise get rid of the 'Never' values (replace them with a null) so they don't complicate your max formula.&lt;/P&gt;
&lt;P&gt;Of course, the suggestion to combine the app names won't work on some of your examples, e.g. 2.0 HRM Dashboard and 2.0 HRM Dashboard 2.0 (NIEUW). If you need to do that, you'll need to look at matching based on partial text, perhaps using &lt;A href="https://qlikviewcookbook.com/list-recipes/#squelch-taas-accordion-shortcode-content-13" target="_blank"&gt;https://qlikviewcookbook.com/list-recipes/#squelch-taas-accordion-shortcode-content-13&lt;/A&gt; or something similar?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 18:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1872277#M71971</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-12-16T18:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Previous function help</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1872734#M72005</link>
      <description>&lt;P&gt;Thanks much for the suggestions.&lt;/P&gt;
&lt;P&gt;I am thinking and working on all possible ways to achieve the desired results.&lt;/P&gt;
&lt;P&gt;To bring only the 3'rd record to show on the front end, what would be my complete expression on the front end?&lt;/P&gt;
&lt;P&gt;I tried setanalysis, max, Aggr functions on the AppName field but did not work as expected.&lt;/P&gt;
&lt;P&gt;Desired result:&lt;/P&gt;
&lt;P&gt;AppName&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; createddatetime&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; App Publish date&lt;/P&gt;
&lt;P&gt;TEST&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2021-12-16&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2012-12-17&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jpjust_0-1639753418327.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/68836i7AFDAD67A132C558/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jpjust_0-1639753418327.png" alt="jpjust_0-1639753418327.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again for your assistance.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 15:08:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1872734#M72005</guid>
      <dc:creator>jpjust</dc:creator>
      <dc:date>2021-12-17T15:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Previous function help</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1872759#M72007</link>
      <description>&lt;P&gt;Here is my expression but did not work.&lt;/P&gt;
&lt;P&gt;=Aggr(Only({&amp;lt;[App Publish Date] = {'$(=Date(Today(),'YYYY-MM-DD'))'}, createdDateTime ={max(createdDateTime)} &amp;gt;}[AppName]),[AppName])&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 15:53:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1872759#M72007</guid>
      <dc:creator>jpjust</dc:creator>
      <dc:date>2021-12-17T15:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Previous function help</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1872849#M72012</link>
      <description>&lt;P&gt;Hi Or - I guess your script logic worked with some minor changes to fit my environment and requirement&lt;/P&gt;
&lt;P&gt;I am testing the data with few scenarios, will keep you updated.&lt;/P&gt;
&lt;P&gt;Thanks for your help!!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 21:58:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1872849#M72012</guid>
      <dc:creator>jpjust</dc:creator>
      <dc:date>2021-12-17T21:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Previous function help</title>
      <link>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1877711#M72349</link>
      <description>&lt;P&gt;Hi Or - I am still struggling with this and I tried various ways but unable to achieve the desired results.&lt;/P&gt;
&lt;P&gt;Here is my script:&lt;/P&gt;
&lt;P&gt;[Script1]&lt;/P&gt;
&lt;P&gt;LOAD&amp;nbsp;&lt;BR /&gt;[appId] as AppID,&lt;BR /&gt;[appName], &lt;BR /&gt;timestamp([createdDateTime]) as createdDateTime,&lt;BR /&gt;[flagCount]&lt;BR /&gt;RESIDENT RestConnectorMasterTable;&lt;/P&gt;
&lt;P&gt;[Script2]&lt;/P&gt;
&lt;P&gt;LOAD &lt;BR /&gt;&lt;BR /&gt;[id_u3] AS AppID, &lt;BR /&gt;[name_u2] AS AppName, &lt;BR /&gt;if(left(publishTime,4)='1753','Never',date(timestamp(publishTime))) AS [App Publish Date]&lt;BR /&gt;RESIDENT RestConnectorMasterTable&lt;/P&gt;
&lt;P&gt;Here is the output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jpjust_0-1641418499485.png" style="width: 660px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69644i84475E030EA3FEDB/image-dimensions/660x80?v=v2" width="660" height="80" role="button" title="jpjust_0-1641418499485.png" alt="jpjust_0-1641418499485.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The output that I want is below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jpjust_1-1641419480264.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69645iD6BD2F5D937CA7C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jpjust_1-1641419480264.png" alt="jpjust_1-1641419480264.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any help to achieve the above output will be appreciated.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 21:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Previous-function-help/m-p/1877711#M72349</guid>
      <dc:creator>jpjust</dc:creator>
      <dc:date>2022-01-05T21:52:09Z</dc:date>
    </item>
  </channel>
</rss>

