Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Change one Tableau KPI without changing the whole workbook: a cwtwb example

说明与用途

使用 cwtwb Python SDK 复制 Tableau KPI 工作表并将 Sales 替换为 Profit,同时保持原始工作表不变。

问题

Need a Profit version of a Sales KPI while keeping the original Sales view functional.

结果

The cloned worksheet now uses Profit in all calculations, while the original Sales worksheet remains intact.

工作流

  • Open existing workbook with TWBEditor
  • Clone worksheet "1. KPI" to "1. KPI Profit"
  • Apply worksheet refactor mapping {"Sales":"Profit"}
  • Set the new worksheet visible
  • Save the modified workbook

证据

The checked‑in example opens 5 KPI Design Ideas (2).twb, copies the worksheet 1. KPI to 1. KPI Profit, and applies the mapping Sales -> Profit to the copy.

来源

The repository's worksheet‑refactor test checks that the original worksheet retains Sales formulas while the clone contains Profit formulas.

来源

Before using the output in production, open it in Tableau, review the KPI values and labels, exercise relevant filters and dates, and compare the unaffected views with the original workbook.

来源

  • 记录日期: 2026-10-10T02:56:12.862Z