<?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 Set analysis: count fields based on other field selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-count-fields-based-on-other-field-selection/m-p/1242761#M862085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to everybody.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I explain you this big trouble:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a really big dataset with a lot data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After loading the script I have a really big table that has different fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The relevant for what I am not able to do and give me problems are the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BigTable:&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;DateA&lt;/P&gt;&lt;P&gt;TimeA&lt;/P&gt;&lt;P&gt;DateB&lt;/P&gt;&lt;P&gt;TypeOfDefect&lt;/P&gt;&lt;P&gt;...Other fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this table results after a join in the script between the followings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;DateA&lt;/P&gt;&lt;P&gt;TimeA&lt;/P&gt;&lt;P&gt;TypeOfProduct&lt;/P&gt;&lt;P&gt;...Other fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;DateB&lt;BR /&gt;TypeOfDefect&lt;/P&gt;&lt;P&gt;... Other Fields ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2 is a subset of Table 1 in terms of ID: i.e. all IDs in table 2 are also in Table 1 and not viceversa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After exhausting trials and errors, I could not be able to construct some table charts, using Set Analysis, doing the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When select one or more DateB, I need to count all IDs whose DateA is equal to DateB.&lt;/P&gt;&lt;P&gt;I explain better: DateB represents the date when a unit is classified as defective, while DateA is the date when the unit is subjected to process A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to count, for each TypeOfProduct and for each TypeOfDefect (in two different table charts of course), the number of defectives (i.e. when TypeOfDefect is not null)/the number of ID which was subjected to process A (i.e. I suppose count Time A or Date A).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with set analysis, but it was impossible for me to find a way to compute this, when I select as filter a DateB, I need that the second part of the ratio counts the IDs subjected to process A, but obviously this date must be DateA=DateB. The problem is DateB in null when the unit is not defective. So the result is that it counts only the A-processed which are defectives, not the good ones.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Given that it is a KPI ratio, I need for example, if I select DateB=12th January 2017, I need to count all the defectives defined in that date, divided by all the IDs subjected to process A on the 12th of Jan. 2017.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is really important.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Set analysis: count fields based on other field selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-count-fields-based-on-other-field-selection/m-p/1242761#M862085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to everybody.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I explain you this big trouble:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a really big dataset with a lot data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After loading the script I have a really big table that has different fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The relevant for what I am not able to do and give me problems are the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BigTable:&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;DateA&lt;/P&gt;&lt;P&gt;TimeA&lt;/P&gt;&lt;P&gt;DateB&lt;/P&gt;&lt;P&gt;TypeOfDefect&lt;/P&gt;&lt;P&gt;...Other fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this table results after a join in the script between the followings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;DateA&lt;/P&gt;&lt;P&gt;TimeA&lt;/P&gt;&lt;P&gt;TypeOfProduct&lt;/P&gt;&lt;P&gt;...Other fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;DateB&lt;BR /&gt;TypeOfDefect&lt;/P&gt;&lt;P&gt;... Other Fields ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2 is a subset of Table 1 in terms of ID: i.e. all IDs in table 2 are also in Table 1 and not viceversa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After exhausting trials and errors, I could not be able to construct some table charts, using Set Analysis, doing the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When select one or more DateB, I need to count all IDs whose DateA is equal to DateB.&lt;/P&gt;&lt;P&gt;I explain better: DateB represents the date when a unit is classified as defective, while DateA is the date when the unit is subjected to process A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to count, for each TypeOfProduct and for each TypeOfDefect (in two different table charts of course), the number of defectives (i.e. when TypeOfDefect is not null)/the number of ID which was subjected to process A (i.e. I suppose count Time A or Date A).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with set analysis, but it was impossible for me to find a way to compute this, when I select as filter a DateB, I need that the second part of the ratio counts the IDs subjected to process A, but obviously this date must be DateA=DateB. The problem is DateB in null when the unit is not defective. So the result is that it counts only the A-processed which are defectives, not the good ones.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Given that it is a KPI ratio, I need for example, if I select DateB=12th January 2017, I need to count all the defectives defined in that date, divided by all the IDs subjected to process A on the 12th of Jan. 2017.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is really important.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-count-fields-based-on-other-field-selection/m-p/1242761#M862085</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis: count fields based on other field selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-count-fields-based-on-other-field-selection/m-p/1242762#M862086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Emanuele&lt;/P&gt;&lt;P&gt;I find difficult to follow your situation.&lt;/P&gt;&lt;P&gt;Could you share your application or part of it after removing or reducing the data ?&lt;/P&gt;&lt;P&gt;Also would be helpful if you breakdown your problem into short problems and explain us here on what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jan 2017 17:49:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-count-fields-based-on-other-field-selection/m-p/1242762#M862086</guid>
      <dc:creator>girirajsinh</dc:creator>
      <dc:date>2017-01-14T17:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis: count fields based on other field selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-count-fields-based-on-other-field-selection/m-p/1242763#M862087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Emanuele&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may you should revisit your data model and demormalize your table into one fact table ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with Vaghela that the question is much broad and may you need to share a sample data with expected output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jan 2017 22:06:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-count-fields-based-on-other-field-selection/m-p/1242763#M862087</guid>
      <dc:creator>ziadm</dc:creator>
      <dc:date>2017-01-14T22:06:20Z</dc:date>
    </item>
  </channel>
</rss>

