aggregate-functions


Calculate window average in tableau


I've got a data set that contains several tables: orders, order_items, and billings. Orders and Billings will have one row per orderID, but order_items could have multiple rows per orderID. OrderIDs can belong to one of 4 locations.
I'm trying to calculate, for each location, what the average billing total is using Tableau. However, when I do an avg(billing total) across locations, it looks like Tableau first adds the value of billing totals across all rows, so if one order has multiple order_item rows it will add the billing total together to get the "total" for that orderID -- then it takes the average of those.
Is there a way to have Tableau calculate an average across orderIDs without adding sub-fields together? Or to tell it specifically to aggregate at the orderID level, without adding orderID to the row/column shelf?
I know that this is an old question, but this is a problem that is now easily solvable with LOD expressions. This is more information on LOD's.
Without seeing your data or the workbook I would think that it will look something like this:
{FIXED [orderID] : AVG([total billing]}
Edit your table Calculation--> select advance setting take in Location OrderID in this order click ok
at level Drop Down Select Location
at restarting Every OrderID
or you could use a new calculated field : {Fixed [OrderID], [Location] : AVG(Order)
if possible a sample image with dummy data of what you want to achieve with just 3-5 rows would help

Related Links

Usage of aggregate functions in MarkLogic
Querying customDimensions in Google Bigquery
NHibernate - QueryOver criteria appearing in Where instead in Having clause, error
Howto aggregate on full data set in Spring Batch jobs?
Creating an aggregate function fails
Necessity of declaration of function in c and cpp
Calculate window average in tableau
Complexity asymptotic relation (theta, Big O, little o, Big Omega, little omega) between functions
What are TOP_COUNT and TOP_MAXCOUNT in BigQuery?
marklogic need advise for approach to aggregate documents
multiply(num) aggregate function in postgresql
Binding the Result of an Aggregate Function to a Projected Variable
tableau aggregate data based on dimension
where clause and aggregate functions
Is there such a thing as a join() aggregate function that concatentates field values at a specific character?
Aggregation of an expression in Django query spanning multiple tables

Categories

HOME
botframework
bigtable
postsharp
livecharts
where
coordinates
google-docs-api
glympse
browserstack
handlebars.js
spring-data-solr
openbsd
aws-sdk-cpp
velocity
suitecrm
minimum
webseal
web-worker
nsoperation
bookmarklet
google-calendar-api3
project-structure
summernote
cherrypy
hololens
pushbullet
onclicklistener
v4l2
struts
rancher
rollupjs
gulp-jshint
overflow
log4net-configuration
choco
ports
extern
ssdp
php-mongodb
web-technologies
firefox-developer-edition
intervention
f#-fake
api-key
angular-fullstack
stream-socket-client
flask-socketio
multivalue
fluent-nhibernate-mapping
computed-properties
android-tabs
ldd
geokit
paypal-subscriptions
nugetgallery
askbot
github-for-mac
android-contentresolver
mojolicious
database-project
personality-insights
tidesdk
firebase-tools
data-quality-services
mathics
sony-xperia
nsq
redmine-plugins
msdropdown
code-smell
slimscroll
fastcgi-mono-server
boofcv
complete
aspnet-compiler
tlbimp
listpicker
leap-year
wordbreaker
libx264
jquery-1.8
systrace
unordered-set
code-organization
jqzoom
object-tag
hwnd
netduino
nbehave
llblgen
rollover
virtual-destructor
chromebug
dongle
konsole
retrospectiva
scala-designer
memory-consumption

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App