<?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: I figured out the code and got the wrong value. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/I-figured-out-the-code-and-got-the-wrong-value/m-p/2042309#M1222781</link>
    <description>&lt;P&gt;I try&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Count(distinct {&amp;lt;WorkOrder={"=Max(Value)&amp;lt;=Max and Min(Value)&amp;gt;=Min"}&amp;gt;} WorkOrder)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is Result&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sxbbb_0-1677463271592.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101398i62646EBF69C1B810/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sxbbb_0-1677463271592.png" alt="Sxbbb_0-1677463271592.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;And I Want&amp;nbsp; Out of Spce&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sxbbb_1-1677463970970.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101399i514864DE04A1DC01/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sxbbb_1-1677463970970.png" alt="Sxbbb_1-1677463970970.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I Try&amp;nbsp;I try&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Count(distinct {&amp;lt;WorkOrder={"=Max(Value)&amp;gt;=Max and Min(Value)&amp;lt;=Min"}&amp;gt;} WorkOrder)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Result&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sxbbb_2-1677464218663.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101400i96A5A1712EDEAA45/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sxbbb_2-1677464218663.png" alt="Sxbbb_2-1677464218663.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But Total With in spec Sum Total out of Spec not equal Total WorkOrder&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1618+964&amp;nbsp;not equal&amp;nbsp; 8996&amp;nbsp; ( Total WorkOrder )&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Translation"&gt;&lt;SPAN class="Y2IQFc"&gt;should be combined to equal Total WorkOrder&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 02:26:11 GMT</pubDate>
    <dc:creator>Sxbbb</dc:creator>
    <dc:date>2023-02-27T02:26:11Z</dc:date>
    <item>
      <title>I figured out the code and got the wrong value.</title>
      <link>https://community.qlik.com/t5/QlikView/I-figured-out-the-code-and-got-the-wrong-value/m-p/2040762#M1222706</link>
      <description>&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Translation"&gt;&lt;SPAN class="Y2IQFc"&gt;I want to create a table like this&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sxbbb_0-1677052853365.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101093iF0079ED8FC0AE5A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sxbbb_0-1677052853365.png" alt="Sxbbb_0-1677052853365.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Translation"&gt;&lt;SPAN class="Y2IQFc"&gt;Where 'With in spec' comes from Value&amp;gt;=Min and Value &amp;lt;=Max.&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Translation"&gt;&lt;SPAN class="Y2IQFc"&gt;Example 1 work order&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sxbbb_1-1677052853420.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101096i522CB1E146F77CD6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sxbbb_1-1677052853420.png" alt="Sxbbb_1-1677052853420.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Translation"&gt;&lt;SPAN class="Y2IQFc"&gt;I can do it but then the Data  is wrong.&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sxbbb_2-1677052853366.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101094i085AF8CBE8C81C5F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sxbbb_2-1677052853366.png" alt="Sxbbb_2-1677052853366.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sxbbb_3-1677052853421.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101097iA6204BC7FD622413/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sxbbb_3-1677052853421.png" alt="Sxbbb_3-1677052853421.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;used code of&amp;nbsp; 'With in spec'.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(Count(Aggr(if(Value&amp;gt;=Min and Value &amp;lt;= Max,1,0),Line,WorkOrder,SampleNo,Point))).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-figured-out-the-code-and-got-the-wrong-value/m-p/2040762#M1222706</guid>
      <dc:creator>Sxbbb</dc:creator>
      <dc:date>2024-11-15T21:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: I figured out the code and got the wrong value.</title>
      <link>https://community.qlik.com/t5/QlikView/I-figured-out-the-code-and-got-the-wrong-value/m-p/2040900#M1222707</link>
      <description>&lt;P&gt;I assume that a WorkOrder can have many Samples, and a Sample can have many Points. &lt;BR /&gt;And you want ALL OF THEM to be within specs in order for the WorkOrder to be WithinSpec?&lt;/P&gt;
&lt;P&gt;Try&lt;/P&gt;
&lt;P&gt;Count(distinct {&amp;lt;WorkOrder={"=Max(Value)&amp;lt;=Max and Min(Value)&amp;gt;=Min"}&amp;gt;} WorkOrder)&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;Count(distinct Aggr(if(Value&amp;gt;=Min and Value &amp;lt;= Max,WorkOrder),Line,WorkOrder,SampleNo,Point))&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 11:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-figured-out-the-code-and-got-the-wrong-value/m-p/2040900#M1222707</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2023-02-22T11:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: I figured out the code and got the wrong value.</title>
      <link>https://community.qlik.com/t5/QlikView/I-figured-out-the-code-and-got-the-wrong-value/m-p/2042309#M1222781</link>
      <description>&lt;P&gt;I try&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Count(distinct {&amp;lt;WorkOrder={"=Max(Value)&amp;lt;=Max and Min(Value)&amp;gt;=Min"}&amp;gt;} WorkOrder)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is Result&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sxbbb_0-1677463271592.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101398i62646EBF69C1B810/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sxbbb_0-1677463271592.png" alt="Sxbbb_0-1677463271592.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;And I Want&amp;nbsp; Out of Spce&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sxbbb_1-1677463970970.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101399i514864DE04A1DC01/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sxbbb_1-1677463970970.png" alt="Sxbbb_1-1677463970970.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I Try&amp;nbsp;I try&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Count(distinct {&amp;lt;WorkOrder={"=Max(Value)&amp;gt;=Max and Min(Value)&amp;lt;=Min"}&amp;gt;} WorkOrder)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Result&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sxbbb_2-1677464218663.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101400i96A5A1712EDEAA45/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sxbbb_2-1677464218663.png" alt="Sxbbb_2-1677464218663.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But Total With in spec Sum Total out of Spec not equal Total WorkOrder&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1618+964&amp;nbsp;not equal&amp;nbsp; 8996&amp;nbsp; ( Total WorkOrder )&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Translation"&gt;&lt;SPAN class="Y2IQFc"&gt;should be combined to equal Total WorkOrder&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 02:26:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-figured-out-the-code-and-got-the-wrong-value/m-p/2042309#M1222781</guid>
      <dc:creator>Sxbbb</dc:creator>
      <dc:date>2023-02-27T02:26:11Z</dc:date>
    </item>
  </channel>
</rss>

