<?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 strongest line in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-strongest-line/m-p/1741601#M721475</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;thank you for the answer,&lt;BR /&gt;The required solution should be in the UI after loading.&lt;BR /&gt;Plus, your output is not like mine, I need to get in negative = 2&lt;BR /&gt;In my question I added the expected output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Sep 2020 09:51:51 GMT</pubDate>
    <dc:creator>orh12345</dc:creator>
    <dc:date>2020-09-07T09:51:51Z</dc:date>
    <item>
      <title>count strongest line</title>
      <link>https://community.qlik.com/t5/QlikView/count-strongest-line/m-p/1741489#M721473</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am new in QlikView&lt;BR /&gt;I have a table that contains dates, campaigns and responses.&lt;BR /&gt;I have to take the strong responses according to selected dates and the pre-adjusted hierarchy&lt;BR /&gt;The hierarchy From strong to weak:&amp;nbsp;&amp;nbsp;Positive, Negative, Not answered&lt;/P&gt;&lt;P&gt;dates, campaigns ,responses&lt;BR /&gt;01.01.2019, &lt;STRONG&gt;1&lt;/STRONG&gt;,&amp;nbsp;Positive&lt;BR /&gt;02.01.2020 , &lt;STRONG&gt;1&lt;/STRONG&gt;,&amp;nbsp;Negative&lt;BR /&gt;03.03.2020,&amp;nbsp;&lt;STRONG&gt;1&lt;/STRONG&gt;,&amp;nbsp;Negative&lt;/P&gt;&lt;P&gt;01.12.2019, &lt;STRONG&gt;2&lt;/STRONG&gt;, Not answered&lt;BR /&gt;02.01.2020 , &lt;STRONG&gt;2&lt;/STRONG&gt;, Not answered&lt;BR /&gt;03.03.2020,&amp;nbsp;&lt;STRONG&gt;2&lt;/STRONG&gt;,&amp;nbsp;Negative&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;01.01.2019&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Positive&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;02.01.2020&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Negative&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;03.03.2020&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Negative&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="24px"&gt;01.12.2019&lt;/TD&gt;&lt;TD height="24px"&gt;2&lt;/TD&gt;&lt;TD height="24px"&gt;Not answered&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;02.01.2020&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;2&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Not answered&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;03.03.2020&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;2&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Negative&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The result I expect to see:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%" height="24px"&gt;year&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;Positive&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;Negative&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;Not answered&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="24px"&gt;2019&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;1&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;0&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="24px"&gt;2020&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;0&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;2&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-strongest-line/m-p/1741489#M721473</guid>
      <dc:creator>orh12345</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: count strongest line</title>
      <link>https://community.qlik.com/t5/QlikView/count-strongest-line/m-p/1741515#M721474</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/125430"&gt;@orh12345&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One solution&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Data:

LOAD *,Year(dates) as year INLINE [
    dates,campaigns,responses
    01.01.2019, 1, Positive
    02.01.2020, 1, Negative
    03.03.2020, 1, Negative
    01.12.2019, 2, Not answered
    02.01.2020, 2, Not answered
    03.03.2020, 2, Negative
];

Tmp:
load year,
if(responses='Positive',count(distinct campaigns),0) as Positive,if(responses='Negative',count(distinct campaigns),0) as Negative ,if(responses='Not answered',count(distinct campaigns),0) as [Not answered]
resident Data group by year,responses;

drop table Data;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in Interface :&lt;/P&gt;&lt;P&gt;Dimension: Year&lt;/P&gt;&lt;P&gt;Measures: sum(Positive)-&amp;gt;Positive&lt;/P&gt;&lt;P&gt;sum(Negative)-&amp;gt;Negative&lt;/P&gt;&lt;P&gt;sum(Not answered)-&amp;gt;Not answered&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inline .... to change with from ... your database or file ...&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 10:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-strongest-line/m-p/1741515#M721474</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-09-07T10:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: count strongest line</title>
      <link>https://community.qlik.com/t5/QlikView/count-strongest-line/m-p/1741601#M721475</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;thank you for the answer,&lt;BR /&gt;The required solution should be in the UI after loading.&lt;BR /&gt;Plus, your output is not like mine, I need to get in negative = 2&lt;BR /&gt;In my question I added the expected output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 09:51:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-strongest-line/m-p/1741601#M721475</guid>
      <dc:creator>orh12345</dc:creator>
      <dc:date>2020-09-07T09:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: count strongest line</title>
      <link>https://community.qlik.com/t5/QlikView/count-strongest-line/m-p/1741610#M721476</link>
      <description>&lt;P&gt;in this case :&lt;/P&gt;&lt;P&gt;Dimension : =year(dates)&lt;/P&gt;&lt;P&gt;Measures:&lt;/P&gt;&lt;P&gt;=count({&amp;lt;responses={'Positive'}&amp;gt;} distinct campaigns) for Positive&lt;/P&gt;&lt;P&gt;=count({&amp;lt;responses={'Negative'}&amp;gt;} distinct campaigns) for negative&lt;/P&gt;&lt;P&gt;=count({&amp;lt;responses={'Not answered'}&amp;gt;} distinct campaigns) for not answered&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/40147iB6C4B65D1446030B/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;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/125430"&gt;@orh12345&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 10:01:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-strongest-line/m-p/1741610#M721476</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-09-07T10:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: count strongest line</title>
      <link>https://community.qlik.com/t5/QlikView/count-strongest-line/m-p/1741634#M721477</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hi&lt;BR /&gt;thank you for the answer,&lt;BR /&gt;Unfortunately again your output is not like mine,&lt;BR /&gt;Your output ignores the strong response requirement.&lt;BR /&gt;For example, in 2020, Campaign 2 was counted twice, once unanswered and once in negative,&lt;BR /&gt;The output should take into account that there is a hierarchy of responses, the strong response to Campaign 2 in 2020 is negative and therefore should be counted once in the negative and that is it.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 11:04:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-strongest-line/m-p/1741634#M721477</guid>
      <dc:creator>orh12345</dc:creator>
      <dc:date>2020-09-07T11:04:00Z</dc:date>
    </item>
  </channel>
</rss>

