<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Content in Tableau Community Forums</title>
    <link>/profile-content.jspa?filterID=contentstatus[published]&amp;targetUser=4936</link>
    <description>Recent content in Tableau Community Forums</description>
    <language>en</language>
    <pubDate>Fri, 09 Dec 2011 09:03:22 GMT</pubDate>
    <generator>Jive Engage 8.0.5.0  (http://jivesoftware.com/products/)</generator>
    <dc:date>2011-12-09T09:03:22Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Aggregates on Aggregates</title>
      <link>https://community.tableau.com/thread/114874</link>
      <description>&lt;!-- [DocumentBodyStart:83f61c50-b3d1-4908-8226-d608e9be0119] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I am attempting to get Median values on data that I have already aggregated and am getting an error that says the argument is already an aggregate and cannot be further aggregated.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;I created a much simpler data set to show the issue.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Here is the data:&lt;/p&gt;&lt;p&gt;client&amp;#160; &amp;#160; order&amp;#160; &amp;#160; item&amp;#160; &amp;#160; amount&lt;/p&gt;&lt;p&gt;a&amp;#160; &amp;#160; 111&amp;#160; &amp;#160; x&amp;#160; &amp;#160; 10&lt;/p&gt;&lt;p&gt;a&amp;#160; &amp;#160; 111&amp;#160; &amp;#160; y&amp;#160; &amp;#160; 20&lt;/p&gt;&lt;p&gt;a&amp;#160; &amp;#160; 222&amp;#160; &amp;#160; x&amp;#160; &amp;#160; 10&lt;/p&gt;&lt;p&gt;a&amp;#160; &amp;#160; 222&amp;#160; &amp;#160; z&amp;#160; &amp;#160; 30&lt;/p&gt;&lt;p&gt;a&amp;#160; &amp;#160; 333&amp;#160; &amp;#160; w&amp;#160; &amp;#160; 60&lt;/p&gt;&lt;p&gt;b&amp;#160; &amp;#160; 444&amp;#160; &amp;#160; x&amp;#160; &amp;#160; 20&lt;/p&gt;&lt;p&gt;b&amp;#160; &amp;#160; 555&amp;#160; &amp;#160; x&amp;#160; &amp;#160; 20&lt;/p&gt;&lt;p&gt;b&amp;#160; &amp;#160; 555&amp;#160; &amp;#160; y&amp;#160; &amp;#160; 30&lt;/p&gt;&lt;p&gt;b&amp;#160; &amp;#160; 666&amp;#160; &amp;#160; z&amp;#160; &amp;#160; 40&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;What I want is the average and median order amounts by client - like this:&lt;/p&gt;&lt;p&gt;client&amp;#160; &amp;#160; ave order amt&amp;#160; &amp;#160; median order amt&lt;/p&gt;&lt;p&gt;a&amp;#160; &amp;#160; 43.33&amp;#160; &amp;#160; 40&lt;/p&gt;&lt;p&gt;b&amp;#160; &amp;#160; 36.67&amp;#160; &amp;#160; 40&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;For the ave, I can get around this by creating a custom calculation to get the right number, but I can't for the median.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;So I need to roll up to the client/order level before I can do this calculation.&amp;#160; I would prefer not to do this in the data source so I am looking for assistance.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;I am attaching my workbook.&amp;#160; THanks in advance for any help you can provide.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Paul&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:83f61c50-b3d1-4908-8226-d608e9be0119] --&gt;</description>
      <pubDate>Fri, 09 Dec 2011 09:03:22 GMT</pubDate>
      <author>tableaucommunity@tableau.com</author>
      <guid>https://community.tableau.com/thread/114874</guid>
      <dc:date>2011-12-09T09:03:22Z</dc:date>
      <clearspace:dateToText>7 years 7 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

