{"title":"Linking sheets","url":"https://docs.vismasoftware.no/onestopreporting/reporting/reports/report-designer/creating-reports/linking-sheets/","link":"/onestopreporting/reporting/reports/report-designer/creating-reports/linking-sheets/","description":"Use INDIRECT formulas to maintain sheet references with expanding data groups.","content":"\u003cp\u003eLinking sheets in the \u003cstrong\u003eOSR Report Designer\u003c/strong\u003e cannot be done in the same manner as in a regular workbook. To link sheets in the \u003cstrong\u003eReport Designer\u003c/strong\u003e, formulas are required because of the complexities of expanding groups and references between worksheets. This section will explain the steps for setting up a simple linked sheet. The concept can be applied to design more complex reports.\u003c/p\u003e\n\u003ch2 id=\"link-sheets\" class=\"group\"\u003eLink sheets\u003ca class=\"prose-heading-self-link\" href=\"#link-sheets\" aria-label=\"Heading self-link\"\u003e\u003c/a\u003e\n\u003c/h2\u003e\n\u003cp\u003eIn this example, two identical sheets will be created, but the second sheet will reference cells from the first sheet.\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003e\n\u003cp\u003eCreate a simple report with these items:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003eFrom the \u003cstrong\u003eGeneral Ledger\u003c/strong\u003e folder, insert d\u003cem\u003eepartment, account, description\u003c/em\u003e (under the \u003cstrong\u003eAccount\u003c/strong\u003e dimension), and \u003cem\u003eamount\u003c/em\u003e into cells B8 through E8.\u003c/li\u003e\n\u003cli\u003eDrag the \u003cstrong\u003ePeriod\u003c/strong\u003e dimension into cell E6\u003c/li\u003e\n\u003cli\u003eDrag the \u003cstrong\u003eYear to date\u003c/strong\u003e function from the \u003cstrong\u003ePeriod Functions\u003c/strong\u003e module into cell E3.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eThe report should look like the figure below shown below.\u003c/p\u003e\n\n    \u003cblockquote\u003e\n        \u003cp\u003e\u003cstrong\u003eNOTE:\u003c/strong\u003e Make sure that a group is created on row 8 and column E.\u003c/p\u003e\n\n    \u003c/blockquote\u003e\n\n\u003cp\u003e\u003cimg src=\"/onestopreporting/reporting/reports/report-designer/creating-reports/linking-sheets/img/en/Linking-sheets_1.png\"\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eRight-click the worksheet and select \u003cstrong\u003eOneStop Reporting\u003c/strong\u003e \u003cem\u003e\u0026gt;\u003c/em\u003e \u003cstrong\u003eCopy\u003c/strong\u003e.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eCreate a new worksheet.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eRight-click on the new sheet tab and select \u003cstrong\u003eOneStop Reporting\u003c/strong\u003e \u003cem\u003e\u0026gt;\u003c/em\u003e \u003cstrong\u003ePaste as new\u003c/strong\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cimg src=\"/onestopreporting/reporting/reports/report-designer/creating-reports/linking-sheets/img/en/Linking-sheets_2.png\"\u003e\u003c/p\u003e\n\u003cp\u003eNow, you must create reference names on the first sheet.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eAccess the first sheet (Sheet 1) and highlight cells E6 and F6. In the name box, rename this set of cells Period2.\u003c/p\u003e\n\u003cp\u003e\u003cimg src=\"/onestopreporting/reporting/reports/report-designer/creating-reports/linking-sheets/img/en/Linking-sheets_3-1024x366.png\"\u003e\u003c/p\u003e\n\n    \u003cblockquote\u003e\n        \u003cp\u003e**NOTE:**The reason for selecting an extra cell to the right is because the group in column E contains an expanding group that will result in an unknown number of columns. Selecting the extra cell ensures that all columns created by the expansion are included in the reference. The same would apply if an expanding group existed in the row group. However, for an expanding group on a row, the extra cell selected should be one cell below.\u003c/p\u003e\n\n    \u003c/blockquote\u003e\n\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eAccess the copied version of the report in \u003cem\u003eSheet1(1)\u003c/em\u003e. Delete the contents of cell E6 and link the period from the original sheet by entering the formula =INDIRECT(\u0026ldquo;Sheet1!Period2\u0026rdquo;).\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003e\u003cimg src=\"/onestopreporting/reporting/reports/report-designer/creating-reports/linking-sheets/img/en/Linking-sheets_4-1024x368.png\"\u003e\u003c/p\u003e\n\u003cp\u003eYou can now execute the report and the sheets will look identical because the \u003cem\u003ePeriod\u003c/em\u003e dimension in the second sheet is referencing the \u003cem\u003ePeriod\u003c/em\u003e dimension in the original sheet.\u003c/p\u003e\n","children":[]}