知識庫

How To Merge 2 Different Scatter Plots


發佈時間 : 04 Feb 2021
上次修改日期 : 27 Oct 2022

問題

How to merge 2 different scatter plots

Merge 2 scatter slots like the following:
User-added image
User-added image

into 1 scatter plot 
User-added image

環境

  • Tableau Desktop

答案

1. Go to Data source page
2. Drag [Orders] to the [Orders] in campus to union by itself
3. Create following calculations
X:
IF ATTR([Table Name])='Orders' THEN MAX([Discount]) ELSE AVG([Quantity]) END
Y:
IF ATTR([Table Name])='Orders' THEN SUM([Profit]) ELSE SUM([Sales]) END
4. Drag [Y] to [Rows], [X] to [Columns], [Region] to [Color], [Table Name] to [Shape]

其他資訊

For other worksheets using same data source, Please follow steps below:
1. drag [Table Name] to [Filter]
2. select 'Orders'
3. right click on [Table Name] in [Filter] > Add to context
這篇文章是否解決了問題?