Salesforce Certified Tableau Desktop Foundations free question 7 / 10 · Domain 2: Exploring and Analyzing Data
An analyst wants the top 10 breakfast products by profit across a very large data source. A top 10 filter on Product alone returns the top 10 of all products. What fixes this?
- Add the category filter to the Pages shelf and keep the top 10 filter
- Make the top 10 filter a context filter, then add the category filter
- Convert the category filter into a calculated measure
- Make the product category filter a context filter, then add the top 10 filter
Show the answer and explanation
Answer: D
Why this is correct
By default, every filter in Tableau is computed independently and accesses all rows in the data source. The Use Context Filters topic explains that a context filter forces a filter to be carried out first, and that other filters become dependent filters that process only the data that passes through it. In the help example, a context filter includes only breakfast products and then a top 10 filter by profit as a dependent filter finds the top 10 of those.
Why the other options are wrong
"Make the top 10 filter a context filter, then add the category filter" … The top 10 would then be computed before the category filter and would not be limited to breakfast products.
"Add the category filter to the Pages shelf and keep the top 10 filter" … Pages shows members in turn. It does not change the order in which filters run.
"Convert the category filter into a calculated measure" … A measure filter runs after dimension filters, so it would not run first.
Key points
Use a context filter to make a top N or numeric filter work on a subset. Context filters can also speed up views on large data.