<?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: formula in QlikView in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/formula-in-QlikView/m-p/2076276#M1223843</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/222774"&gt;@inam&lt;/a&gt;&amp;nbsp; you need to write the below expression&lt;/P&gt;
&lt;P&gt;=alt(if(count(&lt;STRONG&gt;File No.])=1,1,1/count([File No.])),0)&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 May 2023 14:03:53 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2023-05-25T14:03:53Z</dc:date>
    <item>
      <title>formula in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/formula-in-QlikView/m-p/2075881#M1223810</link>
      <description>&lt;P&gt;Hello Community &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ,&lt;/P&gt;
&lt;P&gt;I want to convert 1 excel formula in QlikView I Tried&amp;nbsp; many times but not getting value .&lt;/P&gt;
&lt;P&gt;Excel Formula :-&amp;nbsp; &lt;STRONG&gt;=IFERROR(1/COUNTIF([File No.],[@[File No.]]),0)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I Tried :- 1)&amp;nbsp; &lt;STRONG&gt;If(IsNull(Count({&amp;lt;[File No.] = {"$(= [File No.])"}&amp;gt;} [File No.])),0, 1/Count({&amp;lt;[File No.] = {"$(= [File No.])"}&amp;gt;} [File&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; &amp;nbsp; &amp;nbsp;No.])) as booking1,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2)&lt;STRONG&gt;&amp;nbsp;IF(COUNT([File No.]) &amp;gt; 0, 1 / COUNT({&amp;lt; [File No.] = {"$(= [File No.])"} &amp;gt;}), 0) as booking1,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3)&lt;STRONG&gt;IF(LEN([File No.]) = 16,IF(COUNT(DISTINCT [File No.]) = 1,1 / COUNT({&amp;lt;[File No.] = {'$(= [File No.])'}&amp;gt;} DISTINCT&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; [File No.]),0),0) as booking1,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my requirement:-&lt;/P&gt;
&lt;P&gt;In this &lt;STRONG&gt;[File No.]&lt;/STRONG&gt; field data coming duplicates also so for my requirement I want to satisfy 3 conditions&lt;/P&gt;
&lt;P&gt;1)if &lt;STRONG&gt;[File No.]&lt;/STRONG&gt;&amp;nbsp;are distinct then count =1,&lt;/P&gt;
&lt;P&gt;2) if Duplicates &lt;STRONG&gt;[File No.]&lt;/STRONG&gt; are present 1/count &lt;STRONG&gt;[File No.]&lt;/STRONG&gt; example 1/2=0.5,1/3=.0.3 ,1/4=.0.25....,&lt;/P&gt;
&lt;P&gt;3) if not present&amp;nbsp;&lt;STRONG&gt;[File No.]&lt;/STRONG&gt; then put 0,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 06:45:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/formula-in-QlikView/m-p/2075881#M1223810</guid>
      <dc:creator>inam</dc:creator>
      <dc:date>2023-05-25T06:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: formula in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/formula-in-QlikView/m-p/2076276#M1223843</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/222774"&gt;@inam&lt;/a&gt;&amp;nbsp; you need to write the below expression&lt;/P&gt;
&lt;P&gt;=alt(if(count(&lt;STRONG&gt;File No.])=1,1,1/count([File No.])),0)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 14:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/formula-in-QlikView/m-p/2076276#M1223843</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2023-05-25T14:03:53Z</dc:date>
    </item>
  </channel>
</rss>

