<?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 aggr and dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-and-dates/m-p/1759785#M453980</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;New in a click&lt;BR /&gt;I have a table that contains IDs and dates and response.&lt;BR /&gt;Counting is done using the hierarchy of the strongest reaction. Positive (1), negative (2), no answer (3).&lt;BR /&gt;I want to count in the table the amount of people who responded positive, negative and unanswered.&lt;BR /&gt;for example:&lt;A href="https://community.qlik.com/t5/New-to-QlikView/count-strongest-line/m-p/1741515#M392664" target="_blank"&gt;https://community.qlik.com/t5/New-to-QlikView/count-strongest-line/m-p/1741515#M392664&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The formula I use: count ({&amp;lt;Type =&amp;gt;} distinct if (Aggr (min ({&amp;lt;Type =&amp;gt;} total &amp;lt;Cm_Lead_Key, Emp_Id&amp;gt; Strong_Response_Score), Emp_Id, Cm_Lead_Key) = 1, Cm_Lead_Key))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Each month individually is counted well, but that I add horizontal dates there is a problem.&lt;BR /&gt;When I count January alone I have 112 records. As soon as I add February everyone who responded negatively in January and positive in February will be told positively in January that the first reaction was in January.&lt;BR /&gt;How can I overcome this?&lt;/P&gt;&lt;P&gt;dates, campaigns ,responses&lt;BR /&gt;02.01.2020 ,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;,&amp;nbsp;Negative&lt;BR /&gt;03.02.2020,&amp;nbsp;&lt;STRONG&gt;1&lt;/STRONG&gt;, Positive&lt;/P&gt;&lt;P&gt;In this example if I select January I want 1 to appear negative&lt;BR /&gt;But if I choose January and February together I want it to appear that in February there is 1 positive and in January 0&lt;BR /&gt;(Not to mention even in the negative)&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Mon, 09 Nov 2020 10:14:50 GMT</pubDate>
    <dc:creator>orh12345</dc:creator>
    <dc:date>2020-11-09T10:14:50Z</dc:date>
    <item>
      <title>aggr and dates</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-and-dates/m-p/1759785#M453980</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;New in a click&lt;BR /&gt;I have a table that contains IDs and dates and response.&lt;BR /&gt;Counting is done using the hierarchy of the strongest reaction. Positive (1), negative (2), no answer (3).&lt;BR /&gt;I want to count in the table the amount of people who responded positive, negative and unanswered.&lt;BR /&gt;for example:&lt;A href="https://community.qlik.com/t5/New-to-QlikView/count-strongest-line/m-p/1741515#M392664" target="_blank"&gt;https://community.qlik.com/t5/New-to-QlikView/count-strongest-line/m-p/1741515#M392664&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The formula I use: count ({&amp;lt;Type =&amp;gt;} distinct if (Aggr (min ({&amp;lt;Type =&amp;gt;} total &amp;lt;Cm_Lead_Key, Emp_Id&amp;gt; Strong_Response_Score), Emp_Id, Cm_Lead_Key) = 1, Cm_Lead_Key))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Each month individually is counted well, but that I add horizontal dates there is a problem.&lt;BR /&gt;When I count January alone I have 112 records. As soon as I add February everyone who responded negatively in January and positive in February will be told positively in January that the first reaction was in January.&lt;BR /&gt;How can I overcome this?&lt;/P&gt;&lt;P&gt;dates, campaigns ,responses&lt;BR /&gt;02.01.2020 ,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;,&amp;nbsp;Negative&lt;BR /&gt;03.02.2020,&amp;nbsp;&lt;STRONG&gt;1&lt;/STRONG&gt;, Positive&lt;/P&gt;&lt;P&gt;In this example if I select January I want 1 to appear negative&lt;BR /&gt;But if I choose January and February together I want it to appear that in February there is 1 positive and in January 0&lt;BR /&gt;(Not to mention even in the negative)&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 10:14:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-and-dates/m-p/1759785#M453980</guid>
      <dc:creator>orh12345</dc:creator>
      <dc:date>2020-11-09T10:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: aggr and dates</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-and-dates/m-p/1759813#M453984</link>
      <description>&lt;P&gt;Hi, I think you need to add date field to aggr and total, if you don't add this you are telling Qv to deliberate ignore dates and set the min value it founds:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;count ({&amp;lt;Type =&amp;gt;} distinct if (Aggr (min ({&amp;lt;Type =&amp;gt;} total &amp;lt;Cm_Lead_Key, Emp_Id, &lt;STRONG&gt;Date_field&lt;/STRONG&gt;&amp;gt; Strong_Response_Score), Emp_Id, Cm_Lead_Key) = 1, Cm_Lead_Key,&lt;STRONG&gt;Date_field&lt;/STRONG&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Maybe you only need to add it on the total clause.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 11:52:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-and-dates/m-p/1759813#M453984</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2020-11-09T11:52:54Z</dc:date>
    </item>
  </channel>
</rss>

