2025 Week 50 | Sigma: Find the Leak with Hierarchies

Say hi to hierarchies

Introduction

This week, we’re turning hierarchies into a decision tool. Using Sigma’s ragged hierarchies, hierarchy controls, and funnel charts, you’ll build a Campaign Leak Finder that pinpoints exactly where your funnel is breaking down.

You’ll create a navigable tree from Lead through Campaign, wire it to a live funnel, and layer on a “below target” detector. With a simple set of controls, users can choose which funnel step to inspect and what “good” looks like; the app responds by highlighting underperforming branches and counting how many problems sit in each slice.

The goal isn’t just to see conversion rates – it’s to triage them. By the end, you’ll have a reusable pattern for any hierarchy-driven analysis (territories, CX queues, product lines, assets) where the question is the same: where in this tree is performance below target, and what should we fix first?

Need Access to Sigma?

Note: You will only have view access to WOW Workbooks, Folders, and Workspaces, not edit access. Please create your WOW Workbooks under “My Documents.” We suggest creating a folder to organize all your workbooks. 

Requirements

Prepare your workbook & data
  • Open the provided workbook with:

    • MARKETING_CAMPAIGN_ACTIVITY 

    • Campaign Funnel (pre-aggregated funnel metrics)

  • Add a second page for layout / “hidden controls” if you like to keep things tidy.


Build your Ragged Hierarchy
  • In MARKETING_CAMPAIGN_ACTIVITY Base, create a new column called Path:

    • Path = RaggedHierarchy([Lead Source], [Lead Source Detail], [Parent Campaign], [Campaign])

  • Hint: Confirm you can expand/collapse the hierarchy in a grouped table.


Create the Details table
  • Create a new visualization from MARKETING_CAMPAIGN_ACTIVITY Base.

  • Group rows by hierarchy path elements

  • Add measures:

    • Leads = Sum([Leads])

    • MQLs = Sum([Mql])

    • add the remaining metrics you want to track

  • Add rate columns:

    • MQL Rate = [MQLs] / NullIf([Leads], 0)

    • SQL Rate = [SQLs] / NullIf([MQLs], 0)

    • Add Opp Rate calc


Create your Control Elements
  • Add a Hierarchy control bound to Path; name it CE-Path.

    • Target the Details table (and later the funnel chart).

  • Add a Segmented control called CE-StageIndex with options:

    • Value = 1 (hint: name it “MQL Conversion”)

    • add the remaining conversion paths to this control

  • Add a Number input called CE-MinThresholdPct:

    • Label: Minimum acceptable conversion (%)

    • Default value: 20

  • (Optional) Add a Checkbox called CE-ShowUnhealthy:

    • Label: Show only below target


Add Below-Target Logic

On the Details table, add:

  • Focus Rate = Choose([CE-StageIndex], [MQL Rate], [SQL Rate], [Opp Rate])

  • Min Threshold = [CE-MinThresholdPct] / 100

  • Is Unhealthy? = If(IsNull([Focus Rate]), Null, [Focus Rate] < [Min Threshold])

Then:

  • Apply conditional formatting to highlight rows where Is Unhealthy? = true (or directly on Focus Rate).

  • Add a KPI viz for Unhealthy Campaigns:

    • Unhealthy Campaigns = CountDistinctIf([Campaign], [Is Unhealthy?] = true)

  • (Optional) Filter the Details table:

    • If CE-ShowUnhealthy = true, keep only Is Unhealthy? = true.


Build the Funnel chart
  • From Campaign Funnel, create a new visualization.

  • Set Chart Type = Funnel.

  • Leave Stage empty.

  • In Value, add (in order):

    • Sum of Leads

    • Sum of MQLs

    • add the remaining values

  • Hint: aggregate the values

  • Target this funnel with CE-Path so selecting any branch of the hierarchy filters the funnel.


Layout & polish
  • Arrange page elements to your liking:

    • Top left: CE-Path (Hierarchy control)

    • Top right: Funnel chart

    • Middle: CE-StageIndex, CE-MinThresholdPct, optional CE-ShowUnhealthy

    • Bottom: Details table + Unhealthy Campaigns tile

  • Add an active title to the funnel, e.g.

    • “Where does this branch leak at the selected step?”

  • Hide helper columns (Min Threshold if desired) and format rates as percentages.

Dataset

Sigma Sample Database:

 

Share

After you finish your workout, share on LinkedIn, Sigma’s Community page, (or Twitter) using the hashtags #WOW2024 and #SigmaComputing, and tag Jess Batten, Ashley BennettEric HeidbrederKatrina Menne, Carter Voekel, and Michal Shaffer!

Create an interactive, sharable version of your solution here.

Also, make sure to fill out the Submission Tracker so that we can count you as a participant this week to track our participation throughout the year.

Solution

2025 Week 50 | Sigma: Find the Leak with Hierarchies