<?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: Counting measures in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Counting-measures/m-p/1546938#M39372</link>
    <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;It seems to work eventhough I don't get the expected values. I'll check my data to find the mistake.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 20 Feb 2019 13:34:32 GMT</pubDate>
    <dc:creator>agg</dc:creator>
    <dc:date>2019-02-20T13:34:32Z</dc:date>
    <item>
      <title>Counting measures</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-measures/m-p/1546869#M39367</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm pretty new with QlikSense and I've been struggling with a pi chart for a few days. Probably it's easy to solve, but I haven't been able to find a proper solution.&lt;/P&gt;&lt;P&gt;Let's assume we have different Incident Families named A, B, C, D and so on. My dimension is Incident Families and my measure&amp;nbsp; is how many incidents belonging to each family have been reported. So I could do a count(). My problem is A, B, C have a similar criteria to count them &lt;STRONG&gt;Count(IdTable = {'14'}, IdItem = {'1','11'})Incidents&lt;/STRONG&gt;. However, D have a totally different criteria to count them &lt;STRONG&gt;Count(IdTable = {'19'}, IdDepartment = {'C'})Incidents&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I've been trying to solve it by using IF statements, but it doesn't seem to work.&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 12:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-measures/m-p/1546869#M39367</guid>
      <dc:creator>agg</dc:creator>
      <dc:date>2019-02-20T12:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Counting measures</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-measures/m-p/1546883#M39368</link>
      <description>&lt;PRE&gt;pick(match(Incidents,'D')+1,Count({&amp;lt;IdTable = {14}, IdItem = {1,11}&amp;gt;}Incidents ),Count({&amp;lt;IdTable = {19}, IdDepartment = {'C'}}&amp;gt;}Incidents ))&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Feb 2019 12:34:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-measures/m-p/1546883#M39368</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2019-02-20T12:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Counting measures</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-measures/m-p/1546886#M39369</link>
      <description>&lt;PRE&gt;Count({&amp;lt;IdTable = {14}, Incidents = {'A','B','C'} ,IdItem = {1,11}&amp;gt;}Incidents )+Count({&amp;lt;IdTable = {19}, Incidents = {'D'}, IdDepartment = {'C'}}&amp;gt;}Incidents )&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 12:36:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-measures/m-p/1546886#M39369</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2019-02-20T12:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Counting measures</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-measures/m-p/1546893#M39370</link>
      <description>&lt;P&gt;Different calculation logic for different dimension members make the expression complex and sometime even not feasible. Expression structure could be like:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;If(Match([Incident Families], 'A', 'B', 'C'),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Count({&amp;lt;IdTable={14}, IdItem={1,11}&amp;gt;} Incidents),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Count({&amp;lt;IdTable={19}, IdDepartment={'C'}&amp;gt;} Incidents)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 12:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-measures/m-p/1546893#M39370</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-02-20T12:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Counting measures</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-measures/m-p/1546901#M39371</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Your solutions is very similar to what I already tried and it doesn't seem to work as it's only one branch of the IF statement (I can't understand why).&amp;nbsp; It counts correctly all families but 'D'. If I change conditions, it counts properly 'D' but not A,B,C, ...&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 12:57:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-measures/m-p/1546901#M39371</guid>
      <dc:creator>agg</dc:creator>
      <dc:date>2019-02-20T12:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Counting measures</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-measures/m-p/1546938#M39372</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;It seems to work eventhough I don't get the expected values. I'll check my data to find the mistake.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 13:34:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-measures/m-p/1546938#M39372</guid>
      <dc:creator>agg</dc:creator>
      <dc:date>2019-02-20T13:34:32Z</dc:date>
    </item>
  </channel>
</rss>

