Last Modified Date: 08 Jul 2022
Environment
- Tableau Desktop
Answer
1. Drag Category and Subcategory on Rows2. Create a calculated field called size with SIZE() as calculation. Drag this tool tip
3. Go to Analysis -> Total -> Add all subtotal
4. Check the value returned for size fro all subtotals. In this case its 3
5. Create a calculated field like below for the Sales measure
IF SIZE()=3 and ATTR([Category])= "Furniture" then NULL
ELSE
SUM([Sales])
end
This will give the subtotal for all except Furniture
Thank you for providing your feedback on the effectiveness of the article.
Open new Case
Continue Searching
Knowledge Base
Community
Product Help
Training and Tutorials