<?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: Set analysis - intersection doesn't give the desired result in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-intersection-doesn-t-give-the-desired-result/m-p/2135505#M1224800</link>
    <description>&lt;P&gt;argh. sorry.. true;&lt;/P&gt;
&lt;P&gt;something the hated if's should help&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sum(aggr(if(Count({&amp;lt;[Activity]={'Registration'}&amp;gt;}distinct [%_user_id])&amp;gt;0 and count({&amp;lt;[Activity]={'Payment', 'Cost'}&amp;gt;}distinct [%_user_id])&amp;gt;0,1,0),[%_user_id],[Fact Date]))&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikaelsc_0-1699373825546.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119509i16FB5C010AD90EE1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikaelsc_0-1699373825546.png" alt="mikaelsc_0-1699373825546.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2023 16:17:17 GMT</pubDate>
    <dc:creator>mikaelsc</dc:creator>
    <dc:date>2023-11-07T16:17:17Z</dc:date>
    <item>
      <title>Set analysis - intersection doesn't give the desired result</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-intersection-doesn-t-give-the-desired-result/m-p/2135114#M1224792</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;There is the following information (please only look at what is in the red rectangles, the rest is irrelevant):&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RoyBatty_0-1699299161908.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119429i253E420DBD5AC1B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RoyBatty_0-1699299161908.png" alt="RoyBatty_0-1699299161908.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;There is a dimension "&lt;STRONG&gt;MonthYear&lt;/STRONG&gt;" and two measures: "&lt;STRONG&gt;E&lt;/STRONG&gt;" and "&lt;STRONG&gt;N&lt;/STRONG&gt;".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;&lt;STRONG&gt;E&lt;/STRONG&gt; is the number of distinct users who had &lt;EM&gt;Payment&lt;/EM&gt; or &lt;EM&gt;Cost&lt;/EM&gt; during &lt;STRONG&gt;MonthYear&lt;/STRONG&gt;, and for that I use the following expression:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#003366"&gt;&lt;STRONG&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Count({&amp;lt;[Standard Activity Period]={'Y'}, [Activity]={'Payment', 'Cost'}&amp;gt;} distinct [%_user_id])&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;and it works fine. So, in the example from the picture, for "Dec 2022" only 2 users ("John Doe" and "Mike Smith") had balance change (&lt;EM&gt;Payment&lt;/EM&gt; and/or &lt;EM&gt;Cost&lt;/EM&gt;).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;However, for &lt;STRONG&gt;N&lt;/STRONG&gt; I am not sure how to write the expression.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;&lt;STRONG&gt;N&lt;/STRONG&gt; is the number of users who &lt;EM&gt;Registered&lt;/EM&gt; during the &lt;STRONG&gt;MonthYear&lt;/STRONG&gt; AND who also had a &lt;EM&gt;Payment&lt;/EM&gt; or &lt;EM&gt;Cost&lt;/EM&gt; during that same &lt;STRONG&gt;MonthYear&lt;/STRONG&gt;. So, in the example from the picture, for "Dec 2022" it should be &lt;STRONG&gt;1 &lt;/STRONG&gt;(only "Mike Smith"). &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;I tried using the following expression: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#800000"&gt;&lt;STRONG&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Count({&amp;lt;[Standard Activity Period]={'Y'}, [Activity]={'Registration'}&amp;gt;*&amp;lt;[Standard Activity Period]={'Y'}, [Activity]={'Payment', 'Cost'}&amp;gt;} distinct [%_user_id])&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;but it doesn't work (it returns 0 instead of 1 for the case above). My "logic" with that expression is: &lt;BR /&gt;Count (INTERSECTION of users who &lt;EM&gt;Registered&lt;/EM&gt; AND users who had &lt;EM&gt;Payment&lt;/EM&gt; or &lt;EM&gt;Cost&lt;/EM&gt;) &lt;BR /&gt;- but apparently it doesn't work. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Do you maybe know how I could solve this, how the expression should look?&lt;/SPAN&gt;&lt;/SPAN&gt;&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;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 20:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-intersection-doesn-t-give-the-desired-result/m-p/2135114#M1224792</guid>
      <dc:creator>RoyBatty</dc:creator>
      <dc:date>2023-11-06T20:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - intersection doesn't give the desired result</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-intersection-doesn-t-give-the-desired-result/m-p/2135118#M1224793</link>
      <description>&lt;P&gt;i think your intersection is not really an intersection. you are basically saying give me the intersection of the factIDs that are registrations and activity's at the same time.&lt;/P&gt;
&lt;P&gt;try something like: (have fun with enquoting what needs to be enquoted)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;count(distinct {&amp;lt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;user_id = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;{"=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Count({&amp;lt;[Standard Activity Period]={'Y'}, [Activity]={'Registration'}&amp;gt;}distinct [%&lt;FONT color="#00FF00"&gt;_user_id&lt;/FONT&gt;])&amp;gt;0"}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;*&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;{"=count(&amp;lt;[Standard Activity Period]={'Y'}, [Activity]={'Payment', 'Cost'}&amp;gt;}distinct [%&lt;FONT color="#00FF00"&gt;_user_id&lt;/FONT&gt;])&amp;gt;0"}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;user_id&lt;/FONT&gt;)&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;i guess replacing the green &lt;FONT color="#00FF00"&gt;user_id&lt;/FONT&gt; by %factID would make it easier to read/understand&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;(c&lt;FONT color="#FF6600"&gt;ounting the number of user_ids&lt;/FONT&gt; that have &lt;FONT color="#00FF00"&gt;a &amp;gt;0 Registration&lt;/FONT&gt; and&lt;FONT color="#00FF00"&gt; a &amp;gt;0 number of activity's&lt;/FONT&gt;)&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 20:24:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-intersection-doesn-t-give-the-desired-result/m-p/2135118#M1224793</guid>
      <dc:creator>mikaelsc</dc:creator>
      <dc:date>2023-11-06T20:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - intersection doesn't give the desired result</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-intersection-doesn-t-give-the-desired-result/m-p/2135148#M1224794</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49570"&gt;@mikaelsc&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;I tried that expression but editor was reporting "Error in expression", and I guess that's why you wrote to enquote what needs to be enquoted. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;I'm not sure if I understand that expression, I guess it counts that new &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;user_id&lt;/STRONG&gt;&lt;/FONT&gt; instead of &lt;EM&gt;%_user_id&lt;/EM&gt;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RoyBatty_0-1699311403890.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119430iCCC1F84FB7816A74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RoyBatty_0-1699311403890.png" alt="RoyBatty_0-1699311403890.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;so by saying &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;user_id=&lt;/STRONG&gt;&lt;/FONT&gt; we are basically setting a new "variable" &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;user_id&lt;/STRONG&gt;&lt;/FONT&gt; that will contain &lt;EM&gt;%_user_id&lt;/EM&gt;s that meet the stated criteria that are specified after "=":&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RoyBatty_1-1699311562248.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119431iF90ECDC282CFD25E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RoyBatty_1-1699311562248.png" alt="RoyBatty_1-1699311562248.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Anyway,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; since Qlik editor was reporting "Error in expression", I enqouted &lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;user_id&lt;/FONT&gt;&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RoyBatty_2-1699311660994.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119432i71BBDA80A9A51B59/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RoyBatty_2-1699311660994.png" alt="RoyBatty_2-1699311660994.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;but it still doesn't work properly. &lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;It seems that it only counts the number of registered users OR it simply always returns the number &lt;STRONG&gt;1&lt;/STRONG&gt; (not sure which of the two). &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RoyBatty_4-1699312024689.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119434iEE07C73790596BA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RoyBatty_4-1699312024689.png" alt="RoyBatty_4-1699312024689.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, for &lt;EM&gt;Nov 2022&lt;/EM&gt;, &lt;STRONG&gt;N&lt;/STRONG&gt; should be &lt;STRONG&gt;0&lt;/STRONG&gt;&amp;nbsp; but it shows &lt;STRONG&gt;1&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RoyBatty_3-1699311880013.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119433i1451A296EEB0A93F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RoyBatty_3-1699311880013.png" alt="RoyBatty_3-1699311880013.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 23:08:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-intersection-doesn-t-give-the-desired-result/m-p/2135148#M1224794</guid>
      <dc:creator>RoyBatty</dc:creator>
      <dc:date>2023-11-06T23:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - intersection doesn't give the desired result</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-intersection-doesn-t-give-the-desired-result/m-p/2135365#M1224797</link>
      <description>&lt;P&gt;I think it's not solvable with a set analysis - regardless how an intersection is attempted because the queried states belong to different records and therefore the AND connection between them could be never return a TRUE.&lt;/P&gt;
&lt;P&gt;This means a multi-step approach will be needed - maybe similar to the suggestion from&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49570"&gt;@mikaelsc&lt;/a&gt;&amp;nbsp;but simpler and more efficient would be it not to apply them as if-loop within the set analysis else as boolean condition against the origin expression - maybe something in this way (simplified by skipping not relevant conditions):&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Count({&amp;lt;[Activity]={'Payment', 'Cost'}&amp;gt;} distinct [%_user_id])&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;*&amp;nbsp;&lt;BR /&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Count({&amp;lt;[Activity]={'Registration'}&amp;gt;} distinct [Activity])&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Beside of this you will probably need some more steps because the above will only work within the appropriate dimensionality which seems not be wanted because you showed the results on a MonthYear level. This means the required dimensionality must be added to the expression, for example like:&lt;/P&gt;
&lt;P&gt;sum(aggr(&lt;BR /&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Count({&amp;lt;[Activity]={'Payment', 'Cost'}&amp;gt;} distinct [%_user_id])&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;*&amp;nbsp;&lt;BR /&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Count({&amp;lt;[Activity]={'Registration'}&amp;gt;} distinct [Activity]),&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;[%_user_id], MonthYear))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 12:19:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-intersection-doesn-t-give-the-desired-result/m-p/2135365#M1224797</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-11-07T12:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - intersection doesn't give the desired result</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-intersection-doesn-t-give-the-desired-result/m-p/2135397#M1224799</link>
      <description>&lt;P&gt;Maybe something like this (your intersection cannot work as registration and payment/cash are not on the same rows):&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Count({&amp;lt;[Standard Activity Period]={'Y'}, [Activity]={'Payment', 'Cost'},[%_user_id]=p({&amp;lt;[Standard Activity Period]={'Y'}, [Activity]={'Registration'}&amp;gt;} [%_user_id])&amp;gt;} distinct [%_user_id])&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 13:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-intersection-doesn-t-give-the-desired-result/m-p/2135397#M1224799</guid>
      <dc:creator>vincent_ardiet_</dc:creator>
      <dc:date>2023-11-07T13:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - intersection doesn't give the desired result</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-intersection-doesn-t-give-the-desired-result/m-p/2135505#M1224800</link>
      <description>&lt;P&gt;argh. sorry.. true;&lt;/P&gt;
&lt;P&gt;something the hated if's should help&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sum(aggr(if(Count({&amp;lt;[Activity]={'Registration'}&amp;gt;}distinct [%_user_id])&amp;gt;0 and count({&amp;lt;[Activity]={'Payment', 'Cost'}&amp;gt;}distinct [%_user_id])&amp;gt;0,1,0),[%_user_id],[Fact Date]))&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikaelsc_0-1699373825546.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119509i16FB5C010AD90EE1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikaelsc_0-1699373825546.png" alt="mikaelsc_0-1699373825546.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 16:17:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-intersection-doesn-t-give-the-desired-result/m-p/2135505#M1224800</guid>
      <dc:creator>mikaelsc</dc:creator>
      <dc:date>2023-11-07T16:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - intersection doesn't give the desired result</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-intersection-doesn-t-give-the-desired-result/m-p/2135582#M1224803</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49570"&gt;@mikaelsc&lt;/a&gt; !&lt;/P&gt;
&lt;P&gt;So, in my case instead of [Fact Date] at the end it would be &lt;STRONG&gt;MonthYear&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;sum(&lt;BR /&gt;&amp;nbsp;&amp;nbsp; aggr(&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; if(&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; Count({&amp;lt;[Standard Activity Period]={'Y'}, [Activity]={'Registration'}&amp;gt;} distinct [%_user_id]) &amp;gt; 0 and count({&amp;lt;[Standard Activity Period]={'Y'}, [Activity]={'Payment', 'Cost'}&amp;gt;} distinct [%_user_id])&amp;gt; 0, &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1, 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; ), &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; [%_user_id], MonthYear&lt;BR /&gt;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 21:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-intersection-doesn-t-give-the-desired-result/m-p/2135582#M1224803</guid>
      <dc:creator>RoyBatty</dc:creator>
      <dc:date>2023-11-07T21:21:38Z</dc:date>
    </item>
  </channel>
</rss>

