<?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: Syntax set analysis p() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Syntax-set-analysis-p/m-p/787134#M1045055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;please try below expression&lt;/P&gt;&lt;P&gt;=count({1&amp;lt;Item_number = P({1&amp;lt;Item_number={"=len(corporate_level_1)=0"}&amp;gt;} Item_number)&amp;gt;} Item_number )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Nov 2014 12:36:11 GMT</pubDate>
    <dc:creator>perumal_41</dc:creator>
    <dc:date>2014-11-20T12:36:11Z</dc:date>
    <item>
      <title>Syntax set analysis p()</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-set-analysis-p/m-p/787130#M1045051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to do a count of item numbers where a specific field (corporate_level_1) is missing data.&lt;/P&gt;&lt;P&gt;I have the following syntax :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({1&amp;lt;Item_number = P({1&amp;lt;{=len(corporate_level_1)=0}&amp;gt;} Item_number)&amp;gt;} Item_number )&lt;/P&gt;&lt;P&gt;I have no result, is there something missing in the syntax ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 12:00:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-set-analysis-p/m-p/787130#M1045051</guid>
      <dc:creator />
      <dc:date>2014-11-20T12:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax set analysis p()</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-set-analysis-p/m-p/787131#M1045052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;=count({1&amp;lt;Item_number - ={'*'}&amp;gt;} Item_number )&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; // note the '-' symbol before '='&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 12:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-set-analysis-p/m-p/787131#M1045052</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-11-20T12:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax set analysis p()</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-set-analysis-p/m-p/787132#M1045053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;=count({1&amp;lt;&lt;STRONG&gt;Key&lt;/STRONG&gt; = {'=len(Trim(corporate_level_1))=0'}&amp;gt;} &lt;STRONG&gt;Key&lt;/STRONG&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;=count({1-&amp;lt;Item_number = {'*'}&amp;gt;} &lt;STRONG&gt;Key&lt;/STRONG&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace Key by your Key field in the table or any non-nullable field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 12:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-set-analysis-p/m-p/787132#M1045053</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-11-20T12:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax set analysis p()</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-set-analysis-p/m-p/787133#M1045054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should be done using a flag in your load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(isnull(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;corporate_level_1),1,0) as %MissingCorporateLevel1Flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then your expression becomes&lt;/P&gt;&lt;P&gt;count({1&amp;lt;%&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MissingCorporateLevel1Flag={1}&amp;gt;}distinct &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Item_number)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 12:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-set-analysis-p/m-p/787133#M1045054</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2014-11-20T12:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax set analysis p()</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-set-analysis-p/m-p/787134#M1045055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;please try below expression&lt;/P&gt;&lt;P&gt;=count({1&amp;lt;Item_number = P({1&amp;lt;Item_number={"=len(corporate_level_1)=0"}&amp;gt;} Item_number)&amp;gt;} Item_number )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 12:36:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-set-analysis-p/m-p/787134#M1045055</guid>
      <dc:creator>perumal_41</dc:creator>
      <dc:date>2014-11-20T12:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax set analysis p()</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-set-analysis-p/m-p/787135#M1045056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a flag in the script, for the existence of the filed.. and use this filed in the expression.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Script:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;IF(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;corporate_level_1=' ','N','Y') AS C&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;orporate_level_1_Flg&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;From...;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;corporate_level_1_Flg={'N'}&lt;/SPAN&gt;&amp;gt;}Item_ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 13:11:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-set-analysis-p/m-p/787135#M1045056</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2014-11-20T13:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax set analysis p()</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-set-analysis-p/m-p/787136#M1045057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works now like this : &lt;/P&gt;&lt;P&gt;=count({&lt;STRONG&gt;1&lt;/STRONG&gt;&amp;lt;Item_number = {'=len(Trim(corporate_level_1))=0'},CBU={4870},Active_status={"##"},Material_type={ZFPR} &amp;gt;} Item_number )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also added other conditions, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT&lt;/P&gt;&lt;P&gt;although I entered &lt;STRONG&gt;1&lt;/STRONG&gt;, the result changes if I change manually the selection in the screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 14:38:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-set-analysis-p/m-p/787136#M1045057</guid>
      <dc:creator />
      <dc:date>2014-11-20T14:38:49Z</dc:date>
    </item>
  </channel>
</rss>

