Video | Tableau | Data visualisation | Analytics | Data prep

Creating an Ask data lens: New in Tableau 2021.2

Ask Data lenses finally let you publish one rich data source, then carve out focused perspectives so viewers can ask the right questions.

Part ofWhat's new in Tableau 2021.2
Watch on YouTube
  • Ask Data lenses let you publish one full data source, then create focused 'perspectives' on top of it rather than maintaining separate cut-down data sources for Ask Data.
  • A lens can only be created from a published data source on Tableau Server or Online, never from a data source embedded inside a workbook.
  • Within a lens you can select which fields are exposed, add synonyms for fields, and hide irrelevant metrics to keep the question experience focused.
  • Recommended visualisations become smarter over time as users ask questions and pick chart types, which Tableau captures and surfaces back in the lens.
  • You can build multiple lenses from a single data source, each with its own permissions and fields, and they appear as a distinct asset type in Tableau.

Ask Data lenses let you publish one full data source and then carve out focused, question-ready 'perspectives' on top of it, instead of maintaining a separate cut-down data source for every Ask Data use case.

Tim builds a Superstore data source in Desktop, adding a couple of calculations, then publishes it to Tableau Online before creating two lenses on top of it: one for shipping questions and one for profitability.

The Breakdown
  1. The problem lenses solve 0:09

    Before lenses, editors had to publish separate stripped-down data sources just to make Ask Data usable, which meant those sources couldn't be reused for anything else. Lenses separate the full data source from the narrowed 'question' experience, so you publish once and create multiple perspectives on top.

  2. Prep calculations before publishing 2:36

    Add any fields viewers will commonly ask about (Tim builds a days-to-ship date-diff and an order-size LOD) before publishing, since it's easier to bake these in at the data source stage than to add them later.

  3. Publish to Server/Online first — this is mandatory 7:28

    A lens can only be created from a data source published to Tableau Server or Online; you cannot create one from a data source embedded inside a workbook. This is a hard prerequisite, not a preference, and it affects any workbook you later want to add an Ask Data window to as well.

  4. Create a lens as a distinct asset 9:03

    From the published data source, use the 'create lens' option to spin up a new asset type with its own permissions, separate from the data source and from workbooks. You can create as many lenses as you need from the same source, each aimed at a different audience or topic.

  5. Narrow fields and add synonyms 12:00

    Inside a lens, go into the field selection screen to hide fields irrelevant to that lens's purpose (e.g. hide profitability fields in a shipping lens) and add synonyms to individual fields so viewers' natural phrasing maps to the right field.

  6. Shape and edit recommended visualisations 13:43

    Recommended visualisation groups can be renamed and pruned (for example, removing chart types you don't want offered) as a standalone tweak within the lens, independent of the field-narrowing work.

  7. Recommendations improve as people ask questions 14:40

    When someone asks a question and picks a chart type, Tableau treats that as validating the question and captures the chart type, feeding it back into future recommendations for similar questions on that lens.

  8. Build a second, differently-scoped lens 17:27

    You can create another lens from the same data source with a completely different field selection (Tim builds a profitability lens excluding shipping fields), showing that lenses are independent, reusable perspectives rather than one-off configurations.

Worth Knowing
  • A lens cannot be created from a data source embedded in a workbook — it must come from a published Server/Online data source, and this also applies if you later want to add an Ask Data window to a dashboard.
  • The field-selection screen in the lens editor is labelled 'data' in the UI even though it's really about choosing fields, which Tim flags as a documentation/UI inconsistency worth expecting.
  • Clear an existing question before asking a new one in a lens, otherwise the visualisation options and chart suggestions may not update as expected.
Use It When

Reach for a lens when you want different audiences to ask Ask Data questions against the same underlying data source but each needs a focused, jargon-free subset of fields — rather than publishing and maintaining several near-duplicate data sources.

How this Rollup was made provenance & method

A Rollup is drafted by AI from the video's transcript, then reviewed and edited by Tim. Everything used to produce this one is listed below — the model, the exact prompt, and the source video — so the process is transparent and reproducible.

Transcription
On-device — NVIDIA Parakeet v3 for recent videos, OpenAI Whisper large-v3 for earlier ones. The transcript never leaves the machine or gets published.
Drafting
Claude Sonnet 5 in the cloud, from that transcript.
Prompt
The exact Rollup prompt (v2) — the full system prompt, unedited.
Source video
Watch on YouTube
Drafted
5 July 2026 at 09:38
Reviewed & edited
5 July 2026 at 09:41 · by Tim Ngwena

Model + prompt + video is everything you'd need to recreate a Rollup like this yourself. The one thing we don't share is the transcript.

Rights. The video and its transcript are the property of TN Media Ltd. Unauthorised use or download is prohibited. © TN Media Ltd.