<?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: Count a field only if another field in the same row has the same value but with different origin in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-a-field-only-if-another-field-in-the-same-row-has-the-same/m-p/1648484#M48334</link>
    <description>&lt;P&gt;Thanks a lot, it solved the challenge, but I have realized that what I really need is this:&lt;/P&gt;&lt;P&gt;I need to count the Call Key, only If an Account has a Call_Key in the Date of one Event or in the five days following. And also with the same Territory.&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.png" style="width: 921px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23946i21129F2BC9CCB7BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.png" alt="Capture2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Account_Id = A1 (Territory T6) assist to an Event in Date = 1, and after that, Account_Id (Territory T6) received a Call in Date = 2 (THIS COUNT) and also received a Call in Date=9 (NOT TO COUNT).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your early answer. You help a lot!&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2019 12:27:53 GMT</pubDate>
    <dc:creator>JaviValtu</dc:creator>
    <dc:date>2019-11-19T12:27:53Z</dc:date>
    <item>
      <title>Count a field only if another field in the same row has the same value but with different origin</title>
      <link>https://community.qlik.com/t5/App-Development/Count-a-field-only-if-another-field-in-the-same-row-has-the-same/m-p/1648461#M48332</link>
      <description>&lt;P&gt;Hey, I have a challenge. I have this table:&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 909px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23937iFCE5AC81BB66BBEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and I need to count (in the count_Call_Key) the Call_Key that have the Date repeat for Origin={Call} and Origin={Event}. In the example, the Row 3 must count, because {&amp;lt;origin={'Call'}&amp;gt;}Date =&amp;nbsp;{&amp;lt;origin={'Event'}&amp;gt;}Date. I don´t know how to do Set Analysis inside Set Analysis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried this but does`t work:&lt;/P&gt;&lt;P&gt;count({&amp;lt;Origin={'Call','Event'},Date={"=$(=only({&amp;lt;Origin={'Event'}&amp;gt;}Date))"}&amp;gt;}Call_Key)&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:38:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-a-field-only-if-another-field-in-the-same-row-has-the-same/m-p/1648461#M48332</guid>
      <dc:creator>JaviValtu</dc:creator>
      <dc:date>2024-11-16T19:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Count a field only if another field in the same row has the same value but with different origin</title>
      <link>https://community.qlik.com/t5/App-Development/Count-a-field-only-if-another-field-in-the-same-row-has-the-same/m-p/1648469#M48333</link>
      <description>&lt;P&gt;May be this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count({&amp;lt;Origin = {'Call', 'Event'}, Date = {"=Count(DISTINCT {&amp;lt;Origin = {'Call', 'Event'}&amp;gt;} Origin) = 2"}&amp;gt;} Call_Key)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 19 Nov 2019 12:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-a-field-only-if-another-field-in-the-same-row-has-the-same/m-p/1648469#M48333</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-11-19T12:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Count a field only if another field in the same row has the same value but with different origin</title>
      <link>https://community.qlik.com/t5/App-Development/Count-a-field-only-if-another-field-in-the-same-row-has-the-same/m-p/1648484#M48334</link>
      <description>&lt;P&gt;Thanks a lot, it solved the challenge, but I have realized that what I really need is this:&lt;/P&gt;&lt;P&gt;I need to count the Call Key, only If an Account has a Call_Key in the Date of one Event or in the five days following. And also with the same Territory.&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.png" style="width: 921px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23946i21129F2BC9CCB7BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.png" alt="Capture2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Account_Id = A1 (Territory T6) assist to an Event in Date = 1, and after that, Account_Id (Territory T6) received a Call in Date = 2 (THIS COUNT) and also received a Call in Date=9 (NOT TO COUNT).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your early answer. You help a lot!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 12:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-a-field-only-if-another-field-in-the-same-row-has-the-same/m-p/1648484#M48334</guid>
      <dc:creator>JaviValtu</dc:creator>
      <dc:date>2019-11-19T12:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Count a field only if another field in the same row has the same value but with different origin</title>
      <link>https://community.qlik.com/t5/App-Development/Count-a-field-only-if-another-field-in-the-same-row-has-the-same/m-p/1648493#M48336</link>
      <description>&lt;P&gt;I am not sure I follow.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 12:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-a-field-only-if-another-field-in-the-same-row-has-the-same/m-p/1648493#M48336</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-11-19T12:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Count a field only if another field in the same row has the same value but with different origin</title>
      <link>https://community.qlik.com/t5/App-Development/Count-a-field-only-if-another-field-in-the-same-row-has-the-same/m-p/1648589#M48352</link>
      <description>&lt;P&gt;Sorry about my explanation, but it's difficult to me to explain it. Forget all the previous comment and I will try to explain what exactly I need:&lt;/P&gt;&lt;P&gt;I have this table,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture4.png" style="width: 416px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23967iB5A40ACEBA6033C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture4.png" alt="Capture4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and I have to add a new column in order to follow up if a Client receive Calls related with an Event &lt;STRONG&gt;in the following 5 days&lt;/STRONG&gt;. And only considering the Comercial linked to the Client in the Event. The result I need should be this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture4.png" style="width: 480px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23969i965FB17A99EE0AA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture4.png" alt="Capture4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Explanation:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Client X (belong to Comercial A) assist to Event E1 on 1-Oct.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Client X receive a Call from commercial A on 1-Oct so the COUNT field is a YES&lt;/LI&gt;&lt;LI&gt;Client X receive a Call from commercial D on 4-Oct. is a NO, because Client X belongs to Commercial A&lt;/LI&gt;&lt;LI&gt;Client X receive a Call from commercial A on 8-Oct. Is a NO, because 8-oct is after 1-Oct + 5 = 6-Oct&lt;/LI&gt;&lt;LI&gt;Client X receive a Call from commercial A on 3-Oct. Is a YES, because Client X belongs to Commercial A and 3-Oct is before 1-Oct + 5&lt;/LI&gt;&lt;LI&gt;Client Z receive a Call from comercial A on 1-Oct. Is a NO, because client Z didn't assist to the Event.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!!!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 14:35:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-a-field-only-if-another-field-in-the-same-row-has-the-same/m-p/1648589#M48352</guid>
      <dc:creator>JaviValtu</dc:creator>
      <dc:date>2019-11-19T14:35:45Z</dc:date>
    </item>
  </channel>
</rss>

