aggregate-functions


tableau aggregate data based on dimension


I am having a problem in Tableau, hopefully someone can help me and
is very much appreciated!!
A simplifiend example of a problem I can't fix in Tableau:
Payment Customer Amount
1 BMW 20000
2 VW 30000
3 BMW 1000
4 VW 5000
5 VW 6000
This has to be aggregated on the Customer level and has to look like this:
Customer Amount
BMW 21000
VW 41000
This is for 10.000 customers..
Thanks in advance!
Tim
I want to take the average/mean/max for each year (pool cut-off date) in order to compare the years.
In R I always saved the new dataframe, but here this seems to be different.
Thanks,
Tim
Sum() is one of Tableau's built-in aggregation functions, so there is no need to write a calculated field if that's all you're doing. Just drag the [Amount] field on to (say) the text shelf and select Sum() as the aggregation. Then put [Customer] on the row shelf.
Sum() is efficient, and performed on the database server only sending back the results to the client. So if you are summing a million rows, only the answer needs to be sent over the wire. Of course, if you are grouping by a dimension so that half your dimension members have only one row, you'll still be sending back lots of data.
If your calculation is more complicated, emh is correct about where to start making calculated fields.
Let me know if you were going for something else, but if you are trying to simply visualize the data you can do this:
EDIT:
To create a calculated field go to: Analysis > Create Calculated Field, or select Create Calculated Field on one of the Data window title menu.
You can call that one SumAmount and the calculation would be:
sum([Amount])
Here is an example of what you can with calculated fields:
Here is a good guide: How to Create a Calculated Field

Related Links

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
How to aggregate / roll up percentile measures
A peer-to-peer and privacy-aware data mining/aggregation algorithm: is it possible?
Multiple aggregates in SPARQL
SAP BO XI Desktop Intelligence Aggregate Calculations
Mondrian: Help picking the right aggregator for Measures?
Subtract 2 measures as Grand Total in SSAS Cube Browser

Categories

HOME
spring-boot
postgresql
redux
sql-server-2014
ldap
windows-server-2008
x86-64
boxplot
atlassian-fisheye
autocad
virtualhost
normals
oms
mongoimport
dynamics-crm-2011
point-of-sale
mbed
google-closure-compiler
bookmarklet
reportlab
powerpivot
ibatis
accordion
gomobile
bug-reporting
tcpdf
wai-aria
advertising
core-animation
jira-zephyr
tftp
resx
uibarbuttonitem
ios9
node-soap
openvms
matlab-compiler
dropdownbox
headphones
asp.net-webhooks
pyenv
leaderboard
realloc
rtsp
aspose.pdf
lfe
server-side-swift
pyexcel
test-kitchen
binary-decision-diagram
peerjs
wufoo
api-key
logan-square
g77
riemann
sharpdevelop
htop
reloaddata
trusted-computing
disassembly
esprima
class-design
init
android-xmlpullparser
gdi
mrunit
aws-kms
razorengine
camellia
mod
video-embedding
angular-promise
webservices-client
identifying
playn
pdcurses
eula
accpac
apache-pivot
parallel-port
rails-migrations
jfilechooser
google-mirror-api
octokit
caroufredsel
azure-pack
latex-suite
codeigniter-form-helper
ntdll
tasklist
github-archive
bash4
animationdrawable
mvcmailer
jmesa
eeprom
visual-leak-detector
clgeocoder
xcdatamodel
arraycollection
activescaffold
konsole
datadude
manuals
onresize
tracd

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