計算欄位

Tableau 入門

Lis Sulmont

Content Program Manager at Duolingo

什麼是計算欄位?

計算欄位可從資料來源中既有的資料建立新資料。$^1$

1 https://help.tableau.com/current/pro/desktop/en-us/calculations_calculatedfields_create.htm
Tableau 入門

計算欄位範例

  • sales_amount_usd
    • 計算欄位 sales_amount_euro = sales_amount_usd * 0.90
  • gas_prices
    • 計算欄位 gas_prices_rounded_up = CEILING(gas_prices)
  • emails
    • 計算欄位 gmail_emails = ENDSWITH(emails, "@gmail.com")
Tableau 入門

計算欄位範例

  • date
    • 計算欄位 year = YEAR(date)
  • priceearnings
    • 計算欄位 price_earnings_ratio = prices / earnings
  • 還有更多…
Tableau 入門

什麼是計算欄位?

計算欄位可從資料來源中既有的資料建立新資料。$^1$

  • 會建立新欄位
  • 不影響底層資料

 

 

1 https://help.tableau.com/current/pro/desktop/en-us/calculations_calculatedfields_create.htm
Tableau 入門

函式

範例: CEILING(), ENDSWITH(), DIV()

  1. 數值函式
  2. 字串函式
  3. 日期函式
  4. 型別轉換
  5. 邏輯函式

…還有更多!$^1$

1 https://help.tableau.com/current/pro/desktop/en-us/functions.htm
Tableau 入門

資料集

平均受教育年數

Tableau 入門

一起來練習吧!

Tableau 入門

Preparing Video For Download...