<?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: Count inside only function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-inside-only-function/m-p/1257800#M863645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried this. the problem with the this expression is, since the outer condition is an if loop this expression will work only when you select the temp_batch_id as the v_module1. if nothing is selected it wont work.&lt;/P&gt;&lt;P&gt;I want to get the output even though nothing is selected. that's why i tried to use only function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jan 2017 10:21:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-01-02T10:21:44Z</dc:date>
    <item>
      <title>Count inside only function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-inside-only-function/m-p/1257792#M863637</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;Is it possible to incorporate count function inside only function. if not how can i write the below expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only({&amp;lt;temp_batch_id={'$(v_module1)'}&amp;gt;}if(count({&amp;lt;result_err_flag={'E'}&amp;gt;}result_err_flag)&amp;gt;0,'E',&lt;/P&gt;&lt;P&gt;if(count({&amp;lt;result_err_flag={'W'}&amp;gt;}result_err_flag)&amp;gt;0,'W',&lt;/P&gt;&lt;P&gt;if(IsNull(result_err_flag),'P'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sincerely,&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/Count-inside-only-function/m-p/1257792#M863637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count inside only function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-inside-only-function/m-p/1257793#M863638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;why do you need the only function &lt;/P&gt;&lt;P&gt;maybe something like this &lt;/P&gt;&lt;P&gt;aggr(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;f(count({&amp;lt;result_err_flag={'E'}&amp;gt;}result_err_flag)&amp;gt;0,'E',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(count({&amp;lt;result_err_flag={'W'}&amp;gt;}result_err_flag)&amp;gt;0,'W',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(IsNull(result_err_flag),'P'))),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;temp_batch_id&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 07:58:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-inside-only-function/m-p/1257793#M863638</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2017-01-02T07:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count inside only function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-inside-only-function/m-p/1257794#M863639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with Aggr() function. May be it helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 08:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-inside-only-function/m-p/1257794#M863639</guid>
      <dc:creator>saimahasan</dc:creator>
      <dc:date>2017-01-02T08:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count inside only function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-inside-only-function/m-p/1257795#M863640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I have a set of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;temp_batch_id's. In this expression I have to pass only one temp_batch_id which is stored in the variable &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;v_module1. so for that reason i have used only function.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 09:14:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-inside-only-function/m-p/1257795#M863640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-02T09:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Count inside only function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-inside-only-function/m-p/1257796#M863641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually i don't want this expression to be aggregated against temp_batch_id's. I need to pass few temp_batch_id's only which is stored in some variables like &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;v_module1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 09:16:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-inside-only-function/m-p/1257796#M863641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-02T09:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Count inside only function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-inside-only-function/m-p/1257797#M863642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you send full expression, I mean Without any variables and i see few flags does this direct field or you created for flag to show 0,1 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 09:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-inside-only-function/m-p/1257797#M863642</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-01-02T09:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Count inside only function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-inside-only-function/m-p/1257798#M863643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(count({&amp;lt;result_err_flag={'E'}&amp;gt;}result_err_flag)&amp;gt;0,'E',&lt;/P&gt;&lt;P&gt;if(count({&amp;lt;result_err_flag={'W'}&amp;gt;}result_err_flag)&amp;gt;0,'W',&lt;/P&gt;&lt;P&gt;if(IsNull(result_err_flag),'P'))).&amp;nbsp;&amp;nbsp; this is my expression and it is working fine. but in this expression i need to pass some temp_batch_id's. for eg: temp_batch_id=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;v_module1. (all flags are direct fields)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 09:46:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-inside-only-function/m-p/1257798#M863643</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-02T09:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Count inside only function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-inside-only-function/m-p/1257799#M863644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What was the Variable here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(count({&amp;lt;result_err_flag={'E'}&lt;STRONG&gt;,&lt;/STRONG&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;temp_batch_id={'$(v_module1)'}&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;gt;}result_err_flag)&amp;gt;0,'E',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(count({&amp;lt;result_err_flag={'W'}&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;temp_batch_id={'$(v_module1)'}&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;gt;}result_err_flag)&amp;gt;0,'W',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(IsNull(result_err_flag),'P'&lt;STRONG&gt;,'Remaining'&lt;/STRONG&gt;)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 10:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-inside-only-function/m-p/1257799#M863644</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-01-02T10:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Count inside only function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-inside-only-function/m-p/1257800#M863645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried this. the problem with the this expression is, since the outer condition is an if loop this expression will work only when you select the temp_batch_id as the v_module1. if nothing is selected it wont work.&lt;/P&gt;&lt;P&gt;I want to get the output even though nothing is selected. that's why i tried to use only function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 10:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-inside-only-function/m-p/1257800#M863645</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-02T10:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count inside only function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-inside-only-function/m-p/1257801#M863646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is &lt;STRONG style="text-decoration: underline;"&gt;v_modele1&lt;/STRONG&gt; Here, And Try with $ for Selections&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(count({&lt;STRONG&gt;$&lt;/STRONG&gt;&amp;lt;result_err_flag={'E'}&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;,&lt;/STRONG&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;temp_batch_id={'$(v_module1)'}&lt;/SPAN&gt;&amp;gt;}result_err_flag)&amp;gt;0,'E',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(count({&lt;STRONG&gt;$&lt;/STRONG&gt;&amp;lt;result_err_flag={'W'}&lt;STRONG style="font-style: inherit;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-style: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;temp_batch_id={'$(v_module1)'}&lt;/SPAN&gt;&amp;gt;}result_err_flag)&amp;gt;0,'W',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(IsNull(result_err_flag),'P','Remaining')))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 10:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-inside-only-function/m-p/1257801#M863646</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-01-02T10:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Count inside only function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-inside-only-function/m-p/1257802#M863647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Anil. Its working now. below is my complete expression now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Value=1,if(count({$&amp;lt;result_err_flag={'E'},temp_batch_id={'$(v_module1)'}&amp;gt;}result_err_flag)&amp;gt;0,'E',&lt;/P&gt;&lt;P&gt;if(count({$&amp;lt;result_err_flag={'W'},temp_batch_id={'$(v_module1)'}&amp;gt;}result_err_flag)&amp;gt;0,'W',&lt;/P&gt;&lt;P&gt;only({&amp;lt;temp_batch_id={'$(v_module1)'}&amp;gt;}if(IsNull(result_err_flag),'P')))),&lt;/P&gt;&lt;P&gt;if(Value=2,if(count({&amp;lt;result_err_flag={'E'},temp_batch_id={'$(v_module1)','$(v_module2)','$(v_module3)'}&amp;gt;}result_err_flag)&amp;gt;0,'E',&lt;/P&gt;&lt;P&gt;if(count({&amp;lt;result_err_flag={'W'},temp_batch_id={'$(v_module1)','$(v_module2)','$(v_module3)'}&amp;gt;}result_err_flag)&amp;gt;0,'W',&lt;/P&gt;&lt;P&gt;only({&amp;lt;temp_batch_id={'$(v_module1)','$(v_module2)','$(v_module3)'}&amp;gt;}if(IsNull(result_err_flag),'P')))),&lt;/P&gt;&lt;P&gt;if(Value=3,if(count({&amp;lt;result_err_flag={'E'},temp_batch_id={'$(v_module1)','$(v_module2)','$(v_module3)','$(v_module4)','$(v_module5)'}&amp;gt;}result_err_flag)&amp;gt;0,'E',&lt;/P&gt;&lt;P&gt;if(count({&amp;lt;result_err_flag={'W'},temp_batch_id={'$(v_module1)','$(v_module2)','$(v_module3)','$(v_module4)','$(v_module5)'}&amp;gt;}result_err_flag)&amp;gt;0,'W',&lt;/P&gt;&lt;P&gt;only({&amp;lt;temp_batch_id={'$(v_module1)','$(v_module2)','$(v_module3)','$(v_module4)','$(v_module5)'}&amp;gt;}if(IsNull(result_err_flag),'P')))),&lt;/P&gt;&lt;P&gt;if(count({&amp;lt;result_err_flag={'E'}&amp;gt;}result_err_flag)&amp;gt;0,'E',&lt;/P&gt;&lt;P&gt;if(count({&amp;lt;result_err_flag={'W'}&amp;gt;}result_err_flag)&amp;gt;0,'W',&lt;/P&gt;&lt;P&gt;if(IsNull(result_err_flag),'P'))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_module variables are the last 5 temp_batch_id.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 11:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-inside-only-function/m-p/1257802#M863647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-02T11:10:41Z</dc:date>
    </item>
  </channel>
</rss>

