<?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: Must I apply an intersection or maybe there's a better way? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Must-I-apply-an-intersection-or-maybe-there-s-a-better-way/m-p/1852936#M70431</link>
    <description>&lt;P&gt;Finally I solved it modifying my dataset:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#993366"&gt;&lt;STRONG&gt;Operations:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;*&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;Inline&lt;/FONT&gt; &lt;/STRONG&gt;[&lt;BR /&gt;RowNo,Date,Part,Operation,Id,Machine,NOKReason&lt;BR /&gt;1,'2021-09-17','AAAA','Operation1','000001','M1.1',&lt;BR /&gt;2,'2021-09-17','AAAB','Operation1','000002','M1.2',&lt;BR /&gt;3,'2021-09-17','AAAC','Operation1','000003','M1.1',&lt;BR /&gt;4,'2021-09-17','AAAA','Operation1','000004','M1.3',&lt;BR /&gt;5,'2021-09-17','AAAB','Operation1','000005','M1.2',&lt;BR /&gt;6,'2021-09-17','AAAC','Operation1','000006','M1.3',&lt;BR /&gt;7,'2021-09-17','AAAA','Operation2','000001','M2.1',&lt;BR /&gt;8,'2021-09-17','AAAB','Operation2','000002','M2.1','R1'&lt;BR /&gt;9,'2021-09-17','AAAC','Operation2','000003','M2.2','R1'&lt;BR /&gt;10,'2021-09-17','AAAA','Operation2','000005','M2.1',&lt;BR /&gt;11,'2021-09-18','AAAB','Operation2','000006','M2.2',&lt;BR /&gt;12,'2021-09-18','AAAC','Operation1','000007','M1.3',&lt;BR /&gt;13,'2021-09-17','AAAA','Operation3','000001','M3.1',&lt;BR /&gt;14,'2021-09-17','AAAB','Operation3','000002','M3.1',&lt;BR /&gt;15,'2021-09-17','AAAC','Operation3','000003','M3.1',&lt;BR /&gt;16,'2021-09-19','AAAA','Operation3','000005','M3.1','R2'&lt;BR /&gt;17,'2021-09-19','AAAB','Operation3','000006','M3.1','R2'&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;LEFT JOIN&lt;/STRONG&gt;&lt;/FONT&gt; (&lt;FONT color="#993366"&gt;&lt;STRONG&gt;Operations&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;LOAD&lt;/FONT&gt; &lt;/STRONG&gt;*&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;Inline&lt;/STRONG&gt; &lt;/FONT&gt;[&lt;BR /&gt;NOKReason,ReasonDescription,Operation_Source&lt;BR /&gt;'R1','Description 1','Operation1'&lt;BR /&gt;'R2','Description 2','Operation2'&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;LEFT JOIN&lt;/STRONG&gt;&lt;/FONT&gt; (&lt;FONT color="#993366"&gt;&lt;STRONG&gt;Operations&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;Id,&lt;BR /&gt;Operation_Source &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;AS&lt;/STRONG&gt;&lt;/FONT&gt; [Operation],&lt;BR /&gt;Operation &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;AS&lt;/STRONG&gt; &lt;/FONT&gt;[Operation NOK Detected],&lt;BR /&gt;[Date] &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;AS&lt;/STRONG&gt; &lt;/FONT&gt;[Operation NOK Date],&lt;BR /&gt;[Machine] &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;AS&lt;/STRONG&gt; &lt;/FONT&gt;[Operation NOK Machine]&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;RESIDENT&lt;/FONT&gt; &lt;/STRONG&gt;&lt;FONT color="#993366"&gt;&lt;STRONG&gt;Operations&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;WHERE&lt;/STRONG&gt; &lt;/FONT&gt;NOKReason &amp;lt;&amp;gt; &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;NULL&lt;/STRONG&gt;&lt;/FONT&gt;() ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I'm obtaining the same result than at the beginning and I can filter by machine without losing any row.&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47473" target="_self" aria-label="View Profile of micheledenardi" aria-describedby="userProfileCard-47473"&gt;&lt;SPAN class=""&gt;Micheledenardi&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;, sometimes you don't need to know how to do it else how&amp;nbsp; don't do it&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Oct 2021 08:45:37 GMT</pubDate>
    <dc:creator>LDR</dc:creator>
    <dc:date>2021-10-28T08:45:37Z</dc:date>
    <item>
      <title>Must I apply an intersection or maybe there's a better way?</title>
      <link>https://community.qlik.com/t5/App-Development/Must-I-apply-an-intersection-or-maybe-there-s-a-better-way/m-p/1852608#M70401</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;I'd like to share the goal I'm searching for:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;U&gt;Data Model:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/U&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LDR_0-1635343685788.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65403iCC6163EA34888AA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LDR_0-1635343685788.png" alt="LDR_0-1635343685788.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;U&gt;Data:&lt;/U&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT color="#993366"&gt;&lt;STRONG&gt;Operations:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;*&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;Inline&lt;/FONT&gt; &lt;/STRONG&gt;[&lt;BR /&gt;Date,Part,Operation,Id,Machine,NOKReason&lt;BR /&gt;'2021-09-17','AAAA','Operation1','000001','M1.1',&lt;BR /&gt;'2021-09-17','AAAB','Operation1','000002','M1.2',&lt;BR /&gt;'2021-09-17','AAAC','Operation1','000003','M1.1',&lt;BR /&gt;'2021-09-17','AAAA','Operation1','000004','M1.3',&lt;BR /&gt;'2021-09-17','AAAB','Operation1','000005','M1.2',&lt;BR /&gt;'2021-09-17','AAAC','Operation1','000006','M1.3',&lt;BR /&gt;'2021-09-17','AAAA','Operation2','000001','M2.1',&lt;BR /&gt;'2021-09-17','AAAB','Operation2','000002','M2.1','R1'&lt;BR /&gt;'2021-09-17','AAAC','Operation2','000003','M2.2','R1'&lt;BR /&gt;'2021-09-17','AAAA','Operation2','000005','M2.1',&lt;BR /&gt;'2021-09-18','AAAB','Operation2','000006','M2.2',&lt;BR /&gt;'2021-09-18','AAAC','Operation1','000007','M1.3',&lt;BR /&gt;'2021-09-17','AAAA','Operation3','000001','M3.1',&lt;BR /&gt;'2021-09-17','AAAB','Operation3','000002','M3.1',&lt;BR /&gt;'2021-09-17','AAAC','Operation3','000003','M3.1',&lt;BR /&gt;'2021-09-19','AAAA','Operation3','000005','M3.1','R2'&lt;BR /&gt;'2021-09-19','AAAB','Operation3','000006','M3.1','R2'&lt;BR /&gt;];&lt;/P&gt;
&lt;P class="lia-indent-padding-left-60px"&gt;&lt;STRONG&gt;&lt;FONT color="#993366"&gt;NOKReasons:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;LOAD&lt;/FONT&gt; &lt;/STRONG&gt;*&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;Inline&lt;/FONT&gt; &lt;/STRONG&gt;[&lt;BR /&gt;NOKReason,Operation_Source&lt;BR /&gt;'R1','Operation1'&lt;BR /&gt;'R2','Operation2'&lt;BR /&gt;];&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;U&gt;Tables description:&lt;/U&gt;&amp;nbsp;
&lt;UL&gt;
&lt;LI&gt;Operations: include one record for each "Id" and "Operation". Imagine you have a production line and in order to obtain the finish product each product must be processed from Operation 1 to 3. Each product is identified by the column "Id". If for some reason we detect that any "Id" is NOK we fullfil the column "NOKReason".&lt;/LI&gt;
&lt;LI&gt;NOKReasons: contains the operation where the fail was originated. This information is included in column "Operation_Source".&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;U&gt;Goal:&lt;/U&gt; I want to obtain al "Ids" where&amp;nbsp;&amp;lt;NOK_Source={'Operation1'}&amp;gt; and&amp;nbsp;&amp;lt;[Operation]={'Operation1'}&amp;gt;. Why I want that? because I need to know the date when these NOK Ids were processed for Operation1, and also the machine where they were processed, etc.. You know, we have noticed the error downstream and because we didn't detect it before it was an extra-cost for us.&lt;/LI&gt;
&lt;LI&gt;&lt;U&gt;How have I solved?&lt;/U&gt;
&lt;UL&gt;
&lt;LI&gt;NOK Ids with Operation_Source = 'Operation1':&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="lia-indent-padding-left-90px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LDR_1-1635344657984.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65407iAD85C46A8997BEFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="LDR_1-1635344657984.png" alt="LDR_1-1635344657984.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-90px"&gt;I want to know the ID , the date when they pass for the "Operation1" and the machine where it was processed.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-90px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LDR_4-1635344783373.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65411i4610C453854BE9DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LDR_4-1635344783373.png" alt="LDR_4-1635344783373.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-90px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LDR_3-1635344734878.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65410i720F9F9CF70C3386/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LDR_3-1635344734878.png" alt="LDR_3-1635344734878.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-90px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LDR_5-1635344830282.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65412i452D21B1B956BBE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LDR_5-1635344830282.png" alt="LDR_5-1635344830282.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-90px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LDR_6-1635344847377.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65413i67BA102D35DB201F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LDR_6-1635344847377.png" alt="LDR_6-1635344847377.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-90px"&gt;The solution I applied works for me till I select some Machine in the table. Let me show you:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-90px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LDR_7-1635344945917.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65414iA1AE2DE65B266D72/image-size/large?v=v2&amp;amp;px=999" role="button" title="LDR_7-1635344945917.png" alt="LDR_7-1635344945917.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;So, my question is: if I want to be able to apply filters by some of the previous columns, what I have to do????&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;I would solve it very fast using SQL but know I have to learn the Qlik way&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;Thanks a lot for your support.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 14:43:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Must-I-apply-an-intersection-or-maybe-there-s-a-better-way/m-p/1852608#M70401</guid>
      <dc:creator>LDR</dc:creator>
      <dc:date>2021-10-27T14:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Must I apply an intersection or maybe there's a better way?</title>
      <link>https://community.qlik.com/t5/App-Development/Must-I-apply-an-intersection-or-maybe-there-s-a-better-way/m-p/1852843#M70425</link>
      <description>&lt;P&gt;Good morining,&lt;/P&gt;
&lt;P&gt;since your tables are connected via "&lt;SPAN&gt;NOKReason" Qlik is using that field as key,&amp;nbsp; so if you try to count&amp;nbsp;"Ids" where&amp;nbsp;&amp;lt;NOK_Source={'Operation1'}&amp;gt; and&amp;nbsp;&amp;lt;[Operation]={'Operation1'}&amp;gt; the result will be 0.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In this case the expression will be:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count(Distinct {&amp;lt;Operation={'Operation1'},NOK_Source={'Operation_Source'}&amp;gt;}Id)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As soon as you select make selection on your calculated dimension "Machine" (calculated dimensions are not&amp;nbsp; best practice) the result will be 0 again for the same reason, there are no records on Operations connected with a NOKReason record.&lt;/P&gt;
&lt;P&gt;Using the expression you wrote the result is wrong because as you can see, NOKReason is empty,&amp;nbsp;this will cause a missing key to go on NOKReason table, so you'll not achieve your requirements:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-10-28 08_25_10-Window.png" style="width: 996px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65445iF1A0EF57C49A0D22/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-10-28 08_25_10-Window.png" alt="2021-10-28 08_25_10-Window.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You cannot make selections on previous columns, since you're using an union on your set analysis and the key you're using is not consistent.&lt;/P&gt;
&lt;P&gt;My approach to this issue probably would be to make your dataset consistent, fill the missing NOKReason in your Operation table, then use the expression i wrote.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check this solution and let me know:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Operations:
LOAD
	*,
    Part as [%Key Part]
Inline [
Date,Part,Operation,Id,Machine,NOKReasonOperation
2021-09-17,AAAA,Operation1,000001,M1.1,
2021-09-17,AAAB,Operation1,000002,M1.2,
2021-09-17,AAAC,Operation1,000003,M1.1,
2021-09-17,AAAA,Operation1,000004,M1.3,
2021-09-17,AAAB,Operation1,000005,M1.2,
2021-09-17,AAAC,Operation1,000006,M1.3,
2021-09-17,AAAA,Operation2,000001,M2.1,
2021-09-17,AAAB,Operation2,000002,M2.1,R1
2021-09-17,AAAC,Operation2,000003,M2.2,R1
2021-09-17,AAAA,Operation2,000005,M2.1,
2021-09-18,AAAB,Operation2,000006,M2.2,
2021-09-18,AAAC,Operation1,000007,M1.3,
2021-09-17,AAAA,Operation3,000001,M3.1,
2021-09-17,AAAB,Operation3,000002,M3.1,
2021-09-17,AAAC,Operation3,000003,M3.1,
2021-09-19,AAAA,Operation3,000005,M3.1,R2
2021-09-19,AAAB,Operation3,000006,M3.1,R2
];

NOKReasons:
LOAD *
Inline [
NOKReason,NOK_Source
R1,Operation1
R2,Operation2
];

MidTable:
Load Distinct
	[%Key Part],
    NOKReasonOperation as NOKReason
Resident Operations
	Where not isnull(NOKReasonOperation) And trim(NOKReasonOperation)&amp;lt;&amp;gt;'';&lt;/LI-CODE&gt;
&lt;P&gt;Then create a normal table with plain dimensions and the formula i wrote&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-10-28 09_02_16-Window.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65449iBED1AD8531807EAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-10-28 09_02_16-Window.png" alt="2021-10-28 09_02_16-Window.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 07:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Must-I-apply-an-intersection-or-maybe-there-s-a-better-way/m-p/1852843#M70425</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2021-10-28T07:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Must I apply an intersection or maybe there's a better way?</title>
      <link>https://community.qlik.com/t5/App-Development/Must-I-apply-an-intersection-or-maybe-there-s-a-better-way/m-p/1852908#M70429</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47473" target="_self" aria-label="View Profile of micheledenardi" aria-describedby="userProfileCard-47473"&gt;&lt;SPAN class=""&gt;Micheledenardi&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;First at all thanks for your answer.&lt;/P&gt;
&lt;P&gt;Ok, yes I totally agree with you regarding what is happening so according your experience the best way is completing my dataset via ETL. I thought it would be possible using formulas in the front-end.&lt;/P&gt;
&lt;P&gt;You know, according my data model and applying some easy SQL sentence it would be solved like that:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;SELECT&lt;/FONT&gt;&lt;/STRONG&gt; &lt;BR /&gt;ID,&lt;BR /&gt;Date,&lt;BR /&gt;Operation,&lt;BR /&gt;Machine,&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;SUM(&lt;/FONT&gt;&lt;/STRONG&gt;Qty&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt; &lt;/FONT&gt;Operations&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;WHERE&lt;/FONT&gt; &lt;/STRONG&gt;ID &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;IN (&lt;/STRONG&gt;&lt;STRONG&gt;SELECT&lt;/STRONG&gt; &lt;/FONT&gt;ID &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;FROM&lt;/FONT&gt; &lt;/STRONG&gt;Operations &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;WHERE&lt;/FONT&gt; &lt;/STRONG&gt;NOKReason = 'R1'&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;AND&lt;/STRONG&gt; &lt;/FONT&gt;Operation = 'Operation1' &lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;GROUP BY&lt;/STRONG&gt;&lt;/FONT&gt; ID,Date,Operation,Machine;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you're right I'm applying filters that are affecting my dataset (I knew that&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":pensive_face:"&gt;😔&lt;/span&gt;) ... anyway I will try to see how to transfor the data I need.&lt;/P&gt;
&lt;P&gt;I will send you my feedback when it will be solved.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 08:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Must-I-apply-an-intersection-or-maybe-there-s-a-better-way/m-p/1852908#M70429</guid>
      <dc:creator>LDR</dc:creator>
      <dc:date>2021-10-28T08:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Must I apply an intersection or maybe there's a better way?</title>
      <link>https://community.qlik.com/t5/App-Development/Must-I-apply-an-intersection-or-maybe-there-s-a-better-way/m-p/1852936#M70431</link>
      <description>&lt;P&gt;Finally I solved it modifying my dataset:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#993366"&gt;&lt;STRONG&gt;Operations:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;*&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;Inline&lt;/FONT&gt; &lt;/STRONG&gt;[&lt;BR /&gt;RowNo,Date,Part,Operation,Id,Machine,NOKReason&lt;BR /&gt;1,'2021-09-17','AAAA','Operation1','000001','M1.1',&lt;BR /&gt;2,'2021-09-17','AAAB','Operation1','000002','M1.2',&lt;BR /&gt;3,'2021-09-17','AAAC','Operation1','000003','M1.1',&lt;BR /&gt;4,'2021-09-17','AAAA','Operation1','000004','M1.3',&lt;BR /&gt;5,'2021-09-17','AAAB','Operation1','000005','M1.2',&lt;BR /&gt;6,'2021-09-17','AAAC','Operation1','000006','M1.3',&lt;BR /&gt;7,'2021-09-17','AAAA','Operation2','000001','M2.1',&lt;BR /&gt;8,'2021-09-17','AAAB','Operation2','000002','M2.1','R1'&lt;BR /&gt;9,'2021-09-17','AAAC','Operation2','000003','M2.2','R1'&lt;BR /&gt;10,'2021-09-17','AAAA','Operation2','000005','M2.1',&lt;BR /&gt;11,'2021-09-18','AAAB','Operation2','000006','M2.2',&lt;BR /&gt;12,'2021-09-18','AAAC','Operation1','000007','M1.3',&lt;BR /&gt;13,'2021-09-17','AAAA','Operation3','000001','M3.1',&lt;BR /&gt;14,'2021-09-17','AAAB','Operation3','000002','M3.1',&lt;BR /&gt;15,'2021-09-17','AAAC','Operation3','000003','M3.1',&lt;BR /&gt;16,'2021-09-19','AAAA','Operation3','000005','M3.1','R2'&lt;BR /&gt;17,'2021-09-19','AAAB','Operation3','000006','M3.1','R2'&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;LEFT JOIN&lt;/STRONG&gt;&lt;/FONT&gt; (&lt;FONT color="#993366"&gt;&lt;STRONG&gt;Operations&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;LOAD&lt;/FONT&gt; &lt;/STRONG&gt;*&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;Inline&lt;/STRONG&gt; &lt;/FONT&gt;[&lt;BR /&gt;NOKReason,ReasonDescription,Operation_Source&lt;BR /&gt;'R1','Description 1','Operation1'&lt;BR /&gt;'R2','Description 2','Operation2'&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;LEFT JOIN&lt;/STRONG&gt;&lt;/FONT&gt; (&lt;FONT color="#993366"&gt;&lt;STRONG&gt;Operations&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;Id,&lt;BR /&gt;Operation_Source &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;AS&lt;/STRONG&gt;&lt;/FONT&gt; [Operation],&lt;BR /&gt;Operation &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;AS&lt;/STRONG&gt; &lt;/FONT&gt;[Operation NOK Detected],&lt;BR /&gt;[Date] &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;AS&lt;/STRONG&gt; &lt;/FONT&gt;[Operation NOK Date],&lt;BR /&gt;[Machine] &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;AS&lt;/STRONG&gt; &lt;/FONT&gt;[Operation NOK Machine]&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;RESIDENT&lt;/FONT&gt; &lt;/STRONG&gt;&lt;FONT color="#993366"&gt;&lt;STRONG&gt;Operations&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;WHERE&lt;/STRONG&gt; &lt;/FONT&gt;NOKReason &amp;lt;&amp;gt; &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;NULL&lt;/STRONG&gt;&lt;/FONT&gt;() ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I'm obtaining the same result than at the beginning and I can filter by machine without losing any row.&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47473" target="_self" aria-label="View Profile of micheledenardi" aria-describedby="userProfileCard-47473"&gt;&lt;SPAN class=""&gt;Micheledenardi&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;, sometimes you don't need to know how to do it else how&amp;nbsp; don't do it&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 08:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Must-I-apply-an-intersection-or-maybe-there-s-a-better-way/m-p/1852936#M70431</guid>
      <dc:creator>LDR</dc:creator>
      <dc:date>2021-10-28T08:45:37Z</dc:date>
    </item>
  </channel>
</rss>

