<?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: A union in chart's expression. Possible? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/A-union-in-chart-s-expression-Possible/m-p/654152#M475966</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps if you post your expressions we can see what you're trying to do and help find an answer. Posting an example document that demonstrates the problem would be even better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jun 2014 14:34:33 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-06-25T14:34:33Z</dc:date>
    <item>
      <title>A union in chart's expression. Possible?</title>
      <link>https://community.qlik.com/t5/QlikView/A-union-in-chart-s-expression-Possible/m-p/654151#M475965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 2 tables: 1st with companies (CID, manager, type) of 2 types distributed between managers and 2nd table with insurance contracts (InsID, CID, BegDate, EndDate) of 2 types. A type 1 company must have a valid type 1 contract. A type 2 company must have both type 1 and 2 valid contracts. I need to calculate the number of companies for each manager, that violate the rule on a given date (i.e IDs of companies that don't have active type 1 contract and IDs of type 2 companies that don't have active type 2 contract). But I needn't count a company twice if it is of type 2 and have neither type 1 contract nor type 2. In any other db I would make 2 separate queries, UNION them and then COUNT DISTINCT the result GROUP BY manager. But here... I've already made a separate expression for each query, but I need to join them. Can I make a union in expression? Maybe I can unite 2 set analysis operations in a single expression? Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 14:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-union-in-chart-s-expression-Possible/m-p/654151#M475965</guid>
      <dc:creator />
      <dc:date>2014-06-25T14:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: A union in chart's expression. Possible?</title>
      <link>https://community.qlik.com/t5/QlikView/A-union-in-chart-s-expression-Possible/m-p/654152#M475966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps if you post your expressions we can see what you're trying to do and help find an answer. Posting an example document that demonstrates the problem would be even better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 14:34:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-union-in-chart-s-expression-Possible/m-p/654152#M475966</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-25T14:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: A union in chart's expression. Possible?</title>
      <link>https://community.qlik.com/t5/QlikView/A-union-in-chart-s-expression-Possible/m-p/654153#M475967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check Set Operators Union. Two set of selections can be union operated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 14:43:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-union-in-chart-s-expression-Possible/m-p/654153#M475967</guid>
      <dc:creator>sudeepkm</dc:creator>
      <dc:date>2014-06-25T14:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: A union in chart's expression. Possible?</title>
      <link>https://community.qlik.com/t5/QlikView/A-union-in-chart-s-expression-Possible/m-p/654154#M475968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure. That's the example of what I have for now...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 21:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-union-in-chart-s-expression-Possible/m-p/654154#M475968</guid>
      <dc:creator />
      <dc:date>2014-06-25T21:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Re: A union in chart's expression. Possible?</title>
      <link>https://community.qlik.com/t5/QlikView/A-union-in-chart-s-expression-Possible/m-p/654155#M475969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks, I seem to figured out, how to apply it to my solution. Previously I had errors with setting brackets...&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14037648893199223" jivemacro_uid="_14037648893199223"&gt;
&lt;P&gt;Count({($&amp;lt;Type={2}&amp;gt;-&amp;lt;BegDate={"&amp;lt;=$(TargetDate)"},EndDate={"&amp;gt;=$(TargetDate)"},Itype={2}&amp;gt;)+($-&amp;lt;BegDate={"&amp;lt;=$(TargetDate)"},EndDate={"&amp;gt;=$(TargetDate)"},Itype={1}&amp;gt;)}Distinct CID)&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 06:43:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-union-in-chart-s-expression-Possible/m-p/654155#M475969</guid>
      <dc:creator />
      <dc:date>2014-06-26T06:43:08Z</dc:date>
    </item>
  </channel>
</rss>

