<?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 count with condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-with-condition/m-p/165572#M37831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a database of measured data and want to calculate Cp and Cpk - values and count critical values (value&amp;lt;1.33)&lt;/P&gt;&lt;P&gt;i have different parts ("TKZ") with different features ("M_NR") with multiple measured data ("value") for every fearure and upper and lower tolerances ("U_TOL" &amp;amp; "L_TOL") for the features&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;CP = (U_TOL-L_TOL) / (6 * stdev(value))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;it is no problem to list CP with M_NR as dimension -&amp;gt; i get the cp-value for every feature&lt;/P&gt;&lt;P&gt;now my problem is to count the number of cp-values that are lower then 1.33&lt;/P&gt;&lt;P&gt;i tried: with TKZ as dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;count( if [ {(U_TOL-L_TOL)/(6*stdev(value)}&amp;lt;1.33 , M_NR] )&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;i also tried to load it in the script.. but its always the problem to connect the values with the features..&lt;/P&gt;&lt;P&gt;the formula always calculates the "stdev(value)" above all the values from every feature and not only for the selected..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Aug 2009 16:21:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-08-25T16:21:28Z</dc:date>
    <item>
      <title>count with condition</title>
      <link>https://community.qlik.com/t5/QlikView/count-with-condition/m-p/165572#M37831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a database of measured data and want to calculate Cp and Cpk - values and count critical values (value&amp;lt;1.33)&lt;/P&gt;&lt;P&gt;i have different parts ("TKZ") with different features ("M_NR") with multiple measured data ("value") for every fearure and upper and lower tolerances ("U_TOL" &amp;amp; "L_TOL") for the features&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;CP = (U_TOL-L_TOL) / (6 * stdev(value))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;it is no problem to list CP with M_NR as dimension -&amp;gt; i get the cp-value for every feature&lt;/P&gt;&lt;P&gt;now my problem is to count the number of cp-values that are lower then 1.33&lt;/P&gt;&lt;P&gt;i tried: with TKZ as dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;count( if [ {(U_TOL-L_TOL)/(6*stdev(value)}&amp;lt;1.33 , M_NR] )&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;i also tried to load it in the script.. but its always the problem to connect the values with the features..&lt;/P&gt;&lt;P&gt;the formula always calculates the "stdev(value)" above all the values from every feature and not only for the selected..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 16:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-with-condition/m-p/165572#M37831</guid>
      <dc:creator />
      <dc:date>2009-08-25T16:21:28Z</dc:date>
    </item>
    <item>
      <title>AW:count with condition</title>
      <link>https://community.qlik.com/t5/QlikView/count-with-condition/m-p/165573#M37832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;try this:&lt;/PRE&gt;&lt;PRE&gt;if( (U_TOL-L_TOL)/(6*stdev(value)&amp;lt;1.33, count(M_NR), 0)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 17:03:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-with-condition/m-p/165573#M37832</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2009-08-25T17:03:32Z</dc:date>
    </item>
    <item>
      <title>count with condition</title>
      <link>https://community.qlik.com/t5/QlikView/count-with-condition/m-p/165574#M37833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum( if( (U_TOL-L_TOL)/(6*stdev(value)) &amp;lt; 1.33, 1, 0) )&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 17:29:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-with-condition/m-p/165574#M37833</guid>
      <dc:creator>amit_shetty78</dc:creator>
      <dc:date>2009-08-25T17:29:32Z</dc:date>
    </item>
    <item>
      <title>count with condition</title>
      <link>https://community.qlik.com/t5/QlikView/count-with-condition/m-p/165575#M37834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry but both suggestions wont work..&lt;/P&gt;&lt;P&gt;the problem is that U_TOL, L_TOL and value exsist for a lot of features and parts..&lt;/P&gt;&lt;P&gt;and when i make a table with TKZ as first dimension and the formula as second column it is not connected to M_NR, but when i take M_NR also as dimension i get a "1" in every row..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 18:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-with-condition/m-p/165575#M37834</guid>
      <dc:creator />
      <dc:date>2009-08-25T18:20:57Z</dc:date>
    </item>
    <item>
      <title>AW:Re: count with condition</title>
      <link>https://community.qlik.com/t5/QlikView/count-with-condition/m-p/165576#M37835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then this is a data model issue. You need a fact table with a key of every dimension (star schema). With this structure you can easily aggregate over dimension hierarchies.&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 18:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-with-condition/m-p/165576#M37835</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2009-08-25T18:27:13Z</dc:date>
    </item>
    <item>
      <title>count with condition</title>
      <link>https://community.qlik.com/t5/QlikView/count-with-condition/m-p/165577#M37836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i found the answer for my problem:&lt;/P&gt;&lt;P&gt;it works with the aggr( ) funktion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;count( if( aggr( (U_TOL-L_TOL) / (6*stdev(value) ), TKZ, M_NR) &amp;gt; 1.33, M_NR ) )&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 18:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-with-condition/m-p/165577#M37836</guid>
      <dc:creator />
      <dc:date>2009-08-26T18:44:55Z</dc:date>
    </item>
  </channel>
</rss>

