<?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: Use of maxstring() function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616917#M227431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hello Mansi,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;No need to use maxstring here, You can just try with this&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Month ={"$(MaxMonth)"},Year ={"$(MaxYear)"}&amp;gt;} Data)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it will help you&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Vishal Waghole&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2014 06:58:48 GMT</pubDate>
    <dc:creator>VishalWaghole</dc:creator>
    <dc:date>2014-03-25T06:58:48Z</dc:date>
    <item>
      <title>Use of maxstring() function</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616911#M227425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want an expression like this.&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;[Month] = {"April"}, Year = {"2012-13"}&amp;gt;}Data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works correctly but now I want month and year selected by the user from a list. I could have done it with GetFeildSelections() but I am using alternate States and GetFeildSelections() does not work with alternate states. So I used maxstring() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having my state name as 'new', I did it as follows:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;[Month] = maxstring({[new]} [Month]),[Year] = maxstring({[new] [Year]})&amp;gt;}Data)&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;[Month] = maxstring({[new]} [Month])&amp;gt;*&amp;lt;[Year] = maxstring({[new] [Year]})&amp;gt;}Data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But its showing "error in set modifier element function name".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I tried creating variables for Month and Year as:&lt;/P&gt;&lt;P&gt;vMonth = maxstring({[new]} [Month])&amp;nbsp; and&lt;/P&gt;&lt;P&gt;vYear = maxstring({[new]} [Year])&lt;/P&gt;&lt;P&gt;still no correct output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody has a solution for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 05:49:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616911#M227425</guid>
      <dc:creator>mansi_dv</dc:creator>
      <dc:date>2014-03-25T05:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Use of maxstring() function</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616912#M227426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post a sample app so that we can have a look to help you in a better way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 05:53:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616912#M227426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-25T05:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Use of maxstring() function</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616913#M227427</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;Instead of using MaxString() You can use Only Max function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum({&amp;lt;[Month] ={"=max([Month]"},[Year] ={"=max([Year])"}&amp;gt;}Data)&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;Regards,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 05:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616913#M227427</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-25T05:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Use of maxstring() function</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616914#M227428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mansi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this approach. Declare variables for your month and year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. vMonthnew =concat({new}Month)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vYearnew =concat({new} Year)&lt;/P&gt;&lt;P&gt;Now use the variable directly in the set analysis. That is more readable as well. You don't need maxstring.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 05:55:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616914#M227428</guid>
      <dc:creator />
      <dc:date>2014-03-25T05:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Use of maxstring() function</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616915#M227429</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 of all check your variable values using a text box.. see if the values are desired or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if all is well then you can try below expression:&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;=sum({&amp;lt;[Month] = $(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vMonth &lt;/SPAN&gt;),[Year] = $(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vYear &lt;/SPAN&gt;)&amp;gt;}Data)&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;HTH&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;Sushil&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 05:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616915#M227429</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2014-03-25T05:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Use of maxstring() function</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616916#M227430</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;Try below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;[Month] = {'$(=maxstring({[new]} [Month]))'},[Year] = {'$(=maxstring({[new]}[Year]))'}&amp;gt;}Data)&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;[Month] = {'$(=maxstring({[new]} [Month]))'}&amp;gt;*&amp;lt;{'$(=maxstring({[new]}[Year]))'}&amp;gt;}Data)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 06:48:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616916#M227430</guid>
      <dc:creator>perumal_41</dc:creator>
      <dc:date>2014-03-25T06:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Use of maxstring() function</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616917#M227431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hello Mansi,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;No need to use maxstring here, You can just try with this&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Month ={"$(MaxMonth)"},Year ={"$(MaxYear)"}&amp;gt;} Data)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it will help you&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Vishal Waghole&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 06:58:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616917#M227431</guid>
      <dc:creator>VishalWaghole</dc:creator>
      <dc:date>2014-03-25T06:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Use of maxstring() function</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616918#M227432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mansi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forgate to tell you that, you have to declared two variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxMonth = Date(Max(Month(DateField)),'MMM')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxYear = Date(Max(Year(DateField)),'YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use above expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 07:04:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616918#M227432</guid>
      <dc:creator>VishalWaghole</dc:creator>
      <dc:date>2014-03-25T07:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Use of maxstring() function</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616919#M227433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked for my variables, they are working fine except that when nothing is selected - I get output as the last value in my listbox. What can be done to correct this?&lt;/P&gt;&lt;P&gt;And for the expression you gave, I am getting some output instead of the earlier one where i used to get zero but it is&amp;nbsp; not the desired result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 07:04:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616919#M227433</guid>
      <dc:creator>mansi_dv</dc:creator>
      <dc:date>2014-03-25T07:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Use of maxstring() function</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616920#M227434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mansi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Post your sample application for better resolution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 07:13:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616920#M227434</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2014-03-25T07:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Use of maxstring() function</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616921#M227435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Perumal, your first expression worked correctly. I just have one more query. I am using listboxes to display different years and months. I have created a pivot table which changes its data based upon those selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I clear my selections, by default I have my pivot table loaded with the data of last values of the listboxes. What can be done for this??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 07:24:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-maxstring-function/m-p/616921#M227435</guid>
      <dc:creator>mansi_dv</dc:creator>
      <dc:date>2014-03-25T07:24:35Z</dc:date>
    </item>
  </channel>
</rss>

