What's new ⬇ Download Reportworq
⬇ Guide PDF

Lab 5: A sheet per value#

What you are doing. Finance liked the packs from Lab 4 and now wants two years in each one: the 2025 and 2026 statements side by side, in the same file, still one file per market. You are going to make every statement in the pack repeat once per year.

What this shows you. One page per item doing real work: a worksheet copied inside one file, once for each value of a parameter. It is also the moment the warning in Lab 4 comes true. A tab that repeats on its own needs its parameters mapped on the tab itself, and each copy needs a name of its own.

How long. About 40 minutes.

What you need. The finished Lab Financial Statements report from Lab 4, in your Hands on Lab folder, on the same instance, signed in as admin@rw.com.

Before you start#

You are going to work on a copy of your Lab 4 report, so the one-year version stays exactly as you built it. When the copy does something you do not expect, open the original beside it and compare.

This lab writes to the store. It copies a report and changes the copy. Nothing in the Timberline folder, and nothing in your Lab 4 report, is touched.

Part A: A copy to work on#

1. Copy the Lab 4 report#

Open Hands on Lab. At the end of the Lab Financial Statements row, select the ⋮ menu, then Copy.

The Hands on Lab folder with the Source Files folder and the Lab Financial Statements report, and the overflow menu open on the report row listing Run, Edit, View, Run history, Rename, Duplicate, Cut, Copy, Delete, Hide from readers, Export and Properties, with the row menu button and Copy outlined in red
The Hands on Lab folder with the Source Files folder and the Lab Financial Statements report, and the overflow menu open on the report row listing Run, Edit, View, Run history, Rename, Duplicate, Cut, Copy, Delete, Hide from readers, Export and Properties, with the row menu button and Copy outlined in redTap or click the image to view it full screen

Select Paste in the toolbar. The copy is pasted into the same folder as Lab Financial Statements (1), numbered because the folder already holds a report with that name.

2. Rename it and open it#

At the end of the new row, select the ⋮ menu, then Rename, and name it Lab Financial Statements Sheet Replication.

The Hands on Lab folder after the paste, with Paste outlined in the toolbar, a third row reading Lab Financial Statements (1) outlined in red, and its overflow menu open with Rename outlined
The Hands on Lab folder after the paste, with Paste outlined in the toolbar, a third row reading Lab Financial Statements (1) outlined in red, and its overflow menu open with Rename outlinedTap or click the image to view it full screen

The shortcut is Duplicate. Duplicate, in the same menu, does the copy and the paste in one step and leaves the copy in the same folder. Copy and Paste is the longer way round, and the one to use when the copy belongs in a different folder.

Select the pencil icon at the end of the renamed row to open the report editor.

The Lab Financial Statements Sheet Replication row, with the edit pencil at its right-hand end outlined in red
The Lab Financial Statements Sheet Replication row, with the edit pencil at its right-hand end outlined in redTap or click the image to view it full screen

Everything you set in Lab 4 came across with the copy: the source workbook, the mapped parameters, the sheet name, the formats and the email.

Part B: Make every statement repeat#

Recall how the workbook works, from Lab 4 step 5. Only the Income Statement has control cells you type into, the Market and Year named ranges. The Balance Sheet and the Cash Flow have their own control cells in hidden rows at the top, and those cells are formulas that point back at the Income Statement:

Tab Market Year
Income Statement B5, the named range Market B6, the named range Year
Balance Sheet B2, which reads =Market B3, which reads =Year
Cash Flow B2, which reads =Market B3, which reads =Year

In Lab 4 that was all you needed: one year, so one copy of each tab, and the other two tabs followed the Income Statement. Now each tab repeats once per year, and a copy of the Balance Sheet cannot follow a copy of the Income Statement, so every copy has to be given its own year. That is what this part does, one tab at a time. And because each tab will now appear twice in the file, each copy needs a sheet name with the year in it.

3. Rename the Income Statement's copies#

On the Reports step, select Income Statement in the Report Selection panel. Under Income Statement Output Options, the Sheet Name you set in Lab 4 is summarized as Literal Text: %param:Market% - Financial Statements.

The report editor on Lab Financial Statements Sheet Replication, Reports step, with Income Statement selected, and the Income Statement Output Options section outlined in red, holding one row, Sheet Name, reading Literal Text: %param:Market% - Financial Statements
The report editor on Lab Financial Statements Sheet Replication, Reports step, with Income Statement selected, and the Income Statement Output Options section outlined in red, holding one row, Sheet Name, reading Literal Text: %param:Market% - Financial StatementsTap or click the image to view it full screen

Select the row to edit it. (Hovering over it also shows a pencil, which does the same, and an X, which removes the option.) The Sheet Name Options panel opens.

It looks different from the one you used in Lab 4, because in Lab 4 you set the sheet name before you chose PDF on the Distribution step. With PDF as an output format, the panel has three levels:

Leave Level 1, Level 2 and the checkbox alone for now; step 11 comes back to Level 2. In Level 3 - Sheet name, replace the text so that it reads %param:Year% - IS, then select Done. You can type the token, or delete %param:Market% and insert Year with the </> button, as in Lab 4.

The Sheet Name Options panel with its note explaining the three levels, empty Level 1 and Level 2 boxes, the Level 3 Sheet name box reading %param:Year% - IS and outlined in red, the PDF section break checkbox unticked, and the Done button outlined
The Sheet Name Options panel with its note explaining the three levels, empty Level 1 and Level 2 boxes, the Level 3 Sheet name box reading %param:Year% - IS and outlined in red, the PDF section break checkbox unticked, and the Done button outlinedTap or click the image to view it full screen

Select Save Changes.

Why the market has gone from the name. Each file is still one market's, so the market adds nothing that tells two tabs in the same file apart; the year is the only thing that differs from copy to copy. It also keeps the name short: 2026 - IS is 9 characters, well inside the 31 that Excel allows, so nothing is cut off the way Total Company - Financial State was in Lab 4.

4. Map the parameters on the Balance Sheet#

Select Balance Sheet in the Report Selection panel, and check that it is the highlighted row before you go on. Select Add a parameter. A row appears, named New Parameter: open the drop-down on its name and choose Market. Select Add a parameter again and choose Year for the second row.

The Reports step with Balance Sheet selected and outlined in the Report Selection panel, No output options added yet under Balance Sheet Output Options, and the Balance Sheet Parameters section outlined in red with two rows, Market and Year, each with an empty Cell, named range, or pivot field box, and the drop-down on the Market row outlined
The Reports step with Balance Sheet selected and outlined in the Report Selection panel, No output options added yet under Balance Sheet Output Options, and the Balance Sheet Parameters section outlined in red with two rows, Market and Year, each with an empty Cell, named range, or pivot field box, and the drop-down on the Market row outlinedTap or click the image to view it full screen

Choosing a name from the drop-down, rather than typing a new one, matters: it is the same Market and the same Year the job already has, with the values you give them on the Parameters step. A parameter's name is shared across the whole job.

Now say where each value goes on this tab. In the box on the right of the Market row, type B2. On the Year row, type B3. These are the cells, not named ranges: this workbook has no names on the Balance Sheet, and the Market and Year names both belong to cells on the Income Statement. Reportworq writes each copy's value straight into the copy's own B2 and B3, where the formulas pointing at the Income Statement used to be.

Want names on this tab too? You can, but not in this lab. Lab 4 explained why a named range is safer than a cell address. To give the Balance Sheet names of its own, open the workbook in Excel and name B2 and B3 with names that are not Market and Year, such as MarketBS and YearBS. Excel does not allow two workbook-level names that are the same, and distinct names keep it clear which tab each one drives. Save the workbook, then in Hands on Lab ▸ Source Files select Upload and upload it: Reportworq asks whether to overwrite the file with the same name, and replaces it in place, so every report that uses it keeps working. Back in the editor, select Reload Reports (the refresh icon from Lab 4 step 6) so the new names appear in the picker.

Still on the Balance Sheet, under Balance Sheet Output Options, select Add output option, then Sheet Name, and set Level 3 - Sheet name to %param:Year% - BS. Select Done, then Save Changes.

The Balance Sheet selected on the Reports step, with its output options and parameters sections outlined in red together: a Sheet Name row reading Literal Text: %param:Year% - BS, Market mapped to B2 and Year mapped to B3, and the header reading Unsaved and Discard beside the report name
The Balance Sheet selected on the Reports step, with its output options and parameters sections outlined in red together: a Sheet Name row reading Literal Text: %param:Year% - BS, Market mapped to B2 and Year mapped to B3, and the header reading Unsaved and Discard beside the report nameTap or click the image to view it full screen

5. Do the same for the Cash Flow#

Select Cash Flow and repeat step 4: add Market on B2 and Year on B3, and a Sheet Name of %param:Year% - CF. Select Save Changes.

All three statements now carry both parameters and a sheet name built from the year. The four hidden data tabs have no parameters mapped, so they are not copied.

6. Give Year two values#

Select the Parameters step. Both rows now say they are mapped in more than one worksheet. Select the pencil on the Year row.

The Parameters step outlined in red, with Market on One report per item and Year on One page per item, showing Global Parameter: Current Year (2026) as its default value, both Mapped in: Income Statement, Balance Sheet and more, and the pencil on the Year row outlined
The Parameters step outlined in red, with Market on One report per item and Year on One page per item, showing Global Parameter: Current Year (2026) as its default value, both Mapped in: Income Statement, Balance Sheet and more, and the pencil on the Year row outlinedTap or click the image to view it full screen

In the panel that opens:

  1. Set Parameter Type to Text List.

  2. Type these into Items, one per line, with no commas:

    2025
    2026
    
  3. Under Parameter Options, leave One page per item selected, as you set it in Lab 4. This is the setting that makes the tabs repeat.

  4. Select Save & Close.

The Edit Year panel with Parameter Type set to Text List and outlined in red, 2025 and 2026 in the Items box, outlined, One page per item selected and outlined under Parameter Options, the Security section grayed out, and the Save & Close button outlined
The Edit Year panel with Parameter Type set to Text List and outlined in red, 2025 and 2026 in the Items box, outlined, One page per item selected and outlined under Parameter Options, the Security section grayed out, and the Save & Close button outlinedTap or click the image to view it full screen

You have told Reportworq: here are two years, and I want each one as its own set of pages inside the same file. The workbook holds actual figures for 2022 to 2026, so both years calculate.

The trade-off. In Lab 4, Year came from the Current Year global parameter, so it moved on by itself when the year rolled over. A typed list does not: when the years move on, someone has to edit this list.

Select Save Changes.

7. Take Year out of the file name and the subject#

Select the Distribution step. In Lab 4 the File Name was Year - Market Financial Statements. That worked because Year had one value. A parameter set to One page per item puts all its values into one file, so when you use it in a file name, a subject or a message, it shows all of them, joined with a comma and a space. The Canada file would be called 2025, 2026-Canada Financial Statements.

The rule: keep a One page per item parameter out of the file name and the subject. Select the X on the Year pill in the File Name box, and delete the - after it, so the box holds the Market pill and Financial Statements. Do the same in the email's Subject. Select Save Changes.

The Distribution step outlined in red, with the File Name box and the Subject row each outlined, each holding a Market pill followed by Financial Statements, the Excel and PDF formats and the Email destination still ticked, and Save Changes outlined at the top right
The Distribution step outlined in red, with the File Name box and the Subject row each outlined, each holding a Market pill followed by Financial Statements, the Excel and PDF formats and the Email destination still ticked, and Save Changes outlined at the top rightTap or click the image to view it full screen

Leave the message alone. It still says Attached is your Year financial statements for Market, and you are going to see what that does.

Part C: What you got#

8. Preview it#

Select the Test step, then Generate Preview.

The Test step outlined in red, reading Preview ready, with seventeen rows from #1 Total Company to #1 Southeast Asia, and the General panel for Total Company showing Market Total Company and Year 2025, 2026, the Year row outlined
The Test step outlined in red, reading Preview ready, with seventeen rows from #1 Total Company to #1 Southeast Asia, and the General panel for Total Company showing Market Total Company and Year 2025, 2026, the Year row outlinedTap or click the image to view it full screen

Still seventeen rows, one per market: Market is still One report per item, and adding years to a One page per item parameter adds pages, not files. Select a row, and the General panel shows Year as 2025, 2026: both values, in the same output.

9. Run one and open it#

Select the Run button (the play icon) on the Total Company row. As in Lab 4, this is a dry run: the files are real, and nothing is sent.

A finished dry run of Total Company, with the files Total Company Financial Statements.pdf and Total Company Financial Statements.xlsx, the subject Total Company Financial Statements, and the message line Attached is your 2025, 2026 financial statements for Total Company outlined in red
A finished dry run of Total Company, with the files Total Company Financial Statements.pdf and Total Company Financial Statements.xlsx, the subject Total Company Financial Statements, and the message line Attached is your 2025, 2026 financial statements for Total Company outlined in redTap or click the image to view it full screen

Check three things:

Open the PDF on its table of contents.

The PDF's table of contents: Lab Financial Statements Sheet Replication, then Financial_Board_Book.xlsx under it, then 2025 - IS, 2026 - IS, 2025 - BS, 2026 - BS, 2025 - CF and 2026 - CF, on pages 2 to 7
The PDF's table of contents: Lab Financial Statements Sheet Replication, then Financial_Board_Book.xlsx under it, then 2025 - IS, 2026 - IS, 2025 - BS, 2026 - BS, 2025 - CF and 2026 - CF, on pages 2 to 7Tap or click the image to view it full screen

The top two entries are the Level 1 and Level 2 you left blank in step 3: the job's name, then the report's, which is the workbook's file name. Under them come the six sheets, in this order: 2025 - IS, 2026 - IS, 2025 - BS, 2026 - BS, 2025 - CF, 2026 - CF. By default, the copies of each worksheet stay together, in the order the worksheets are listed.

10. Group the pages by year#

Suppose the board wants the 2025 statements together, then the 2026 statements. Lab 4 described an option on the Parameters step that does exactly that. Go back to Parameters, select the pencil on Year, tick Group & collate pages that use this parameter, and select Save & Close, then Save Changes.

The Parameters step outlined in red, with Year now One page per item with default value 2025, 2026, and the Edit Year panel open over it with One page per item selected, Group & collate pages that use this parameter ticked and outlined, and the Save & Close button outlined
The Parameters step outlined in red, with Year now One page per item with default value 2025, 2026, and the Edit Year panel open over it with One page per item selected, Group & collate pages that use this parameter ticked and outlined, and the Save & Close button outlinedTap or click the image to view it full screen

Select the Test step. The preview you generated earlier is still showing, and the editor tells you it is stale in three places: the step reads Out of date under Test, the list ends with * Preview data is out of date., and the Generate button carries a warning icon.

The Test step outlined in red and reading Out of date, the earlier Total Company dry run still showing on the right, and the Preview data is out of date note and the Generate button with its warning icon outlined at the bottom of the list
The Test step outlined in red and reading Out of date, the earlier Total Company dry run still showing on the right, and the Preview data is out of date note and the Generate button with its warning icon outlined at the bottom of the listTap or click the image to view it full screen

Saved or not? The header beside the report's name reads Saved, or Unsaved with a Discard link, and Save Changes is grayed out when there is nothing left to save. You do not have to save before you test: the preview runs on the job as it is in the editor, so you can try a change in the Test step first and save it only once it does what you want.

Select Generate, run the Total Company row again, and open the new PDF.

The PDF's table of contents after Group & collate: under Lab Financial Statements Sheet Replication and Financial_Board_Book.xlsx, the entries 2025 - IS, 2025 - BS and 2025 - CF, outlined in red, followed by 2026 - IS, 2026 - BS and 2026 - CF
The PDF's table of contents after Group & collate: under Lab Financial Statements Sheet Replication and Financial_Board_Book.xlsx, the entries 2025 - IS, 2025 - BS and 2025 - CF, outlined in red, followed by 2026 - IS, 2026 - BS and 2026 - CFTap or click the image to view it full screen

Now the pages are grouped by year: 2025 - IS, 2025 - BS, 2025 - CF, then 2026 - IS, 2026 - BS, 2026 - CF. The Excel file's tabs follow the same order.

The order of the Items list decides which year comes first. Reportworq takes the values in the order you typed them, so 2025 comes first here. Put 2026 first in Items and the 2026 statements lead.

11. Give each year its own heading in the PDF#

The table of contents still has Financial_Board_Book.xlsx, the workbook's file name, as the heading over all six sheets. That is the Level 2 you left blank in step 3. Now that the pages are grouped by year, you can make the year the heading.

Select the Reports step, then Income Statement, and select its Sheet Name row. In Level 2 - PDF bookmark report, type %param:Year% - Financial Statements, or insert Year with the </> button and type - Financial Statements after it. Leave Level 1 and Level 3 as they are, and select Done.

The Sheet Name Options panel for the Income Statement, with Level 1 blank, Level 2 reading %param:Year% - Financial Statements and outlined in red, Level 3 reading %param:Year% - IS, and the PDF section break checkbox unticked
The Sheet Name Options panel for the Income Statement, with Level 1 blank, Level 2 reading %param:Year% - Financial Statements and outlined in red, Level 3 reading %param:Year% - IS, and the PDF section break checkbox untickedTap or click the image to view it full screen

Do the same on the Balance Sheet and the Cash Flow, with the same Level 2 on each. Select Save Changes.

Why set it on all three tabs? A level left blank takes its value from the sheet before it in the output. With Group & collate on, the sheet before each Balance Sheet is the Income Statement for the same year, so setting Level 2 on the Income Statement alone would happen to work. Turn Group & collate off, though, and the first Balance Sheet (2025) comes straight after the 2026 Income Statement, and would be filed under 2026. Setting the level on every tab that repeats gives each copy its own value, whatever the order.

Select the Test step, Generate, run Total Company again, and open the PDF.

The PDF's table of contents with a heading per year: Lab Financial Statements Sheet Replication, then 2025 - Financial Statements over 2025 - IS, 2025 - BS and 2025 - CF, then 2026 - Financial Statements over 2026 - IS, 2026 - BS and 2026 - CF, with both year headings outlined in red
The PDF's table of contents with a heading per year: Lab Financial Statements Sheet Replication, then 2025 - Financial Statements over 2025 - IS, 2025 - BS and 2025 - CF, then 2026 - Financial Statements over 2026 - IS, 2026 - BS and 2026 - CF, with both year headings outlined in redTap or click the image to view it full screen

Under the job's name there are now two headings, 2025 - Financial Statements and 2026 - Financial Statements, each over its own three statements. Reportworq starts a new heading whenever the Level 2 value changes from one sheet to the next, and puts consecutive sheets that share a value under one heading. That is why this works best with the pages grouped: without Group & collate, the years alternate, and you would get a new heading for every sheet. Level 2 exists only in the PDF; the Excel file's tabs and contents are unchanged.

Level 1 works the same way one step up: it replaces the job's name at the top of the tree, and a change in its value starts a new top-level entry.

That is the whole lab: one parameter, now doing real work inside each file.

Why it works this way#

A worksheet repeats for the parameters mapped on it, and only those. Reportworq copies the worksheet once per value and writes that copy's value into the cells you mapped. It does not follow the workbook's formulas to work out which tabs depend on a parameter. That is why the Balance Sheet needed its own mappings: without them it would have appeared once, not once per year, however many copies of the Income Statement there were.

One page per item means one file holds every value. So anything that names the file, or the email that carries it, sees the whole list. One report per item is the opposite, one value per file, which is why Market is still safe in the file name and the subject. Knowing which kind of parameter you are putting into a name is most of the work of naming output.

The PDF bookmarks follow the order too. Level 2 and Level 1 start a new heading when their value changes from one sheet to the next, so grouping the pages first is what makes a heading per value possible.

Group & collate changes only the order. It moves the worksheets that use the parameter so that they are grouped by value, in the order of the parameter's list; the pages themselves are the same. Worksheets without the parameter keep their order among themselves, but one that sat between two worksheets that use it moves to after them.

Try this#

  1. Change which year leads. With Group & collate still on, put 2026 above 2025 in Year's Items, generate, and run Total Company. The 2026 statements now come first.
  2. Add a year. Add 2024 to the list. Nine tabs, three per year, and still seventeen files.
  3. See why the names matter. On the Cash Flow, set the sheet name to CF alone, without the year, and run Total Company. Two tabs cannot share a name, so Reportworq numbers the second one, and the workbook's tabs come out as CF and CF(1), which tells nobody which year is which. The PDF's table of contents is no better: it lists CF twice. Put %param:Year% - CF back.

Notes and limits#

Going deeper. For the replication modes and Group & collate, see the parameters reference. For the sheet name and the three PDF bookmark levels, see Worksheet output options. For how parameter values appear in file names and subjects, see Name and organize output.

Next#

Lab 6: Burst sets, and parameters that are not on a worksheet. Next you turn a parameter on for burst sets, which switches on the Bursting step you have left grayed out since Lab 4, and take finer control of how parameter values combine. Then you use a parameter only for reference in the email, not written into any tab.

Feedback on this page

Comments, questions, requests, or something missing or unclear? Email us - the page you are on is filled in for you.

Email feedback on this page

Or write to support@reportworq.com directly.