Year Range Slicer

CY / 2Y / 3Y Year Window Slicer

Build

Build

year-range-toggle

Overview

Features

Prompts

Help

Key Features

Your bar chart spans five years of data, but stakeholders usually care about only the current year or the last two. Hiding past years via a static date filter breaks when the calendar rolls over, and building a dynamic year window requires a disconnected parameter table, a filter measure with the right guard logic, a tile slicer with correct interaction rules, and — when the chart axis uses the calendar table — an auto-created disconnected axis table and wrapper measures. This skill builds all of it from a single prompt — run it with /year-range-toggle.

How it works

Type /year-range-toggle, specify the target chart(s) and which periods to include, and the skill handles everything:

  1. Asks which periods to include — CY, 2Y, 3Y, 4Y, or 5Y — before proceeding

  2. Detects the calendar table, year column, and measure table from TMDL automatically

  3. If the chart axis is on the calendar table, auto-creates a disconnected axis table with wrapper measures — no prompt needed

  4. Creates a disconnected parameter table with label and order columns

  5. Writes a visual-level filter measure with a blank-guard so all years show when no external year slicer is active

  6. Creates a tile slicer above the chart, sized and styled to match existing page slicers

  7. Applies the filter measure as a visual-level filter on the target chart

  8. Sets interaction rules so slicer tiles cross-filter only their paired chart

What you get

  • Disconnected parameter table — with Label (CY, 2Y, ...) and Order columns; one table per target chart when multiple visuals are provided

  • Filter measure — returns 1 for bars within the selected window, 0 for bars outside; blank-guard shows all years when no external year slicer is selected

  • Updated chart visual — filter measure wired as a visual-level filter; axis updated to the disconnected table when auto-created

  • Wrapper measures — created when the axis table is auto-created from the calendar table

  • Tile slicer — positioned directly above the chart, right-aligned, styled to match the page; one slicer per target chart

  • Scoped interactions — slicer tiles filter only their paired chart; other page visuals are unaffected

Tool Information

Skill

39 USD

Bundle (All skills)

129 USD

Category

Build

Version

Version 2.1.1.2.15

or log in if you already have an account