<?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</title>
    <link>https://community.qlik.com/t5/QlikView/Formula/m-p/1720226#M723259</link>
    <description>&lt;P&gt;this should help&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=if(
   if(Count(DISTINCT Department)=0, //0 Departments, then
       Count(DISTINCT [Sub Dept]),  //count distinct sub department, else
         Count(DISTINCT Department) //count distinct department
    )=1                             //check if result of inner if 1, then
      ,1                            //1, else 
       ,0)                          //0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jun 2020 05:44:59 GMT</pubDate>
    <dc:creator>zhadrakas</dc:creator>
    <dc:date>2020-06-19T05:44:59Z</dc:date>
    <item>
      <title>Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Formula/m-p/1720208#M723257</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Can please someone explain me&amp;nbsp; how does this below formula works ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if(if(Count(DISTINCT Department)=0,Count(DISTINCT [Sub Dept]),Count(DISTINCT Department))=1,1,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula/m-p/1720208#M723257</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Formula/m-p/1720226#M723259</link>
      <description>&lt;P&gt;this should help&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=if(
   if(Count(DISTINCT Department)=0, //0 Departments, then
       Count(DISTINCT [Sub Dept]),  //count distinct sub department, else
         Count(DISTINCT Department) //count distinct department
    )=1                             //check if result of inner if 1, then
      ,1                            //1, else 
       ,0)                          //0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 05:44:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula/m-p/1720226#M723259</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2020-06-19T05:44:59Z</dc:date>
    </item>
  </channel>
</rss>

