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

duplicate query on concatenated field
Aggregations With Geomesa
incomplete results with aggregate (R)
How to do an aggregated OR on a column in Amazon Redshift
'Your query does not include the specified expression as part of an aggregate function' error for calculated fields
Creating percentile_cont as aggregate function in Vertica
Create Expression in Report Builder 3.0 Report to sum a column
SAP Hana - STRING_AGG issue with ORDER BY CLAUSE
rrdtool does not keep max
Tableau Aggregate Percentage
use aggregates (min, max, avg) in CONSTRUCT query [duplicate]
R: transposing and aggregating columns
SQL Query Aggregate Error
Usage of aggregate functions in MarkLogic
Querying customDimensions in Google Bigquery
NHibernate - QueryOver criteria appearing in Where instead in Having clause, error

Categories

HOME
ssh
service
mysqli
phantomjs
stdout
opengl-es
perl6
sugarcrm
docker-compose
software-collections
token
ethereum
osclass
browsermob
cakephp-2.0
tag-cloud
airbnb
accordion
google-drive-android-api
sha
core-animation
suitescript
oracle10g
uibarbuttonitem
cqlsh
2checkout
paper-trail-gem
foxpro
node-soap
geocomplete
ragel
kdevelop
rythm
stencyl
server-side-swift
mixed-models
jvisualvm
jquery-ui-slider
java-5
intervention
smooth-streaming
inner-join
spring-webflow-2
text-formatting
denodo
dcom
monaca
nservicebus6
webmatrix
multi-targeting
critical-section
printer-control-language
robotc
therubyracer
firebase-job-dispatcher
access-violation
altova
change-password
queuing
razorengine
python-rq
window.location
nd4j
paypal-subscriptions
datamodel
android-facebook
sdkman
transport
tess4j
winforms-interop
callfire
web-standards
android-networking
log-analysis
jad
cl.exe
sony-xperia
esri-arc-engine
aiff
gnip
sat4j
telerik-appbuilder
isl
nodeunit
mobile-robots
aspnet-compiler
source-depot
backbone-views
ncml
flatten
win-prolog
unordered-set
peoplepicker
sipdroid
sessiontracking
azure-appfabric
nscharacterset
for-xml
numerical-computing
jgrowl
httpbrowsercapabilities

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