Reports
A report is a document that places graphs and tables created in analysis tabs within a body written in Markdown. This page refers to the graphs and tables placed in a report as elements. In the body, you write a {{type:id}} marker where an element should be drawn. type is the kind of element and id is the element's ID. This page refers to this marker as an element reference.
MIDAS saves reports as part of the project.
An element holds only which dataset or model to draw from and the settings of the graph or table. MIDAS redraws each element with those settings every time it displays the report. As a result, when you correct the source data, the elements in the report also change. For how MIDAS recomputes datasets and models when the source data changes, see Datasets and Dependencies.
When you delete a dataset or model that an element draws from, MIDAS removes that element from the report and also removes its references from the body.

Creating Reports
There are two ways to create a report: View > Report > New Report... in the menu bar, and Add to Report in an analysis tab. New Report... creates an empty report. Add to Report creates a new report containing the added element when you choose a new report as the destination.
You delete reports in Project Overview or Project Lineage.
Adding Elements
You add elements from Add to Report in each analysis tab. MIDAS appends the reference to the added element to the end of the body and draws the element at the end of the report. For the elements each tab can add and the settings MIDAS carries over from the tab to the element, see the page for each tab.
Editing the Body
You edit the body as Markdown in the editor that Edit Content in the ⋮ menu at the top of the report opens.
MIDAS draws an element at the position of a line that contains only that element's reference. MIDAS does not draw a reference written in the middle of a line as an element, and displays it as plain text. When you write references to the same element on multiple lines, MIDAS draws the element at the position of each line. MIDAS does not display an element whose reference appears on no line, but does not delete it from the report.
The editor has two features for writing references. When you type {{ at the start of a line, the editor suggests the report's elements as candidates. When you click an element name in the editor's Report Elements list, the editor copies that element's reference to the clipboard.

MIDAS also draws GFM (GitHub Flavored Markdown) tables and math enclosed in $ written in the body.
MIDAS neither renders HTML tags written in the body as HTML nor shows them as literal text.
The body can contain links to headings and links to external sites. You write a link to a heading in the form [text](#anchor), where anchor is the string made from the heading text by the same rules as GitHub. When the project's trust level is Unknown, MIDAS disables links to external sites and displays only the link text. For trust levels, see Opening MDS from Unknown Signers.
The Contents button at the top of the report opens a list of the headings in the body. When you choose a heading in the list, MIDAS scrolls the report until that heading is visible.
Working with Elements
The ... button at the top right of an element opens the menu for working with that element. MIDAS displays this button when you hover the mouse over the element. On touch devices, MIDAS always displays the button.
When you change the settings or size of an element referenced from multiple lines, the display changes at every position where the element is drawn.

Changing Settings
View settings changes the settings of graph, crosstab, and data table elements. For a graph, whichever tab it was added from, you can change the items that the Graph Builder tab lets you set for the same kind of graph. For a crosstab, you can change the columns assigned to rows, columns, and values, and the aggregation function of the values. You cannot change the display settings in the Crosstab tab, such as total rows and columns or percentage display. For a data table, you can change the columns to display and the maximum number of rows.
Saving a Graph as SVG
Export saves a graph element as an SVG file. The export dialog is the same as the one in the Graph Builder tab, so for its settings see Export in the Graph Builder tab. When exporting from a report, the SVG does not include the element's heading, and the graph uses the whole specified height. MIDAS does not use the aspect ratio set with Resize; it draws the graph to fit the width and height specified in the dialog.
Duplicating and Deleting Elements
Duplicate creates a copy of the element and appends the copy's reference to the end of the body. The copy is a separate element from the original, so changing the copy's settings does not change the original.
Delete removes the element from the report and also removes all of its references from the body.
Changing Placement and Size
Resize in the element's ... menu changes the horizontal alignment and width. For graph and crosstab elements, you can also change the aspect ratio. MIDAS sets the height of other elements to fit their content.
Printing and Saving as PDF
To print a report, choose Print / Save as PDF in the ⋮ menu. MIDAS opens Reading View, and opens the browser's print dialog after it has finished drawing all graphs and tables. To create a PDF, choose PDF as the destination in the print dialog.
Setting Up the Paper
Page setup in the ⋮ menu sets the paper size, orientation, and margins, and the header, footer, and page numbers printed on every page. For a report whose paper is not set, the browser prints with the paper, orientation, and margins chosen in the print dialog.

Firefox does not print the header, footer, or page numbers.
Specifying Page Breaks
In the Resize dialog, you can specify for each element whether to keep the element from being split at a page boundary and whether to start the element on a new page.
Printing Wide Tables
In the Resize dialog, you can also choose how to print data tables and crosstabs that are wider than the paper.
Safari prints tables for which Print on a landscape page is chosen in the same orientation as the other pages.
Choosing Shrink text to fit does not guarantee that the table fits the width of the paper. MIDAS does not shrink the table below the scale specified in Minimum text scale in the dialog, so the part that does not fit even at that scale is cut off at the edge of the paper. Also, for a report whose paper is not set, MIDAS determines the scale assuming A4 portrait paper with 20 mm margins. If the width of the paper chosen in the print dialog minus its margins is narrower than the width of A4 portrait minus 20 mm margins, the shrunk table may not fit within the paper width. When you print a table with Shrink text to fit chosen, specify the paper and margins to print on in Page setup.
Displaying in Reading View
Reading View is a screen that hides the menus for editing and displays only the report. Reading View in the ⋮ menu opens Reading View, and the Exit Reading View button in Reading View closes it. The Print button in Reading View also opens the browser's print dialog.

Before opening Reading View, MIDAS saves the project to the browser. When another browser tab has modified the same project, MIDAS asks whether to overwrite it. If you choose Open Without Saving there, MIDAS opens Reading View without saving. For how saving works, see Save to Browser.
See also
- Datasets and Dependencies - Dependencies among datasets, models, and reports, and recomputation
- Agent API - Working with reports from programs
Also available as a Markdown file.