<?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 How to apply same filter in different context? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-apply-same-filter-in-different-context/m-p/1137116#M632850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table of PRODUCTs.&amp;nbsp; These PRODUCTs are sold by PARTNERs and are part of an ORDER_ITEMS, which (as expected) compose an ORDER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On occasions, these PRODUCTs are involved in EVENTs (say, "maintenance").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer wants to create an "event index" which is defined by #EVENTS per PRODUCT/ sum( sold PRODUCTs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One interesting analysis is to filter by PARTNER.&amp;nbsp; In other words, I would like to calculate which PARTNER generate less EVENTs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that this is creating a circular reference in my data model (as seen in the picture below), given the fact that I need to filter by PRODUCTs "which were sold" and PRODUCTs "which were involved in EVENTs".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created two PRODUCTs tables ("PRODUTOS"), and initially I have thought of applying set analysis (filter by product involved in events and calculate sum({&amp;lt;PRODUCT_ID={"$(=getFieldSelections(PRODUCT_EVENT_ID))"}&amp;gt;} SOLD_PRODUCTS) (something along these lines...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this approach seems TOO convoluted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I break this (potential) circular reference and apply this kind of filter in these two different contexts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any ideas and/or insights!&lt;/P&gt;&lt;P&gt;Paulo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2016 00:39:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-07T00:39:03Z</dc:date>
    <item>
      <title>How to apply same filter in different context?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-apply-same-filter-in-different-context/m-p/1137116#M632850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table of PRODUCTs.&amp;nbsp; These PRODUCTs are sold by PARTNERs and are part of an ORDER_ITEMS, which (as expected) compose an ORDER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On occasions, these PRODUCTs are involved in EVENTs (say, "maintenance").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer wants to create an "event index" which is defined by #EVENTS per PRODUCT/ sum( sold PRODUCTs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One interesting analysis is to filter by PARTNER.&amp;nbsp; In other words, I would like to calculate which PARTNER generate less EVENTs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that this is creating a circular reference in my data model (as seen in the picture below), given the fact that I need to filter by PRODUCTs "which were sold" and PRODUCTs "which were involved in EVENTs".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created two PRODUCTs tables ("PRODUTOS"), and initially I have thought of applying set analysis (filter by product involved in events and calculate sum({&amp;lt;PRODUCT_ID={"$(=getFieldSelections(PRODUCT_EVENT_ID))"}&amp;gt;} SOLD_PRODUCTS) (something along these lines...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this approach seems TOO convoluted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I break this (potential) circular reference and apply this kind of filter in these two different contexts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any ideas and/or insights!&lt;/P&gt;&lt;P&gt;Paulo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 00:39:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-apply-same-filter-in-different-context/m-p/1137116#M632850</guid>
      <dc:creator />
      <dc:date>2016-06-07T00:39:03Z</dc:date>
    </item>
  </channel>
</rss>

