WOW2026 W47 · From starter to finished workbook

Finishing the Converging Sankey from the starter

The starter (2026W47_Starter.twbx) contains a plain Sankey that does not converge. You add 4 sheets to it and make the bands converge into the Net bars.

Each part covers one sheet that you add. Every part follows the same order: target sheet → dimensions you need → component tree → steps. Each answer comes right after its hint.

Starter: 5 sheets, 15 calculated fields Finished: 9 sheets, 25 calculated fields New table calculations: 1 (Opposite Width)
OVERVIEW

You add 4 sheets

The finished dashboard stacks 9 sheets vertically. You build the 4 sheets with an orange border. In the starter, these positions hold Blank objects.

PartSheet to buildNew calculationsNew idea
0(Read the starter's calculations)——
ALink 0-1Opposite Width, Net Width, Position 0 MIN/MAX, Curve Polygon 0-1Offsetting (the core of this challenge)
B0 Net BarNet Bar Size, Net Bar Start—
CLink 2-3Position 3 MIN/MAX, Curve Polygon 2-3Keep the offset within each category
D3 Breakdown Net BarNone—
ContinuousGreen pill DiscreteBlue pill AGG(…) △Table calculation BuildPill you build in that part ReplacePill you change Sign Pill with a sort applied
STEP 0

Read the starter's calculations

Every calculation you add is built from the starter's calculations. First, look at what the starter contains and where each calculation is used on which sheet. Finally, confirm that the direction of a table calculation changes what its values mean.

1

Data shape: order rows and outline point rows

The starter's data source relates two tables: Orders (Sample - Superstore) and Scaffold.csv, a helper table for drawing the band outlines. The relationship condition is 1 = 1.

Min/MaxPathtMeaning
Min1–49−6 → 6Traces the left edge of the band from one stage to the other
Max50–986 → −6Comes back along the right edge in the opposite direction

t steps by 0.25. Connecting the 98 points in Path order closes the outline (polygon) of one band.

2

The starter's 15 calculated fields

They are easier to read in 4 groups by role. Every calculation marked "Existing" in the component trees from Part A on is listed here.

a. Split the rows

CalculationFormulaUsed in
Value[Profit]Source of everything below. Swap Profit for another measure and the same workbook still works
SignIF [Value] >= 0 THEN 'Gains' ELSE 'Loss' ENDColor of the bands and bars. Splits the rows into Gains and Loss
Breakdown[Category]Detail on Link 1-2; category labels

b. Amounts (labels and color)

CalculationFormulaUsed inValue with no filter
Total FlowSUM(ABS([Value]))Label on 1 Sign Bar; inside Band Width$606,375
NetSUM([Value])Label on 0 Net Label and 3 Breakdown Label; sort for Breakdown$292,297
Total GainsSUM(IF [Sign] = 'Gains' THEN [Value] END)Label on 3 Breakdown Label$449,336
Total LossABS(SUM(IF [Sign] = 'Loss' THEN [Value] END))Label on 3 Breakdown Label$157,039
Net LabelIIF([Net] >= 0, 'Net Profit', 'Net Loss')Color on 0 Net LabelNet Profit

c. Band width and position (horizontal axis from 0 to 1)

Band Width Table calcColumns on the bar sheets; inside Position

// Width of a band as a share of the total flow
[Total Flow]
/ TOTAL([Total Flow])
  • Width of one band, as a share of a total of 1
  • It divides by the total of Gains and Loss in absolute values, so they do not cancel out

Position 1 MAX / MIN Table calcInside Curve Polygon 1-2; right and left edges at stage 1

// Position 1 MAX: right edge at stage 1
RUNNING_SUM([Band Width])
// Position 1 MIN: left edge
[Position 1 MAX] - [Band Width]
  • Position after stacking band widths from the left. Stage 1 is the 1 Sign Bar stage
  • The table calculation direction sets the stacking order (see section 3 below)

Position 2 MAX / MIN Table calcInside Curve Polygon 1-2; right and left edges at stage 2

// Same formula as Position 1;
// only the stacking order differs
RUNNING_SUM([Band Width])
[Position 2 MAX] - [Band Width]
  • Stage 2 is the 2 Breakdown Bar stage
  • Same formula as Position 1. Only the direction differs

Values of these 3 calculations (no filter, stacking order of Link 1-2)

SignBreakdownBand WidthStage 1 (Position 1)Stage 2 (Position 2)
LossFurniture0.1020.000–0.1020.000–0.102
Office Supplies0.0940.102–0.1950.236–0.330
Technology0.0640.195–0.2590.631–0.695
GainsFurniture0.1340.259–0.3930.102–0.236
Office Supplies0.3010.393–0.6950.330–0.631
Technology0.3050.695–1.0000.695–1.000

At stage 1, the 3 Loss bands sit together at 0–0.259 and the 3 Gains bands at 0.259–1. At stage 2, Loss and Gains sit next to each other within each category. Each band is a polygon that moves from its stage 1 range to its stage 2 range.

d. Band curve

Curve Function Row levelInside Curve Polygon 1-2

// S-curve from 0 to 1 along t
1 / (1 + EXP(-[t]))
  • Close to 0 at t = −6 and close to 1 at t = 6. The ratio that joins the stages with an S-curve

Curve Polygon 1-2Columns on Link 1-2

CASE MIN([Min/Max])
WHEN 'Min' THEN
    [Position 1 MIN]
    + ([Position 2 MIN] - [Position 1 MIN])
      * MIN([Curve Function])
ELSE
    [Position 1 MAX]
    + ([Position 2 MAX] - [Position 1 MAX])
      * MIN([Curve Function])
END
  • Min points move the left edge, and Max points move the right edge, from stage 1 to stage 2
  • Parts A and C reuse this formula with different stage numbers
3

Read the table calculation direction

The same RUNNING_SUM([Band Width]) gives the position of a different stage when you change the direction. The meaning of the later calculations also depends on the direction setting.

To do

  1. Open the Link 1-2 sheet
  2. Right-click AGG(Curve Polygon 1-2) on Columns and select "Edit Table Calculation..."
  3. Switch the "Nested Calculations" drop-down at the top and look at the settings of the 3 calculations
Link 1-2Sheet in the starter. The bands between 1 Sign Bar and 2 Breakdown Bar
Marks
Polygon▾
ColorSizeLabelDetailTooltipPath
ColorSign
DetailBreakdown
PathPath
ColumnsAGG(Curve Polygon 1-2) △ ← Right-click
RowsMIN(t)
Link 1-2 render (axes shown, no filter)

Leave Path unchecked in every calculation. When it is unchecked, the same calculation repeats for each Path point. Every point on a band's outline gets the same position.

PART A

Link 0-1: Converge the bands into the Net bar at the top stage

Extend the 2 bands of 1 Sign Bar, Loss and Gains, upward. At the top end they cancel each other out, and only the remaining width flows into the Net bar. With no filter, the Loss band narrows to a point, and the Gains band gets thinner but remains.

1

Target sheet

Link 0-1 on the dashboard
The part this sheet draws (orange frame). The finished dashboard, rendered with no filter

This sheet has almost the same shape as Link 1-2. The only differences are the Columns pill and the missing Breakdown. You build the pill with the orange ring in this part.

Link 0-1 (finished)Rendered with no filter
Marks
Polygon▾
ColorSizeLabelDetailTooltipPath
ColorSign
PathPath
ColumnsAGG(Curve Polygon 0-1) △ ← Build this
RowsMIN(t)
Link 0-1 render (axes shown, no filter)
2

Dimensions on this sheet

DimensionWhere to place itRole
SignColorSplits the band into 2 bands: Loss and Gains
PathPathOrder of the points that draw the band outline. Leave it unchecked in table calculations
BreakdownDo not placeThe top stage has only 2 bands, one per Sign. Splitting by category would also split the offset by category

This directly drives the table calculation direction. The only dimensions in the view are Sign and Path. So Sign and Path are also the only choices in the table calculation dialog.

3

Component tree

Trace the calculations you need from the Columns pill. A band is an outline that moves in an S-curve from the left and right edges at its bottom end to the left and right edges at its top end. The bottom end is already in the starter. The top end is what is missing.

Build from the leaves up. The table calculation dialog lists the 3 table calculations in this tree (Band Width, Position 1 MAX, Opposite Width).

4

Steps

Step 1: Calculate the remaining width (Opposite Width, Net Width)

Calculate the width that each band keeps at the top end. In the requirements example, Furniture has Gains of $81,405 and Loss of $61,675. Only the Gains band remains, with a width worth $19,730. The Loss band gets a width of 0.

Hint

  • Remaining width = own width − width of the opposite Sign. Do not let it go below 0
  • A table calculation can get the opposite width. Subtract your own width from the Loss + Gains total of the same group
  • If you split it into 2 calculations, you can set their table calculation directions separately
Answer: Opposite Width and Net Width

Opposite Width Table calcInside Net Width

// Width of the other Sign in the same group.
// 0 when the other Sign does not exist
// Gains + Loss in this group
WINDOW_SUM([Band Width])
// minus my own width
- [Band Width]
  • Width of the opposite Sign in the same group
  • The table calculation direction decides what the "group" is: the whole view in Part A, each category in Part C

Net Width Inside Position 0 MIN/MAX

// What is left after Gains and Loss cancel out.
// The larger Sign keeps the difference
MAX(
    [Band Width] - [Opposite Width],
    0
)
  • The larger Sign keeps the difference, and the smaller one becomes 0
  • No IF for "which one is larger" is needed. The same formula also works when the net is negative

Creating a calculated field does not show anything in the view. Build one text table sheet for checking, and look at the values. You also use this sheet in Part C.

Build a check sheet

  1. Create a new sheet and name it Check (any name works)
  2. Put Sign on Rows and sort Sign manually: Loss → Gains (this affects RUNNING_SUM in Step 2)
  3. Put Band Width on Text on the Marks card. Then drop Opposite Width and Net Width onto the table. Measure Names goes to Columns, and Measure Values goes to Text
  4. On each of the 3 △ pills on the Measure Values card, open "Edit Table Calculation...". Set every nested calculation to "Specific Dimensions" with only Sign checked
CheckText table for checking (not placed on the dashboard)
Marks
Text▾
ColorSizeTextDetailTooltip
TextMeasure Values
Measure Values
AGG(Band Width) △ AGG(Opposite Width) △ AGG(Net Width) △
ColumnsMeasure Names
RowsSign
  • Sort: Sign, Manual, Loss → Gains
  • No filter (All for both Ship Mode and Region)
  • Sign is the only dimension. As in Link 0-1, the "group" is the whole view

Each of the 3 Measure Values pills has its own settings. On the Opposite Width pill, set both Band Width and the pill itself to Sign. On the Band Width pill, set the pill itself to Sign too. While Sign is the only field on Rows, the default "Table (down)" gives the same values.

Check: you are correct if you get these values (no filter, Total Flow = $606,375)

SignBand WidthOpposite WidthNet Width
Loss0.2590.7410.000
Gains0.7410.2590.482

For Loss, 0.259 − 0.741 is negative, so it is clipped to 0. Gains keeps 0.741 − 0.259 = 0.482. This 0.482 is the width of the Gains band at the top end and the length of the Net bar in Part B.

Step 2: Calculate the left and right edges at the top end (Position 0 MIN/MAX)

Now that you know the remaining width, decide where to place it at the top end.

Hint

  • Push the remaining width toward the boundary between Loss and Gains. The bands at the top end then merge into one Net bar
  • Keep the right edge (boundary) of the Loss band and the left edge (boundary) of the Gains band fixed. Shrink only the other edge
  • You can get the boundary position from Position 1 MIN/MAX at the bottom end
Answer: Position 0 MIN / MAX

Position 0 MIN Inside Curve Polygon 0-1; left edge at the top end

// The leftover width stays next to the
// boundary between Loss and Gains
IIF(
    ATTR([Sign]) = 'Loss',
    // Loss: keep the right part
    [Position 1 MAX] - [Net Width],
    // Gains: keep the left part
    [Position 1 MIN]
)
  • Loss: the remaining width to the left of the right edge (boundary)
  • Gains: stays at the left edge (boundary)

Position 0 MAX Inside Curve Polygon 0-1; right edge at the top end

// Right edge = left edge plus what is left
[Position 0 MIN] + [Net Width]
  • A band with a Net Width of 0 has matching left and right edges, so it narrows to a point

Check: add 2 fields to the check sheet

Add Position 0 MIN and Position 0 MAX to Measure Values on Check. For all nested calculations (Band Width, Position 1 MAX, Opposite Width), check only Sign.

SignNet WidthPosition 0 MINPosition 0 MAX
Loss0.0000.2590.259
Gains0.4820.2590.741

The top end of Loss is a single point at 0.259. The top end of Gains is 0.259–0.741. If Loss shows at 0–0.259 and Gains at 0.741–1, check that Sign is sorted Loss → Gains.

Step 3: Build the band outline (Curve Polygon 0-1)

You now have the left and right edges at both ends. Join them with an S-curve.

Hint

  • Duplicate Curve Polygon 1-2 and replace the Position numbers
Answer: Curve Polygon 0-1

Curve Polygon 0-1 Columns on Link 0-1

CASE MIN([Min/Max])
WHEN 'Min' THEN
    [Position 0 MIN]
    + ([Position 1 MIN] - [Position 0 MIN])
      * MIN([Curve Function])
ELSE
    [Position 0 MAX]
    + ([Position 1 MAX] - [Position 0 MAX])
      * MIN([Curve Function])
END
  • The Curve Polygon 1-2 formula with 1 replaced by 0 and 2 replaced by 1
  • The side where Curve Function is 0 is the top end (stage 0). The side where it is 1 is the bottom end (stage 1)

Step 4: Build the sheet and set the table calculation direction

Create a new sheet, and set up the pills and formatting as in the target sheet in section 1. On the Columns pill, open "Edit Table Calculation..." and set the direction.

This is a new sheet, so you apply the formatting yourself. If you miss the following 2 settings, the band shape will not match the finished view.

  • Sort Sign manually: Loss → Gains. The default order is Gains → Loss, which reverses the stacking order of Position 1 MAX
  • In Edit Axis, set the Columns axis to Fixed, 0 to 1, and the MIN(t) axis to Fixed, −6 to 6. Check Reversed on the MIN(t) axis. The t = −6 side becomes the top end (the Net bar side)

Hint

  • The dialog lists 3 table calculations. Give each one the same direction as on the check sheet in Steps 1 and 2, and you get the same values
Answer: Table calculation settings
Link 0-1 (after Step 4)Rendered with no filter
Marks
Polygon▾
ColorSizeLabelDetailTooltipPath
ColorSign
PathPath
ColumnsAGG(Curve Polygon 0-1) △
RowsMIN(t)
Link 0-1 render (axes shown, no filter)
PART B

0 Net Bar: The Net bar that the top bands flow into

Place one net bar where the Part A bands converge. It is blue (Net Profit) when the net is positive and orange (Net Loss) when it is negative.

1

Target sheet

0 Net Bar on the dashboard
The part this sheet draws (orange frame). The finished dashboard, rendered with no filter
0 Net Bar (finished)Rendered with no filter
Marks
Gantt Bar▾
ColorSizeLabelDetailTooltip
ColorAGG(Net Label)
SizeAGG(Net Bar Size)
ColumnsAGG(Net Bar Start) ← Build this
Rows(none)
0 Net Bar render (axes shown, no filter)
2

Dimensions on this sheet

Place no dimensions. There is only one bar for the whole view. Net Label on Color is an aggregate calculation, so it does not split the bar.

3

Component tree

4

Steps

Hint

  • Bar length = absolute value of the net ÷ total flow
  • Align the left edge of the bar with the left edge at the top end in Part A
  • You can get it without a table calculation. The boundary position is the Loss share, which equals (1 − bar length) ÷ 2
Answer: Net Bar Size and Net Bar Start

Net Bar Size AggregateSize on 0 Net Bar

// Length of the net bar as a share of the total flow
ABS([Net])
/ [Total Flow]
  • 0.482 with no filter. Same as the Net Width of Gains in Part A

Net Bar Start AggregateColumns on 0 Net Bar

// The bar is centered at 0.5
(1 - [Net Bar Size]) / 2
  • When the net is positive, (1 − (G − L)/T) / 2 = L/T, which is the Loss share
  • When the net is negative, the same formula gives the Gains share

Alternative: a Gantt bar with Position 0 MIN on Columns, Net Width on Size, and Sign on Color also works. Use the same table calculation settings as in Part A.

Check (no filter)

The bar spans 0.259–0.741 (length 0.482) and is blue. If you add Net Bar Start and Net Bar Size to the check sheet, you get 0.259 and 0.482.

0 Net Bar (after the steps)Rendered with no filter
Marks
Gantt Bar▾
ColorSizeLabelDetailTooltip
ColorAGG(Net Label)
SizeAGG(Net Bar Size)
ColumnsAGG(Net Bar Start)
Rows(none)
0 Net Bar render (axes shown, no filter)
PART C

Link 2-3: Converge within each category at the bottom stage

Extend the 2 Breakdown Bar bands downward and make them converge into one Net bar per category. You do the same thing as in Part A, but within each category. This is the hardest part.

1

Target sheet

Link 2-3 on the dashboard
The part this sheet draws (orange frame). The finished dashboard, rendered with no filter

It has the same shape as Link 1-2. Only the Columns pill differs. Keep Breakdown.

Link 2-3 (finished)Rendered with no filter
Marks
Polygon▾
ColorSizeLabelDetailTooltipPath
ColorSign
DetailBreakdown
PathPath
ColumnsAGG(Curve Polygon 2-3) △ ← Build this
RowsMIN(t)
Link 2-3 render (axes shown, no filter)
2

Dimensions on this sheet

DimensionWhere to place itRole
SignColorSplits the bands into Loss and Gains
BreakdownDetailSplits the bands by category. The "group" for the offset also becomes the category
PathPathOrder of the points that draw the band outline. Leave it unchecked in table calculations

This is the difference from Part A. Because Breakdown is in the view, the direction of Opposite Width lets you choose the scope of the offset. If you uncheck Breakdown and keep only Sign, the calculation restarts for each category.

3

Component tree

The tree has the same shape as in Part A. The stage numbers change from 0 and 1 to 2 and 3. Reuse Net Width and Opposite Width from Part A as they are, and change only the direction.

The table calculation dialog lists 3 calculations: Band Width, Position 2 MAX, and Opposite Width.

4

Steps

Step 1: Calculate the left and right edges at the bottom end (Position 3 MIN/MAX)

Hint

  • It is the Position 0 MIN/MAX formula with stage 1 replaced by stage 2
Answer: Position 3 MIN / MAX

Position 3 MIN Inside Curve Polygon 2-3; left edge at the bottom end

IIF(
    ATTR([Sign]) = 'Loss',
    // Loss: keep the right part
    [Position 2 MAX] - [Net Width],
    // Gains: keep the left part
    [Position 2 MIN]
)
  • Also used as the left edge of the bars in Part D

Position 3 MAX Inside Curve Polygon 2-3; right edge at the bottom end

[Position 3 MIN] + [Net Width]
  • A band with a Net Width of 0 narrows to a point

Step 2: Build the band outline (Curve Polygon 2-3)

Answer: Curve Polygon 2-3

Curve Polygon 2-3 Columns on Link 2-3

CASE MIN([Min/Max])
WHEN 'Min' THEN
    [Position 2 MIN]
    + ([Position 3 MIN] - [Position 2 MIN])
      * MIN([Curve Function])
ELSE
    [Position 2 MAX]
    + ([Position 3 MAX] - [Position 2 MAX])
      * MIN([Curve Function])
END
  • The side where Curve Function is 0 is stage 2. The side where it is 1 is stage 3

Step 3: Check the per-category offset on the check sheet

Before you build the sheet, check the direction settings on the check sheet. Once they match, you only copy the same direction to the sheet.

Add Breakdown to Rows on Check, and set the direction on the △ pills in Measure Values.

Check (with Breakdown added)The dimensions are Sign and Breakdown, the same as Link 2-3
Marks
Text▾
TextMeasure Values
Measure Values
AGG(Band Width) △ AGG(Opposite Width) △ AGG(Net Width) △
ColumnsMeasure Names
RowsBreakdownSign

Hint

  • You want the WINDOW_SUM in Opposite Width to be "Loss + Gains of that category"
  • A table calculation restarts for each dimension that you leave unchecked
  • Band Width divides by the whole total, so check both
Answer: Table calculations on the check sheet

Check: you are correct if you get these values (no filter)

BreakdownSignBand WidthOpposite WidthNet Width
FurnitureLoss0.1020.1340.000
Gains0.1340.1020.033
Office SuppliesLoss0.0940.3010.000
Gains0.3010.0940.208
TechnologyLoss0.0640.3050.000
Gains0.3050.0640.242

Opposite Width matches the Band Width of the opposite Sign in the same category. For example, the 0.033 for Furniture Gains is $19,730 ÷ $606,375. If Opposite Width is still 0.741 or 0.259, Breakdown is also checked.

Step 4: Build the sheet with the same direction as the check sheet

Create a new sheet, and set up the pills and formatting as in the target sheet in section 1. On the Columns pill, open "Edit Table Calculation..." and set the direction.

This is a new sheet, so you apply the formatting yourself. If you miss the following 3 settings, the band shape will not match the finished view.

  • Sort Sign manually: Loss → Gains
  • Sort Breakdown by Net, ascending (same as Link 1-2). A different order also changes the stacking order of Position 2 MAX
  • In Edit Axis, set the Columns axis to Fixed, 0 to 1, and the MIN(t) axis to Fixed, −6 to 6. Check Reversed on the MIN(t) axis. The t = 6 side becomes the bottom end (the side of the category Net bars)
Answer: Table calculation settings
Link 2-3 (after Step 4)Rendered with no filter
Marks
Polygon▾
ColorSizeLabelDetailTooltipPath
ColorSign
DetailBreakdown
PathPath
ColumnsAGG(Curve Polygon 2-3) △
RowsMIN(t)
Link 2-3 render (axes shown, no filter)
PART D

3 Breakdown Net Bar: One Net bar per category

Place one bar per category where the Part C bands converge. You build no new calculations. You only place the calculations from Parts A and C on a Gantt bar.

1

Target sheet

3 Breakdown Net Bar on the dashboard
The part this sheet draws (orange frame). The finished dashboard, rendered with no filter
3 Breakdown Net Bar (finished)Rendered with no filter
Marks
Gantt Bar▾
ColorSizeLabelDetailTooltip
DetailBreakdown
ColorSign
SizeAGG(Net Width) △
ColumnsAGG(Position 3 MIN) △
Rows(none)
3 Breakdown Net Bar render (axes shown, no filter)
2

Dimensions on this sheet

DimensionWhere to place itRole
BreakdownDetailSplits the bars by category
SignColorColors the bar by the Sign that remains. The cancelled side has a length of 0 and is not visible
PathDo not placeThis is a bar, not a band, so no outline points are needed

The dimensions are the same as Link 2-3 without Path. So use the same table calculation direction as Link 2-3.

3

Component tree

4

Steps

Create a new sheet and set it up as in the target sheet in section 1. Set the table calculation direction on both the Position 3 MIN pill and the Net Width pill.

Hint

  • There are 2 △ pills, and each one has its own settings
Answer: Table calculation settings (same for both pills)

Apply the formatting yourself. If you miss the following 3 settings, the bars will not line up with the bottom ends of the bands.

  • Sort Sign manually: Loss → Gains
  • Sort Breakdown by Net, ascending (same as Link 2-3)
  • In Edit Axis, set the Columns axis to Fixed, 0 to 1
3 Breakdown Net Bar (after the steps)Rendered with no filter
Marks
Gantt Bar▾
ColorSizeLabelDetailTooltip
DetailBreakdown
ColorSign
SizeAGG(Net Width) △
ColumnsAGG(Position 3 MIN) △
Rows(none)
3 Breakdown Net Bar render (axes shown, no filter)