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.
Opposite Width)
The finished dashboard stacks 9 sheets vertically. You build the 4 sheets with an orange border. In the starter, these positions hold Blank objects.
| Part | Sheet to build | New calculations | New idea |
|---|---|---|---|
| 0 | (Read the starter's calculations) | — | — |
| A | Link 0-1 | Opposite Width, Net Width, Position 0 MIN/MAX, Curve Polygon 0-1 | Offsetting (the core of this challenge) |
| B | 0 Net Bar | Net Bar Size, Net Bar Start | — |
| C | Link 2-3 | Position 3 MIN/MAX, Curve Polygon 2-3 | Keep the offset within each category |
| D | 3 Breakdown Net Bar | None | — |
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.
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/Max | Path | t | Meaning |
|---|---|---|---|
Min | 1–49 | −6 → 6 | Traces the left edge of the band from one stage to the other |
Max | 50–98 | 6 → −6 | Comes 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.
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.
| Calculation | Formula | Used in |
|---|---|---|
Value | [Profit] | Source of everything below. Swap Profit for another measure and the same workbook still works |
Sign | IF [Value] >= 0 THEN 'Gains' ELSE 'Loss' END | Color of the bands and bars. Splits the rows into Gains and Loss |
Breakdown | [Category] | Detail on Link 1-2; category labels |
| Calculation | Formula | Used in | Value with no filter |
|---|---|---|---|
Total Flow | SUM(ABS([Value])) | Label on 1 Sign Bar; inside Band Width | $606,375 |
Net | SUM([Value]) | Label on 0 Net Label and 3 Breakdown Label; sort for Breakdown | $292,297 |
Total Gains | SUM(IF [Sign] = 'Gains' THEN [Value] END) | Label on 3 Breakdown Label | $449,336 |
Total Loss | ABS(SUM(IF [Sign] = 'Loss' THEN [Value] END)) | Label on 3 Breakdown Label | $157,039 |
Net Label | IIF([Net] >= 0, 'Net Profit', 'Net Loss') | Color on 0 Net Label | Net Profit |
// Width of a band as a share of the total flow
[Total Flow]
/ TOTAL([Total Flow])// Position 1 MAX: right edge at stage 1 RUNNING_SUM([Band Width]) // Position 1 MIN: left edge [Position 1 MAX] - [Band Width]
1 Sign Bar stage// Same formula as Position 1; // only the stacking order differs RUNNING_SUM([Band Width]) [Position 2 MAX] - [Band Width]
2 Breakdown Bar stage| Sign | Breakdown | Band Width | Stage 1 (Position 1) | Stage 2 (Position 2) |
|---|---|---|---|---|
| Loss | Furniture | 0.102 | 0.000–0.102 | 0.000–0.102 |
| Office Supplies | 0.094 | 0.102–0.195 | 0.236–0.330 | |
| Technology | 0.064 | 0.195–0.259 | 0.631–0.695 | |
| Gains | Furniture | 0.134 | 0.259–0.393 | 0.102–0.236 |
| Office Supplies | 0.301 | 0.393–0.695 | 0.330–0.631 | |
| Technology | 0.305 | 0.695–1.000 | 0.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.
// S-curve from 0 to 1 along t
1 / (1 + EXP(-[t]))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])
ENDThe 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.
Link 1-2 sheetAGG(Curve Polygon 1-2) on Columns and select "Edit Table Calculation..."TOTAL, the order does not affect the result.1 Sign Bar position.2 Breakdown Bar position.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.
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.
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.
| Dimension | Where to place it | Role |
|---|---|---|
Sign | Color | Splits the band into 2 bands: Loss and Gains |
Path | Path | Order of the points that draw the band outline. Leave it unchecked in table calculations |
Breakdown | Do not place | The 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.
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.
Curve Polygon 0-1Band outlineStep 3
Position 1 MIN/MAX △Left and right edges at the bottom end (= 1 Sign Bar position)Position 0 MIN/MAXLeft and right edges at the top endStep 2
Position 1 MIN/MAX △Gives the boundary positionNet WidthWidth left after the offsetStep 1
Band Width △Width of this bandOpposite Width △Width of the band with the opposite SignStep 1Curve FunctionS-curve (0→1)MIN(t)Vertical direction of the bandBuild from the leaves up. The table calculation dialog lists the 3 table calculations in this tree (Band Width, Position 1 MAX, Opposite 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.
// 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]
// What is left after Gains and Loss cancel out. // The larger Sign keeps the difference MAX( [Band Width] - [Opposite Width], 0 )
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.
Check (any name works)Sign on Rows and sort Sign manually: Loss → Gains (this affects RUNNING_SUM in Step 2)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 TextLink 0-1, the "group" is the whole viewWINDOW_SUM becomes Loss + Gains (= 1). Subtracting your own width leaves the opposite width.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.
| Sign | Band Width | Opposite Width | Net Width |
|---|---|---|---|
| Loss | 0.259 | 0.741 | 0.000 |
| Gains | 0.741 | 0.259 | 0.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.
Now that you know the remaining width, decide where to place it at the top end.
Position 1 MIN/MAX at the bottom 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] )
// Right edge = left edge plus what is left
[Position 0 MIN] + [Net Width]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.
| Sign | Net Width | Position 0 MIN | Position 0 MAX |
|---|---|---|---|
| Loss | 0.000 | 0.259 | 0.259 |
| Gains | 0.482 | 0.259 | 0.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.
You now have the left and right edges at both ends. Join them with an S-curve.
Curve Polygon 1-2 and replace the Position numbersCASE 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])
ENDCurve Polygon 1-2 formula with 1 replaced by 0 and 2 replaced by 1Create 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.
Position 1 MAXMIN(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)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.
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.
Net Bar StartLeft edge of the bar
Net Bar SizeLength of the barNet Bar SizeLength of the bar
NetGains − LossTotal FlowGains + LossNet LabelNet Profit / Net Loss// Length of the net bar as a share of the total flow
ABS([Net])
/ [Total Flow]// The bar is centered at 0.5
(1 - [Net Bar Size]) / 2Alternative: 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.
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.
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.
It has the same shape as Link 1-2. Only the Columns pill differs. Keep Breakdown.
| Dimension | Where to place it | Role |
|---|---|---|
Sign | Color | Splits the bands into Loss and Gains |
Breakdown | Detail | Splits the bands by category. The "group" for the offset also becomes the category |
Path | Path | Order 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.
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.
Curve Polygon 2-3Band outlineStep 2
Position 2 MIN/MAX △Left and right edges at the top end (= 2 Breakdown Bar position)Position 3 MIN/MAXLeft and right edges at the bottom endStep 1
Position 2 MIN/MAX △Gives the boundary positionNet WidthWidth left within the categoryBuilt in Part A
Band Width △Width of this bandOpposite Width △Opposite width in the same categoryChange direction onlyCurve FunctionS-curve (0→1)MIN(t)Vertical direction of the bandThe table calculation dialog lists 3 calculations: Band Width, Position 2 MAX, and Opposite Width.
Position 0 MIN/MAX formula with stage 1 replaced by stage 2IIF(
ATTR([Sign]) = 'Loss',
// Loss: keep the right part
[Position 2 MAX] - [Net Width],
// Gains: keep the left part
[Position 2 MIN]
)[Position 3 MIN] + [Net Width]
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])
ENDBefore 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.
Opposite Width to be "Loss + Gains of that category"Band Width divides by the whole total, so check both| Breakdown | Sign | Band Width | Opposite Width | Net Width |
|---|---|---|---|---|
| Furniture | Loss | 0.102 | 0.134 | 0.000 |
| Gains | 0.134 | 0.102 | 0.033 | |
| Office Supplies | Loss | 0.094 | 0.301 | 0.000 |
| Gains | 0.301 | 0.094 | 0.208 | |
| Technology | Loss | 0.064 | 0.305 | 0.000 |
| Gains | 0.305 | 0.064 | 0.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.
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.
Link 1-2). A different order also changes the stacking order of Position 2 MAXMIN(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)TOTAL, either order works.Link 1-2. Order: Breakdown → Sign.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.
| Dimension | Where to place it | Role |
|---|---|---|
Breakdown | Detail | Splits the bars by category |
Sign | Color | Colors the bar by the Sign that remains. The cancelled side has a length of 0 and is not visible |
Path | Do not place | This 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.
Position 3 MIN △Left edge of the bar = left edge of the band's bottom endBuilt in Part CNet Width △Bar length = width left within the categoryBuilt in Part ASign DetailBreakdownCreate 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.
Apply the formatting yourself. If you miss the following 3 settings, the bars will not line up with the bottom ends of the bands.
Link 2-3)