<?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: Aggregation help? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregation-help/m-p/90072#M762404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The logic is&lt;/P&gt;&lt;P&gt;If the number of cartons picked divided by target cartons (Hours*70) &amp;gt;=1, then that User meets the target. I am trying to calculate the users count distinct based on that condition, per week per supervisor. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this help, Rob?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jul 2018 20:04:40 GMT</pubDate>
    <dc:creator>haneeshmarella</dc:creator>
    <dc:date>2018-07-31T20:04:40Z</dc:date>
    <item>
      <title>Aggregation help?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-help/m-p/90069#M762401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need the count distinct of USER_NAME which meet an IF condition per SUPERVISOR &lt;SPAN style="font-size: 13.3333px;"&gt; per week.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields used are USER_NAME, SUPERVISOR, DATE (MM/DD/YYYY).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The condition is &lt;/P&gt;&lt;P&gt;IF(&lt;/P&gt;&lt;P&gt;IF(Count(distinct &lt;/P&gt;&lt;P&gt;IF(OFF_ON_LINE='OFF-LINE',CASE#))=0,'-',Count(distinct IF(OFF_ON_LINE='OFF-LINE',CASE#)))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(sum(IF(OFF_ON_LINE='OFF-LINE', aggr(IF(OFF_ON_LINE='OFF-LINE',HOURS),SUPERVISOR,OFF_ON_LINE,DATE,USER_NAME)))*70) &amp;gt;= 1,&lt;/P&gt;&lt;P&gt;USER_NAME)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression I use is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(DISTINCT Aggr(If(&lt;/P&gt;&lt;P&gt;IF(Count(distinct IF(OFF_ON_LINE='OFF-LINE',CASE#))=0,'-',Count(distinct IF(OFF_ON_LINE='OFF-LINE',CASE#)))/(sum(IF(OFF_ON_LINE='OFF-LINE', aggr(IF(OFF_ON_LINE='OFF-LINE',HOURS),SUPERVISOR,OFF_ON_LINE,DATE,USER_NAME)))*70) &amp;gt;= 1,&lt;/P&gt;&lt;P&gt;USER_NAME), SUPERVISOR, DATE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-help/m-p/90069#M762401</guid>
      <dc:creator>haneeshmarella</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation help?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-help/m-p/90070#M762402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share a sample to look into? And also what is the error you are getting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 19:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-help/m-p/90070#M762402</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-07-31T19:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation help?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-help/m-p/90071#M762403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you explain in words what the logic is?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 19:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-help/m-p/90071#M762403</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-07-31T19:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation help?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-help/m-p/90072#M762404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The logic is&lt;/P&gt;&lt;P&gt;If the number of cartons picked divided by target cartons (Hours*70) &amp;gt;=1, then that User meets the target. I am trying to calculate the users count distinct based on that condition, per week per supervisor. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this help, Rob?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 20:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-help/m-p/90072#M762404</guid>
      <dc:creator>haneeshmarella</dc:creator>
      <dc:date>2018-07-31T20:04:40Z</dc:date>
    </item>
  </channel>
</rss>

