<?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 regarding lenth function in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/regarding-lenth-function-in-set-analysis/m-p/191175#M53358</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you can use anything other than field names on the left side of the = signs when defining your set analysis sets.&lt;/P&gt;&lt;P&gt;Len(Number) is in other words not allowed but you should be able to calculate this on the script side: Len(Number) as Len_Number and use this field in defining your set. I didn't look through the other stuff so I'm not sure if there was anything else to take into consideration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Sep 2009 14:38:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-09-18T14:38:44Z</dc:date>
    <item>
      <title>regarding lenth function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/regarding-lenth-function-in-set-analysis/m-p/191173#M53356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to write a set analysis expression based on length of field . I have fields Year,Period,Number and Amount. Now Number contains Blank values also which is not a null value but lenght is 6. So i want the Total Amount without the blank value. So i have written the expression like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({ &amp;lt;Year={$(#=max(@_Year))}&amp;gt;} Amount) -sum({ &amp;lt;Year={$(#=max(@_Year))},len(Number)={6}&amp;gt;} Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But it is giving error in expression at &lt;EM&gt;len(Number) function.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Ans also i have 1-12 period for which i have to calculate current year and current period. Here no date field is there. How can i calulate the latest year and latest period??????&lt;/P&gt;&lt;P&gt;I am using max(Year) and it gives the correct answer but unfortunately max(Period) is giving the 12 number period of previous year. Can anyone help me????????&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 13:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/regarding-lenth-function-in-set-analysis/m-p/191173#M53356</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2009-09-18T13:54:38Z</dc:date>
    </item>
    <item>
      <title>regarding lenth function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/regarding-lenth-function-in-set-analysis/m-p/191174#M53357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also i want rename the Blank value as Others in Number field. Can anyone help me?????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 14:32:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/regarding-lenth-function-in-set-analysis/m-p/191174#M53357</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2009-09-18T14:32:15Z</dc:date>
    </item>
    <item>
      <title>regarding lenth function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/regarding-lenth-function-in-set-analysis/m-p/191175#M53358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you can use anything other than field names on the left side of the = signs when defining your set analysis sets.&lt;/P&gt;&lt;P&gt;Len(Number) is in other words not allowed but you should be able to calculate this on the script side: Len(Number) as Len_Number and use this field in defining your set. I didn't look through the other stuff so I'm not sure if there was anything else to take into consideration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 14:38:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/regarding-lenth-function-in-set-analysis/m-p/191175#M53358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-18T14:38:44Z</dc:date>
    </item>
  </channel>
</rss>

