Fixed Calculation Tableau [top]
You drag Sales into the view, add Region , and everything looks perfect. But the moment you try to answer a complex question—like “What is the average sales per customer, regardless of my date filters?” or “Show me the highest selling product in each state” —your numbers suddenly look wrong.
: Calculating the percent of total for a specific dimension across different dimensions or filters.
You want to find the for each customer.
A "fixed calculation" in Tableau is a type of calculation that allows you to perform calculations that are not dependent on the filters, sorting, or grouping of the data in your visualization. When you create a calculated field in Tableau, by default, it is computed for each row in your data source and then aggregated based on the level of detail in your visualization. However, sometimes you want to perform a calculation that does not change based on the level of detail or filters applied to the view. This is where "fixed" calculations come into play. fixed calculation tableau
Do not affect FIXED calculations.
Calculate a specific region's contribution to the total company sales, while allowing the user to filter specific products.
Drag this Flag to the Color shelf. Filter to True . You drag Sales into the view, add Region
You must know one danger: .
Enter the FIXED Level of Detail (LOD) expression. It is arguably the most powerful (and most misunderstood) tool in Tableau. Today, we are going to fix that.
Result: Tableau looks at all chairs, finds the single highest sales number, and highlights only that row. You want to find the for each customer
But when you filter the dashboard to "2024" only, that MIN changes. The customer who first bought in 2020 suddenly shows a first purchase date of 2024. The calculation is .
Do not try to memorize every LOD syntax. Instead, memorize this question:
