知識庫

How to add subtotals when "add all subtotals" is greyed out


發佈時間 : 27 Jul 2021
上次修改日期 : 11 Sep 2023

問題

When there is only one dimension (besides the date dimension), "Add all subtotals" is greyed out. "Show Row Grand Totals" can only show the aggregated value at the end of the table.
How can I add the subtotals when "add all subtotals" is greyed out.
User-added image

環境

  • Tableau Desktop 2020.4.6
  • Windows 10

答案

Using the sample superstore data source
1. Drag "Measure Names", "Category" to the columns shelf, "Order Date" to the rows shelf
2. Drag "Measure Values" to the text mark, only keep SUM(Profit), AGG(Profit Ratio), SUM(Quantity)
3. Change the format of AGG(Profit Ratio) to show two decimal places
4. In the columns shelf, right-click-> new calculation -> type ""
5. Place this calculated field in front of "Measure Names" in the Columns pill (see the attached video).
6. Click Analysis->Totals->Add All Subtotals
7. Hide ""/ Category header
 
這篇文章是否解決了問題?