<?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: Re: Trying To Return A Value Using Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trying-To-Return-A-Value-Using-Set-Analysis/m-p/495713#M1129109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Nov 2013 23:15:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-26T23:15:45Z</dc:date>
    <item>
      <title>Trying To Return A Value Using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-To-Return-A-Value-Using-Set-Analysis/m-p/495707#M1129103</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 receive daily files.&amp;nbsp; Each file has an associated file date.&amp;nbsp; Each file contains transactions from multiple dates &amp;lt;= the file date.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I have a calendar I created which lists the file date and the corresponding day of the month.&amp;nbsp; I am trying to return the day of the month which corresponds to the file File Date = the Maximum Transaction Date.&amp;nbsp; The FileDate and TranDate are text stings with the same format MMDDYY, i.e. 112613 is November 26, 2013.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxString(TranDate) does return the maximum transaction date, i.e. 112613.&amp;nbsp; I have tested this in a text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking in expression such as the one below might work, but it does not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=p({&amp;lt;FileDate={MaxString(TranDate)}&amp;gt;} DayofTheMonth)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 20:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-To-Return-A-Value-Using-Set-Analysis/m-p/495707#M1129103</guid>
      <dc:creator />
      <dc:date>2013-11-26T20:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trying To Return A Value Using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-To-Return-A-Value-Using-Set-Analysis/m-p/495708#M1129104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the p() function only in a set expression within an aggregation function. But I think you don't need p() here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=only( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{&amp;lt;FileDate={$(=MaxString(TranDate))}&amp;gt;} DayofTheMonth)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 20:31:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-To-Return-A-Value-Using-Set-Analysis/m-p/495708#M1129104</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-26T20:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Trying To Return A Value Using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-To-Return-A-Value-Using-Set-Analysis/m-p/495709#M1129105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;swuehl -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That doesn't seem to work, and the following portion of the expression you provided is grayed out if that means anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(=MaxString(TranDate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 20:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-To-Return-A-Value-Using-Set-Analysis/m-p/495709#M1129105</guid>
      <dc:creator />
      <dc:date>2013-11-26T20:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trying To Return A Value Using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-To-Return-A-Value-Using-Set-Analysis/m-p/495710#M1129106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dollar sign expansion in gray and italic is fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if you paste the number in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=only( &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&amp;lt;FileDate={112613} &amp;gt;} DayofTheMonth)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Do you get a number? Maybe using single quotes?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=only( &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&amp;lt;FileDate={'112613'} &amp;gt;} DayofTheMonth)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If you can have multiple DayOfTheMonth values for the same max FileDate, then only() will return NULL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If this could be the case, you need to decide which value you want to retrieve, maybe the maxstring:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=maxstring( &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&amp;lt;FileDate={112613} &amp;gt;} DayofTheMonth)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 20:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-To-Return-A-Value-Using-Set-Analysis/m-p/495710#M1129106</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-26T20:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Trying To Return A Value Using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-To-Return-A-Value-Using-Set-Analysis/m-p/495711#M1129107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick responses.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All three of these expressions return null "-".&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=only( &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&amp;lt;FileDate={112613} &amp;gt;} DayofTheMonth)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=only( &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&amp;lt;FileDate={'112613'} &amp;gt;} DayofTheMonth)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=maxstring( &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&amp;lt;FileDate={112613} &amp;gt;} DayofTheMonth)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;But I don't think there are multiple DayofTheMonth values associated with each FileDate, because if I just put =DayofTheMonth in a text box and click on 112613 from a list of file dates, the text box populates with the number I am looking for.&amp;nbsp; This works consistently well for any FileDate I select including the max FileDate.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I've included a copy of the table viewer below is that helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Mike&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;IMG alt="Table Viewer.jpg" class="jive-image" src="/legacyfs/online/49570_Table Viewer.jpg" style="width: 620px; height: 422px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 21:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-To-Return-A-Value-Using-Set-Analysis/m-p/495711#M1129107</guid>
      <dc:creator />
      <dc:date>2013-11-26T21:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Trying To Return A Value Using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-To-Return-A-Value-Using-Set-Analysis/m-p/495712#M1129108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm, I don't see anything wrong, maybe I am missing something simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you upload your application?&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-1290"&gt;http://community.qlik.com/docs/DOC-1290&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 21:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-To-Return-A-Value-Using-Set-Analysis/m-p/495712#M1129108</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-26T21:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Trying To Return A Value Using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-To-Return-A-Value-Using-Set-Analysis/m-p/495713#M1129109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 23:15:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-To-Return-A-Value-Using-Set-Analysis/m-p/495713#M1129109</guid>
      <dc:creator />
      <dc:date>2013-11-26T23:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Trying To Return A Value Using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-To-Return-A-Value-Using-Set-Analysis/m-p/495714#M1129110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's just a little typo (DayOfTheMonth instead of DayofTheMonth):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=only( {&amp;lt;FileDate={$(=Maxstring(TranDate))}&amp;gt;} DayOfTheMonth)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;returns 21.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 07:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-To-Return-A-Value-Using-Set-Analysis/m-p/495714#M1129110</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-27T07:32:21Z</dc:date>
    </item>
  </channel>
</rss>

