<?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: KPI Value - Count of all FamilyIDs that satisfy multiple conditions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/KPI-Value-Count-of-all-FamilyIDs-that-satisfy-multiple/m-p/1347049#M29884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with following expression :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Count({&amp;lt;NEW_FAMILYID = {"=Sum(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;{&amp;lt;CUSTOMER={'A'}, ASSISTED_CLIENT={'1'}&amp;gt;}&lt;/SPAN&gt;Field1)+Sum(&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;{&amp;lt;CUSTOMER={'A'}, ASSISTED_CLIENT={'1'}&amp;gt;}&lt;/STRONG&gt;Field2)&amp;gt;=50000"}, CUSTOMER={'A'}, ASSISTED_CLIENT={'1'}&amp;gt;} DISTINCT NEW_FAMILYID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Count({&amp;lt;NEW_FAMILYID = {"Sum(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;{&amp;lt;CUSTOMER={'A'}&amp;gt;}&lt;/SPAN&gt;Field1)+Sum(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;{&amp;lt;CUSTOMER={'A'}&amp;gt;}&lt;/SPAN&gt;Field2)&amp;gt;=50000"}, CUSTOMER={'A'}&amp;gt;} distinct NEW_FAMILYID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jul 2017 11:33:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-07-26T11:33:10Z</dc:date>
    <item>
      <title>KPI Value - Count of all FamilyIDs that satisfy multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-Value-Count-of-all-FamilyIDs-that-satisfy-multiple/m-p/1347042#M29877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been using QlikSense for a month now. I'm trying to build a KPI which is a division of 2 counts. The numerator is slightly complicated- the count of all distinct family IDs whose total sum of Field1 and Field2 is greater than or equal to 50k, who belong to customer 'A' and have been Assisted. The denominator is the count of all families that belong to customer 'A' and whose total sum of Field1 and Field 2 is greater than or equal to 50k. I've tried a few things but doesn't seem to work. The code I wrote is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;NEW_FAMILYID = {"=sum(Field1)+sum(Field2)&amp;gt;=50000"}, CUSTOMER={'A'}, ASSISTED_CLIENT={'1'} &amp;gt;} distinct NEW_FAMILYID)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;count({&amp;lt;NEW_FAMILYID = {"=sum(Field1)+sum(Field2)&amp;gt;=50000"}, CUSTOMER={'A'}&amp;gt;} distinct NEW_FAMILYID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing I tried:&lt;/P&gt;&lt;P&gt;count(&lt;SPAN style="font-size: 10pt;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;ASSISTED_CLIENT = {'1'},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;CUSTOMER = {'A'}&lt;SPAN style="font-size: 10pt;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;distinct If(Aggr(sum(Field1) + Sum(Field2),NEW_FAMILYID)&amp;gt;='50000', NEW_FAMILYID))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;COUNT({&amp;lt;CUSTOMER = {'A}&amp;gt;} DISTINCT If(Aggr(sum(Field1) + Sum(Field2),NEW_FAMILYID)&amp;gt;='50000', NEW_FAMILYID))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2021 15:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-Value-Count-of-all-FamilyIDs-that-satisfy-multiple/m-p/1347042#M29877</guid>
      <dc:creator />
      <dc:date>2021-12-22T15:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: KPI Value - Count of all FamilyIDs that satisfy multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-Value-Count-of-all-FamilyIDs-that-satisfy-multiple/m-p/1347043#M29878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you say it isn't working, what is the issue? Incorrect result or error? May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;NEW_FAMILYID = {"=Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;CUSTOMER={'A'}, ASSISTED_CLIENT={'1'}&amp;gt;}&lt;/SPAN&gt;Field1)+Sum(&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;{&amp;lt;CUSTOMER={'A'}, ASSISTED_CLIENT={'1'}&amp;gt;}&lt;/STRONG&gt;Field2)&amp;gt;=50000"}, CUSTOMER={'A'}, ASSISTED_CLIENT={'1'}&amp;gt;} DISTINCT NEW_FAMILYID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Count({&amp;lt;NEW_FAMILYID = {"Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;CUSTOMER={'A'}&amp;gt;}&lt;/SPAN&gt;Field1)+Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;CUSTOMER={'A'}&amp;gt;}&lt;/SPAN&gt;Field2)&amp;gt;=50000"}, CUSTOMER={'A'}&amp;gt;} distinct NEW_FAMILYID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 18:34:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-Value-Count-of-all-FamilyIDs-that-satisfy-multiple/m-p/1347043#M29878</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-21T18:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: KPI Value - Count of all FamilyIDs that satisfy multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-Value-Count-of-all-FamilyIDs-that-satisfy-multiple/m-p/1347044#M29879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previously, I used my formula to come up with a line chart where I tracked the KPI value across months. When I used the original formula that I posted about, I was getting all the data points on the chart. However, the data point values were wrong.&lt;/P&gt;&lt;P&gt;Say for January 2017, the actual value is 43.75%. On the chart, I can see something like 34%.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-07-21 at 12.25.42 PM.png" class="jive-image image-1" src="/legacyfs/online/171063_Screen Shot 2017-07-21 at 12.25.42 PM.png" style="height: 262px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;When I drill down using the Month and Year filter and select Jan 2017, the chart value then changes to 43.75%.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-07-21 at 12.27.05 PM.png" class="jive-image image-2" src="/legacyfs/online/171064_Screen Shot 2017-07-21 at 12.27.05 PM.png" style="height: 397px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;But in the chart where it is tracked through out the year, the value displayed is wrong. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I used your formula, the chart just blanks out. Nothing is displayed across the chart. The screenshot is as follows:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-07-21 at 12.21.47 PM.png" class="jive-image image-3" src="/legacyfs/online/171068_Screen Shot 2017-07-21 at 12.21.47 PM.png" style="height: 390px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 19:31:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-Value-Count-of-all-FamilyIDs-that-satisfy-multiple/m-p/1347044#M29879</guid>
      <dc:creator />
      <dc:date>2017-07-21T19:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: KPI Value - Count of all FamilyIDs that satisfy multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-Value-Count-of-all-FamilyIDs-that-satisfy-multiple/m-p/1347045#M29880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share your qvf file to look at?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 19:38:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-Value-Count-of-all-FamilyIDs-that-satisfy-multiple/m-p/1347045#M29880</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-21T19:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: KPI Value - Count of all FamilyIDs that satisfy multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-Value-Count-of-all-FamilyIDs-that-satisfy-multiple/m-p/1347046#M29881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately not. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2017 16:26:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-Value-Count-of-all-FamilyIDs-that-satisfy-multiple/m-p/1347046#M29881</guid>
      <dc:creator />
      <dc:date>2017-07-24T16:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: KPI Value - Count of all FamilyIDs that satisfy multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-Value-Count-of-all-FamilyIDs-that-satisfy-multiple/m-p/1347047#M29882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried creating additional fields in your load script and then using those?&amp;nbsp; If that is possible, it has made a difference with some of my visualizations to put the complicated logic in the load to create additional fields or variables and then use those in my charts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2017 18:48:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-Value-Count-of-all-FamilyIDs-that-satisfy-multiple/m-p/1347047#M29882</guid>
      <dc:creator>mjtaft2017</dc:creator>
      <dc:date>2017-07-24T18:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: KPI Value - Count of all FamilyIDs that satisfy multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-Value-Count-of-all-FamilyIDs-that-satisfy-multiple/m-p/1347048#M29883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mock up some data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2017 23:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-Value-Count-of-all-FamilyIDs-that-satisfy-multiple/m-p/1347048#M29883</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-24T23:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: KPI Value - Count of all FamilyIDs that satisfy multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-Value-Count-of-all-FamilyIDs-that-satisfy-multiple/m-p/1347049#M29884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with following expression :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Count({&amp;lt;NEW_FAMILYID = {"=Sum(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;{&amp;lt;CUSTOMER={'A'}, ASSISTED_CLIENT={'1'}&amp;gt;}&lt;/SPAN&gt;Field1)+Sum(&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;{&amp;lt;CUSTOMER={'A'}, ASSISTED_CLIENT={'1'}&amp;gt;}&lt;/STRONG&gt;Field2)&amp;gt;=50000"}, CUSTOMER={'A'}, ASSISTED_CLIENT={'1'}&amp;gt;} DISTINCT NEW_FAMILYID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Count({&amp;lt;NEW_FAMILYID = {"Sum(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;{&amp;lt;CUSTOMER={'A'}&amp;gt;}&lt;/SPAN&gt;Field1)+Sum(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;{&amp;lt;CUSTOMER={'A'}&amp;gt;}&lt;/SPAN&gt;Field2)&amp;gt;=50000"}, CUSTOMER={'A'}&amp;gt;} distinct NEW_FAMILYID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 11:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-Value-Count-of-all-FamilyIDs-that-satisfy-multiple/m-p/1347049#M29884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-26T11:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: KPI Value - Count of all FamilyIDs that satisfy multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-Value-Count-of-all-FamilyIDs-that-satisfy-multiple/m-p/1347050#M29885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is giving the same output as Sunny's. The entire chart just blanks out.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-07-26 at 11.12.37 AM.png" class="jive-image image-1" src="/legacyfs/online/171501_Screen Shot 2017-07-26 at 11.12.37 AM.png" style="height: 228px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 18:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-Value-Count-of-all-FamilyIDs-that-satisfy-multiple/m-p/1347050#M29885</guid>
      <dc:creator />
      <dc:date>2017-07-26T18:13:14Z</dc:date>
    </item>
  </channel>
</rss>

