<?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 of Non frequent Location in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-of-Non-frequent-Location/m-p/2021096#M84299</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;For point 1, try with :&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sum(aggr(if(sum(Flag)=0,1,0),Location))&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 02 Jan 2023 15:57:26 GMT</pubDate>
    <dc:creator>sergio0592</dc:creator>
    <dc:date>2023-01-02T15:57:26Z</dc:date>
    <item>
      <title>Count of Non frequent Location</title>
      <link>https://community.qlik.com/t5/App-Development/Count-of-Non-frequent-Location/m-p/2020976#M84287</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;My table in Qlik Sense app is as below:&lt;/P&gt;
&lt;TABLE border="1" width="75%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;&lt;STRONG&gt;Location&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;&lt;STRONG&gt;Flag&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;AA&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;3/4/2022&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;AA&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;4/4/2022&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;AA&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;5/4/2022&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;AA&lt;/TD&gt;
&lt;TD width="25%"&gt;6/4/2022&lt;/TD&gt;
&lt;TD width="25%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;BB&lt;/TD&gt;
&lt;TD width="25%"&gt;3/4/2022&lt;/TD&gt;
&lt;TD width="25%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;BB&lt;/TD&gt;
&lt;TD width="25%"&gt;4/4/2022&lt;/TD&gt;
&lt;TD width="25%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;BB&lt;/TD&gt;
&lt;TD width="25%"&gt;5/4/2022&lt;/TD&gt;
&lt;TD width="25%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;BB&lt;/TD&gt;
&lt;TD width="25%"&gt;6/4/2022&lt;/TD&gt;
&lt;TD width="25%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;CC&lt;/TD&gt;
&lt;TD width="25%"&gt;3/4/2022&lt;/TD&gt;
&lt;TD width="25%"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;CC&lt;/TD&gt;
&lt;TD width="25%"&gt;4/4/2022&lt;/TD&gt;
&lt;TD width="25%"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;CC&lt;/TD&gt;
&lt;TD width="25%"&gt;5/4/2022&lt;/TD&gt;
&lt;TD width="25%"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;CC&lt;/TD&gt;
&lt;TD width="25%"&gt;6/4/2022&lt;/TD&gt;
&lt;TD width="25%"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The expected output is to add a coulumn to the right of Flag column with Count of distinct locations in these 4 days which are not having atleast having one Flag=1 and also show the Pie Chart with Location and dimension and Measure as this Count. In this example expected to count Location is 1 as C only satisfies this condition.&lt;/P&gt;
&lt;P&gt;Looking for the set analysis expression which would solve this. Furhter complcation is that the date range is derived by a variable which will define the number of days in the date range, like 4 days, 5 days, 10 days.&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Suhas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 02:46:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-of-Non-frequent-Location/m-p/2020976#M84287</guid>
      <dc:creator>suhasarchak</dc:creator>
      <dc:date>2023-01-02T02:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Non frequent Location</title>
      <link>https://community.qlik.com/t5/App-Development/Count-of-Non-frequent-Location/m-p/2021096#M84299</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;For point 1, try with :&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sum(aggr(if(sum(Flag)=0,1,0),Location))&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 02 Jan 2023 15:57:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-of-Non-frequent-Location/m-p/2021096#M84299</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2023-01-02T15:57:26Z</dc:date>
    </item>
  </channel>
</rss>

