<?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: Set analysis in Script equivalent in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-Script-equivalent/m-p/1275832#M846552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok so I would create a new table and join it back, hard to advise without table names etc but I can give you the basic syntax to use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;noconcatentate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tmp:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Article, Max(Time) as NewField&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;resident yourtable&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;group by &lt;SPAN style="font-size: 13.3333px;"&gt;Article&lt;/SPAN&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LEFT JOIN (yourtable)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * resident tmp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table tmp;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Mar 2017 10:28:53 GMT</pubDate>
    <dc:creator>adamdavi3s</dc:creator>
    <dc:date>2017-03-24T10:28:53Z</dc:date>
    <item>
      <title>Set analysis in Script equivalent</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-Script-equivalent/m-p/1275831#M846551</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;So my data looks like the below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Article&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field I want below&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1234&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12:03:02&lt;/P&gt;&lt;P&gt;1234&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12:05:00&lt;/P&gt;&lt;P&gt;1234&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13:00:02&lt;/P&gt;&lt;P&gt;1235&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13:01:02&lt;/P&gt;&lt;P&gt;1235&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13:02:02&lt;/P&gt;&lt;P&gt;1235&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13:56:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create the equivalent of an array formula in excel (which led me to set analysis). Which returns the MAX time for a particular Article.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure how to write the set analysis or whether it is actually possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thus : MAX(IF(Article=Article,Time)&amp;nbsp; (just a sample of the idea)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In more detail: I need the formula to evaluate each Article in the range to see if it matches the row Article and return the MAX Time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance ! Also, if not possible in the script, a front face solution will also be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-Script-equivalent/m-p/1275831#M846551</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in Script equivalent</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-Script-equivalent/m-p/1275832#M846552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok so I would create a new table and join it back, hard to advise without table names etc but I can give you the basic syntax to use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;noconcatentate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tmp:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Article, Max(Time) as NewField&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;resident yourtable&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;group by &lt;SPAN style="font-size: 13.3333px;"&gt;Article&lt;/SPAN&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LEFT JOIN (yourtable)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * resident tmp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table tmp;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 10:28:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-Script-equivalent/m-p/1275832#M846552</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-03-24T10:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in Script equivalent</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-Script-equivalent/m-p/1275833#M846553</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 also had this solution, but the joining didnt work properly, I realised this was a result of bad formatting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the solution !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 10:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-Script-equivalent/m-p/1275833#M846553</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-24T10:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in Script equivalent</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-Script-equivalent/m-p/1275834#M846554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pl close this issue by marking the correct answer if you like the solution given.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Mar 2017 21:31:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-Script-equivalent/m-p/1275834#M846554</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2017-03-25T21:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in Script equivalent</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-Script-equivalent/m-p/1275835#M846555</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;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Another solution is applymap function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Max_Map:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;Mapping&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;LOAD &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Article, &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Date(Max(Time),' hh:mm:ss')&amp;nbsp; as MaxTime&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;from yourtable&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;group by &lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Article;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;EM style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;EM style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Table:&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;EM style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Load&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;EM style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Article,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;EM style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Time,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;EM style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;Applymap('&lt;SPAN style="font-size: 13.3333px;"&gt;Max_Map&lt;/SPAN&gt;',Article,0) as MaxTime&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;from yourtable;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Mar 2017 09:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-Script-equivalent/m-p/1275835#M846555</guid>
      <dc:creator>ElizaF</dc:creator>
      <dc:date>2017-03-26T09:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in Script equivalent</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-Script-equivalent/m-p/1275836#M846556</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 did mark the answer as helpful, is there another way to mark it as correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 05:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-Script-equivalent/m-p/1275836#M846556</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-29T05:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in Script equivalent</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-Script-equivalent/m-p/1275837#M846557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ruan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trust that you are doing great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with solutions of Adam &amp;amp; Eliza. BTW, as a front-end workaround you can add a calculated dimension with below definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14907664441167370 jive_text_macro" jivemacro_uid="_14907664441167370"&gt;
&lt;P&gt;=Aggr(MaxString(Time), Article)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also refer the sample application attached herewith.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 05:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-Script-equivalent/m-p/1275837#M846557</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-03-29T05:50:36Z</dc:date>
    </item>
  </channel>
</rss>

