<?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 need help with the expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1646624#M447560</link>
    <description>&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;I have a daily .csv file which i load into QVD&amp;nbsp; - its like users of an application and i am trying to derive or calculate the following expression...but its not giving me the right result&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 583px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23579i9CB70F09D671F75A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;AGGR(count( if(Scope='In Contract' OR Scope='Not in Contract', Email),Date,Name)&lt;/P&gt;&lt;P&gt;I need to find the persons with 2 different emails for the 'In Contract' and 'Not in Contract' scope for each day for each person ... for the person or user when the scope is 'In Contract' and 'No In Contract' then only look for that persons emails and if they are different then count for that day.... attached sample file&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Nov 2019 18:27:03 GMT</pubDate>
    <dc:creator>RheaQv12</dc:creator>
    <dc:date>2019-11-13T18:27:03Z</dc:date>
    <item>
      <title>need help with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1646624#M447560</link>
      <description>&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;I have a daily .csv file which i load into QVD&amp;nbsp; - its like users of an application and i am trying to derive or calculate the following expression...but its not giving me the right result&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 583px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23579i9CB70F09D671F75A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;AGGR(count( if(Scope='In Contract' OR Scope='Not in Contract', Email),Date,Name)&lt;/P&gt;&lt;P&gt;I need to find the persons with 2 different emails for the 'In Contract' and 'Not in Contract' scope for each day for each person ... for the person or user when the scope is 'In Contract' and 'No In Contract' then only look for that persons emails and if they are different then count for that day.... attached sample file&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 18:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1646624#M447560</guid>
      <dc:creator>RheaQv12</dc:creator>
      <dc:date>2019-11-13T18:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: need help with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1646627#M447561</link>
      <description>&lt;P&gt;Based on the sample attached, what is the count you expect to see and in which object?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 18:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1646627#M447561</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-11-13T18:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: need help with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1646644#M447562</link>
      <description>&lt;P&gt;Hey Sunny, thank you. I think my expression wit the if condition is wrong.. the expression should only look for the users when they have 'In Contract'&lt;/P&gt;&lt;P&gt;i am looking for the straight table -&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Nov 2019 19:00:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1646644#M447562</guid>
      <dc:creator>RheaQv12</dc:creator>
      <dc:date>2019-11-13T19:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: need help with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1646647#M447563</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.JPG" style="width: 443px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23597i81F0EC01E0960A4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.JPG" alt="Capture2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sunny, thanks a lot&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 19:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1646647#M447563</guid>
      <dc:creator>RheaQv12</dc:creator>
      <dc:date>2019-11-13T19:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: need help with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1646650#M447564</link>
      <description>&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;Please ignore the message with "he expression should only look for the users when they have 'In Contract'&amp;nbsp; "&lt;/P&gt;&lt;P&gt;This should been "The expression should only look for the users when they have "In Contract" and "Not In Contract"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 19:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1646650#M447564</guid>
      <dc:creator>RheaQv12</dc:creator>
      <dc:date>2019-11-13T19:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: need help with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1646658#M447566</link>
      <description>&lt;P&gt;Why did you not include Michael Mose? He seems to have two different ids?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Count(DISTINCT {&amp;lt;Name = {"=Count(DISTINCT {&amp;lt;Scope = {'In Contract', 'Not in Contract'}&amp;gt;} Email) &amp;gt; 1"}&amp;gt;} Email)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 13 Nov 2019 19:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1646658#M447566</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-11-13T19:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: need help with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1646734#M447571</link>
      <description>&lt;P&gt;Hey Sunny,&lt;/P&gt;&lt;P&gt;Yes you are right Mike should have been included. This is the sample dataset that i prepared to get my actual dataset working - so i used the same expression on my real dataset - I only need to count the users email when there is an email associated with 'in cotract' and there is an another email associated with 'not in contract'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this expression is counting all when there is "in contract" or "not in contract"&amp;nbsp; say for example for 11/13&lt;/P&gt;&lt;P&gt;11/13&amp;nbsp; ABC,X&amp;nbsp; &lt;A href="mailto:abc@yahoo.com" target="_blank"&gt;abc@yahoo.com&lt;/A&gt;&amp;nbsp;&amp;nbsp; In Contract&lt;/P&gt;&lt;P&gt;11/13&amp;nbsp; ABC,X &lt;A href="mailto:abc@gmail.com" target="_blank"&gt;abc@gmail.com&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Not in Contract&lt;/P&gt;&lt;P&gt;since this user has 2 emails - 1 associated with in contract and 1 associated with not in contract i count this as 2&lt;/P&gt;&lt;P&gt;11/13&amp;nbsp; XYX,Z&amp;nbsp;&amp;nbsp; &lt;A href="mailto:xyx@yahoo.com" target="_blank"&gt;xyx@yahoo.com&lt;/A&gt;&amp;nbsp; In Contract&lt;/P&gt;&lt;P&gt;11/13 XYX,Z&amp;nbsp; &lt;A href="mailto:xyx@yahoo.com" target="_blank"&gt;xyx@yahoo.com&lt;/A&gt;&amp;nbsp;&amp;nbsp; In Contract&lt;/P&gt;&lt;P&gt;I dont count this user at all as his email is not associated with both "in contract" and "not in contract"&lt;/P&gt;&lt;P&gt;attached the dataset that i was using&lt;/P&gt;&lt;P&gt;again, thanks a lot for helping with this expression&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 01:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1646734#M447571</guid>
      <dc:creator>RheaQv12</dc:creator>
      <dc:date>2019-11-14T01:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: need help with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1646735#M447572</link>
      <description>&lt;P&gt;11/13&amp;nbsp; YYY,Z&amp;nbsp;&amp;nbsp; yyy&lt;A href="mailto:xyx@yahoo.com" target="_blank" rel="nofollow noopener noreferrer"&gt;@yahoo.com&lt;/A&gt;&amp;nbsp; In Contract&lt;/P&gt;&lt;P&gt;11/13 YYY,Z&amp;nbsp; &lt;A href="mailto:xyx@yahoo.com" target="_blank" rel="nofollow noopener noreferrer"&gt;yyy@gmail.com&lt;/A&gt;&amp;nbsp;&amp;nbsp; In Contract&lt;/P&gt;&lt;P&gt;another example where the user has 2 diff emails but the scope is same - i dont need to count this record&lt;/P&gt;&lt;P&gt;i need to count only when the user has 2 diff emails with 2 diff scopes like below&lt;/P&gt;&lt;P&gt;11/13 David,David&amp;nbsp;&amp;nbsp; &lt;A href="mailto:david@gmail.com" target="_blank"&gt;david@gmail.com&lt;/A&gt; In Contract&lt;/P&gt;&lt;P&gt;11/13 David,David &lt;A href="mailto:david@yahoo.com" target="_blank"&gt;david@yahoo.com&lt;/A&gt; Not in Contract&lt;/P&gt;&lt;P&gt;i count this user with 2 as no of emails&lt;/P&gt;&lt;P&gt;please let me know if this is not clear&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 01:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1646735#M447572</guid>
      <dc:creator>RheaQv12</dc:creator>
      <dc:date>2019-11-14T01:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: need help with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1646875#M447577</link>
      <description>&lt;P&gt;What is the issue with the expression I gave? Is that not working? Can you share a scenario where it isn't doing what you need it to do?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 12:08:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1646875#M447577</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-11-14T12:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: need help with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1647053#M447585</link>
      <description>&lt;P&gt;Hey Sunny, thanks a lot&lt;/P&gt;&lt;P&gt;when we say scope={'In Contract','Not In Contract'} = This will take into users scope when it is "in contract" or "not in contract" - right? so it is calculating the distinct email ids when the scope is either one of this - right?&lt;/P&gt;&lt;P&gt;i only need to consider if the user has scope as "in contract' and there is an email id and also there is scope "not in contract" and there is also another email with it - in the below example the attestation in each row is "in contract" or (in scope ) i just used in contract for the sample data&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture12.JPG" style="width: 814px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23660i5283D9766AA79560/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture12.JPG" alt="Capture12.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;my expression is - attached some sample data - again, really appreciate your time&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;=&lt;/FONT&gt;&lt;FONT size="3" color="#0000ff"&gt;COUNT&lt;/FONT&gt;&lt;FONT size="3"&gt;(&lt;/FONT&gt;&lt;FONT size="3" color="#0000ff"&gt;Distinct&lt;/FONT&gt;&lt;FONT size="3"&gt; {&amp;lt;&lt;/FONT&gt;&lt;FONT size="3" color="#800000"&gt;FirstNameLastName&lt;/FONT&gt;&lt;FONT size="3"&gt;={&lt;/FONT&gt;&lt;FONT size="3" color="#800000"&gt;"=Count(Distinct {&amp;lt;Attestation={'In Scope','Not in Scope'}&amp;gt;} Email) &amp;gt;1"&lt;/FONT&gt;&lt;FONT size="3"&gt; }&amp;gt;} &lt;/FONT&gt;&lt;FONT size="3" color="#800000"&gt;Email&lt;/FONT&gt;&lt;FONT size="3"&gt;) &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 14:45:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1647053#M447585</guid>
      <dc:creator>RheaQv12</dc:creator>
      <dc:date>2019-11-14T14:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: need help with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1647155#M447592</link>
      <description>&lt;P&gt;Hey Sunny, did i confuse you?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 18:02:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1647155#M447592</guid>
      <dc:creator>RheaQv12</dc:creator>
      <dc:date>2019-11-14T18:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: need help with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1647195#M447596</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Count(DISTINCT {&amp;lt;FirstNameLastName = {"=Count(DISTINCT {&amp;lt;Attestation = {'Not in Scope'}&amp;gt;} Attestation) = 1 and Count(DISTINCT {&amp;lt;Attestation = {'In Scope'}&amp;gt;} Attestation) = 1 and Concat(DISTINCT {&amp;lt;Attestation = {'Not in Scope'}&amp;gt;} Attestation, ',') &amp;lt;&amp;gt; Concat(DISTINCT {&amp;lt;Attestation = {'In Scope'}&amp;gt;} Attestation, ',')"}&amp;gt;} Email)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 14 Nov 2019 20:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1647195#M447596</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-11-14T20:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: need help with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1647596#M447618</link>
      <description>&lt;P&gt;Hey Sunny,&lt;/P&gt;&lt;P&gt;thanks a lot..you are truly genius!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 17:10:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1647596#M447618</guid>
      <dc:creator>RheaQv12</dc:creator>
      <dc:date>2019-11-15T17:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: need help with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1647600#M447619</link>
      <description>&lt;P&gt;Hey Sunny,&lt;/P&gt;&lt;P&gt;what it does is - count the persons emails only when there is at least 1 in scope attestation and 1 out of scope attestation and the attestation should not be same then only count the emails - right? thanks a lot&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 17:17:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1647600#M447619</guid>
      <dc:creator>RheaQv12</dc:creator>
      <dc:date>2019-11-15T17:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: need help with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1647616#M447620</link>
      <description>&lt;P&gt;Mostly yes except the last part where it checks if for a &lt;SPAN&gt;attestation&amp;nbsp;they have different emails&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Emails for not in scope&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Concat(DISTINCT {&amp;lt;Attestation = {'Not in Scope'}&amp;gt;} Attestation, ',')&lt;/LI-CODE&gt;&lt;P&gt;&amp;lt;&amp;gt;&lt;/P&gt;&lt;P&gt;Emails for in scope&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Concat(DISTINCT {&amp;lt;Attestation = {'In Scope'}&amp;gt;} Attestation, ',')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 18:03:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-with-the-expression/m-p/1647616#M447620</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-11-15T18:03:25Z</dc:date>
    </item>
  </channel>
</rss>

