<?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 Filter Cascading in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filter-Cascading/m-p/806787#M284823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my first ever QlikView application, so please be patient with me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calculating the ratio between the defective parts over the number of produced parts in a factory. My data is in one table and the columns are:&lt;/P&gt;&lt;P&gt;Metric, Month, Units,DefectReason&lt;/P&gt;&lt;P&gt;The metric column could be one of 3 values "Produced", "Defective", and "Scrap" and the DefectReason is always "NA" when the metric is "Produced". I want to create a line chart plotting the month on the x axis, and the ratio between the defective units (sum(units) Where Metric="Defective" ) and produced units (sum(units) Where Metric="Produced" )&amp;nbsp; on the y axis. I also want to see a line for each DefectReason. I am using the following set expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Units)/sum({&amp;lt;Metric={"Produced"},DefectReason=&amp;gt;}Units)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chart is automatically filtering the DefectReason to "NA" and I think the reason is because I specify "Produced" as my denominator, which always corresponds to a DefectReason of "NA". I basically want QlikView to make the shown defect reasons unaffected by the DefectReason associated with the denominator calculation .I tried to fix it by stating that the DefectReason could be any value as you can see in the denominator set expression, but that did not give me the required result. I am always getting 100% as my ratio across all the months for one defect reason; "NA".&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, 17 Jan 2015 00:55:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-01-17T00:55:35Z</dc:date>
    <item>
      <title>Filter Cascading</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Cascading/m-p/806787#M284823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my first ever QlikView application, so please be patient with me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calculating the ratio between the defective parts over the number of produced parts in a factory. My data is in one table and the columns are:&lt;/P&gt;&lt;P&gt;Metric, Month, Units,DefectReason&lt;/P&gt;&lt;P&gt;The metric column could be one of 3 values "Produced", "Defective", and "Scrap" and the DefectReason is always "NA" when the metric is "Produced". I want to create a line chart plotting the month on the x axis, and the ratio between the defective units (sum(units) Where Metric="Defective" ) and produced units (sum(units) Where Metric="Produced" )&amp;nbsp; on the y axis. I also want to see a line for each DefectReason. I am using the following set expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Units)/sum({&amp;lt;Metric={"Produced"},DefectReason=&amp;gt;}Units)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chart is automatically filtering the DefectReason to "NA" and I think the reason is because I specify "Produced" as my denominator, which always corresponds to a DefectReason of "NA". I basically want QlikView to make the shown defect reasons unaffected by the DefectReason associated with the denominator calculation .I tried to fix it by stating that the DefectReason could be any value as you can see in the denominator set expression, but that did not give me the required result. I am always getting 100% as my ratio across all the months for one defect reason; "NA".&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, 17 Jan 2015 00:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Cascading/m-p/806787#M284823</guid>
      <dc:creator />
      <dc:date>2015-01-17T00:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Cascading</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Cascading/m-p/806788#M284824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know if I understand your question...&lt;/P&gt;&lt;P&gt;I think you should create one expression for each DefectedReason like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Metric={'Defective'},DefectReason={'First_DefectedReason'}&amp;gt;}Units)/sum({&amp;lt;Metric={"Produced"}&amp;gt;}Units) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, you will have the ratio for each DefectedReason.&lt;/P&gt;&lt;P&gt;If it is not correct, please attach your data with the expected output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Elena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2015 10:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Cascading/m-p/806788#M284824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-17T10:01:26Z</dc:date>
    </item>
  </channel>
</rss>

