<?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 Help with Set Analysis on Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis-on-Pivot-Table/m-p/377476#M573261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following data (column names in first row)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Employee Name, Timesheet Date, Charge Code, Account Name, Amount&lt;/P&gt;&lt;P&gt;Joe Smith, 11/10/2011, 0010, Labor - Direct, 1000&lt;/P&gt;&lt;P&gt;Joe Smith, 11/10/2011, 0010, Labor - Haz, 400&lt;/P&gt;&lt;P&gt;Joe Smith, 11/10/2011, 0010, Labor - Post, 400&lt;/P&gt;&lt;P&gt;Joe Smith, 11/10/2011, 0015, Labor - Direct, 2000&lt;/P&gt;&lt;P&gt;Joe Smith, 11/17/2011, 0010, Labor - Direct, 2500&lt;/P&gt;&lt;P&gt;Joe Smith, 11/3/2011, 0010, Labor - Direct, 1200&lt;/P&gt;&lt;P&gt;Joe Smith, 11/3/2011, 0010, Labor - Haz, 400&lt;/P&gt;&lt;P&gt;Joe Smith, 11/3/2011, 0010, Labor - Post, 400&lt;/P&gt;&lt;P&gt;Steve Jones, 11/10/2011, 0015, Labor - Direct, 1700&lt;/P&gt;&lt;P&gt;Steve Jones, 11/03/2011, 0015, Labor - Direct, 2000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show in a table whenever an employee charges more than one Account Name on a given Timesheet Date. I've been working on this and can't seem to get the combination of COUNT and set analysis correct to show this. Records where there is only one account name for a given timesheet date should not be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have this in a pivot table, but would be open to a Straight Table or even Table Box if that would help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Aug 2012 18:27:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-13T18:27:01Z</dc:date>
    <item>
      <title>Help with Set Analysis on Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis-on-Pivot-Table/m-p/377476#M573261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following data (column names in first row)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Employee Name, Timesheet Date, Charge Code, Account Name, Amount&lt;/P&gt;&lt;P&gt;Joe Smith, 11/10/2011, 0010, Labor - Direct, 1000&lt;/P&gt;&lt;P&gt;Joe Smith, 11/10/2011, 0010, Labor - Haz, 400&lt;/P&gt;&lt;P&gt;Joe Smith, 11/10/2011, 0010, Labor - Post, 400&lt;/P&gt;&lt;P&gt;Joe Smith, 11/10/2011, 0015, Labor - Direct, 2000&lt;/P&gt;&lt;P&gt;Joe Smith, 11/17/2011, 0010, Labor - Direct, 2500&lt;/P&gt;&lt;P&gt;Joe Smith, 11/3/2011, 0010, Labor - Direct, 1200&lt;/P&gt;&lt;P&gt;Joe Smith, 11/3/2011, 0010, Labor - Haz, 400&lt;/P&gt;&lt;P&gt;Joe Smith, 11/3/2011, 0010, Labor - Post, 400&lt;/P&gt;&lt;P&gt;Steve Jones, 11/10/2011, 0015, Labor - Direct, 1700&lt;/P&gt;&lt;P&gt;Steve Jones, 11/03/2011, 0015, Labor - Direct, 2000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show in a table whenever an employee charges more than one Account Name on a given Timesheet Date. I've been working on this and can't seem to get the combination of COUNT and set analysis correct to show this. Records where there is only one account name for a given timesheet date should not be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have this in a pivot table, but would be open to a Straight Table or even Table Box if that would help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 18:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis-on-Pivot-Table/m-p/377476#M573261</guid>
      <dc:creator />
      <dc:date>2012-08-13T18:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Analysis on Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis-on-Pivot-Table/m-p/377477#M573262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can you able to say what you expected result..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I tried like below. EmployeeName as Dimension, expression: if(Count(Distinct AccountName) &amp;gt;1,sum(Amount))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 19:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis-on-Pivot-Table/m-p/377477#M573262</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-08-13T19:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Analysis on Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis-on-Pivot-Table/m-p/377478#M573263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, the expected result would be a table with the following rows (headers in first row):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Employee Name, Timesheet Date, Charge Code, Account Name, Amount&lt;/P&gt;&lt;P&gt;Joe Smith, 11/10/2011, 0010, Labor - Direct, 1000&lt;/P&gt;&lt;P&gt;Joe Smith, 11/10/2011, 0010, Labor - Haz, 400&lt;/P&gt;&lt;P&gt;Joe Smith, 11/10/2011, 0010, Labor - Post, 400&lt;/P&gt;&lt;P&gt;Joe Smith, 11/10/2011, 0015, Labor - Direct, 2000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This indicates that in this record set the only person with more than one Charge Code on a given Timesheet Date is Joe Smith on the 11/10/2011 timesheet. He charged to both 0010 and 0015 in the same week. In the full dataset, there almost certainly will be more than one person and probably more than one timesheet for each person where there are more than one Charge Code in a timesheet date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 19:26:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis-on-Pivot-Table/m-p/377478#M573263</guid>
      <dc:creator />
      <dc:date>2012-08-13T19:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Analysis on Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis-on-Pivot-Table/m-p/377479#M573264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use this expression to calculate the Employee Name dimension to get only the Employees with that condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;if(aggr(Count(Distinct &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Charge Code&lt;/SPAN&gt;),&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Employee Name, Timesheet Date)&lt;/SPAN&gt;&amp;nbsp; &amp;gt;1,&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Employee Name&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 20:18:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis-on-Pivot-Table/m-p/377479#M573264</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-08-13T20:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Analysis on Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis-on-Pivot-Table/m-p/377480#M573265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, I knew that AGGR would come in useful one day. Now I just need to read up on what it actually does. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;SPAN class="replyToName"&gt;José&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 12:58:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis-on-Pivot-Table/m-p/377480#M573265</guid>
      <dc:creator />
      <dc:date>2012-08-14T12:58:16Z</dc:date>
    </item>
  </channel>
</rss>

