{ EXCLUDE [Region], [Team] : SUM([Revenue]) } in a Region by Team view removes both dimensions, so every mark shows the grand total. In SQL that is an empty window over the grouped rows: sum(sum(Revenue)) OVER ().
Updated · Checked on the xmetric engine
What is the syntax?
{ EXCLUDE [Region], [Team] : SUM([Revenue]) }
dimensions
every dimension in the view.
aggregate
an aggregate expression, such as SUM([Revenue]).
Returns a number per mark: the aggregate over everything the view shows, repeated on each mark.
What does it return, and what is the SQL?
Each example runs on the same 12 sample rows twice: the Tableau formula on the xmetric engine, and the SQL in DuckDB.
What is the grand total on every team row?
Tableau
{ EXCLUDE [Region], [Team] : SUM([Revenue]) }
SQL (DuckDB)
SELECT Region, Team, sum(sum(Revenue)) OVER () AS result
FROM input
GROUPBY Region, Team
ORDERBY Region, Team
All five team rows show 1,650, the sum of every invoice line.
Region
Team
Result
North
Cedar
1,650
North
Pine
1,650
South
Ash
1,650
South
Elm
1,650
West
Oak
1,650
✓ The Tableau formula and the SQL return the same 5 rows.
What do people ask about Exclude all view dimensions?
Do filters change it?
Yes. INCLUDE and EXCLUDE are computed after dimension filters, so filtering out a team removes its revenue from the region total too. That is the main practical difference from a FIXED region total.
Is this the same as { FIXED : SUM([Revenue]) }?
The numbers match until you filter. EXCLUDE runs after dimension filters, FIXED before them. See Fixed grand total.
Is this the same as the TOTAL table calculation?
Close: TOTAL(SUM([Revenue])) computed across the whole table returns the same 1,650, but as a table calculation it also sees table-calculation filters.