<?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: Code for Count Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Code-for-Count-Calculation/m-p/1166790#M379772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all "linked Lan" has a 0 value, You can use this expreession.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(distinct{&amp;lt;[Linked Lan]={"*0*"}&amp;gt;}SZ_APPLICATION_NO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now is ok in your example, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel del Valle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jul 2016 09:09:05 GMT</pubDate>
    <dc:creator>migueldelval</dc:creator>
    <dc:date>2016-07-04T09:09:05Z</dc:date>
    <item>
      <title>Code for Count Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Code-for-Count-Calculation/m-p/1166789#M379771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Users,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a scenario where in I want to count the number of sanction accounts for the month,&lt;/P&gt;&lt;P&gt;but if the product is ADDL_LOAN I need to check for Linked Lan if any Lan is found I will club the count with same basically whichever lan is found under&amp;nbsp; Linked lan of&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;ADDL_LOAN should not be counted ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="540"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="127"&gt;SZ_APPLICATION_NO&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="93"&gt;DT_DISB_DATE&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="136"&gt;SZ_PRODUCT_CODE&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="91"&gt;Linked Lan&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="93"&gt;Sanction Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;AHMHL16000201&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;31-05-2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;LAPSORP&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;AHMHL16000202&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;31-05-2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;HLSELLERBT&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;AHMHL16000203&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;31-05-2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;ADDL_LOAN&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;AHMHL16000202&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;AHMHL16000196&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;31-05-2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;HLRDYPURBD&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;AHMHL16000206&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;31-05-2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;ADDL_LOAN&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;AHMHL16000196&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;AHMHL16000144&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;23-05-2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;LAPSORP&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;AHMHL16000152&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;31-05-2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;HLRDYPURBD&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;AHMHL16000204&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;31-05-2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;ADDL_LOAN&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;AHMHL16000152&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Reagrds,&lt;/P&gt;&lt;P&gt;Rohit Yadav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 08:49:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code-for-Count-Calculation/m-p/1166789#M379771</guid>
      <dc:creator>rohitians</dc:creator>
      <dc:date>2016-07-04T08:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Code for Count Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Code-for-Count-Calculation/m-p/1166790#M379772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all "linked Lan" has a 0 value, You can use this expreession.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(distinct{&amp;lt;[Linked Lan]={"*0*"}&amp;gt;}SZ_APPLICATION_NO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now is ok in your example, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel del Valle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 09:09:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code-for-Count-Calculation/m-p/1166790#M379772</guid>
      <dc:creator>migueldelval</dc:creator>
      <dc:date>2016-07-04T09:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Code for Count Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Code-for-Count-Calculation/m-p/1166791#M379773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see if below expression helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;SZ_APPLICATION_NO=e({&amp;lt;SZ_APPLICATION_NO =p({&amp;lt;SZ_PRODUCT_CODE={'ADDL_LOAN'}&amp;gt;}[Linked Lan])&amp;gt;}SZ_APPLICATION_NO)&amp;gt;}SZ_APPLICATION_NO)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 09:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code-for-Count-Calculation/m-p/1166791#M379773</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-07-04T09:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Code for Count Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Code-for-Count-Calculation/m-p/1166792#M379774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution is partially correct the count is not coming right where there is no ADDL_LOAN or linked lan,&lt;/P&gt;&lt;P&gt;also Count for&amp;nbsp; Lan no&amp;nbsp; should only be avoided if it comes&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;in Linked Lan for &lt;/SPAN&gt;ADDL_Loan &lt;/P&gt;&lt;P&gt;Request you to help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 09:31:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code-for-Count-Calculation/m-p/1166792#M379774</guid>
      <dc:creator>rohitians</dc:creator>
      <dc:date>2016-07-04T09:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Code for Count Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Code-for-Count-Calculation/m-p/1166793#M379775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;SZ_PRODUCT_CODE&lt;/SPAN&gt;={'ADDL_LOAN'}&amp;gt;} &lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Len&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Trim&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Linked Lan]&lt;/SPAN&gt;)) = 0 &lt;SPAN style="color: #0000ff;"&gt;or&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Linked Lan]&lt;/SPAN&gt;='-',&lt;SPAN style="color: #800000;"&gt;SZ_PRODUCT_CODE&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 09:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code-for-Count-Calculation/m-p/1166793#M379775</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2016-07-04T09:34:58Z</dc:date>
    </item>
  </channel>
</rss>

