MicroStrategy ONE

Create Freeform SQL Reports

MicroStrategy 2021 Update 7 introduced the ability to create Freeform SQL reports as a preview feature. Starting in the MicroStrategy 2021 Update 8, this feature is shipped out-of-the-box.

Freeform SQL reports require you to first define a valid SQL statement. You must also map objects to the data returned by your SQL statement. Once these tasks are complete, you can begin reporting and analyzing the data returned from your SQL statement with the Report Editor. SQL reports that you create and edit in Workstation can also be run in Library.

To create or edit Freeform SQL reports you must at least have the following privileges:

  • Use Freeform SQL Editor

  • Use Design Mode

  • Create Schema Objects

  1. Open the Workstation window.

  2. Choose File > New Freeform SQL Report.

  3. Select the Data Source from the top left drop down.

  4. Open the Data Catalog tab and click Connect.

  5. Enter your SQL statement in the SQL Editor. You can browse through objects on the Data Catalog tab and drop them into the editor.

  6. Click Execute SQL.

  7. Map the columns from your SQL statement in the Mapping section located at the bottom. Click Executing SQL if you want to send the query to the data source for a more accurate definition or Parsing SQL to simply use the statement typed in the editor.

  8. Search for existing schema and application objects.

  9. Create your own objects and define the Data Format.

  10. Click Save and Open Report .

  11. The Report Editor opens so you can create the grid view based on your query results. You can perform actions available for regular reports such as modifying the format, viewing the SQL, changing advanced properties, and more. The main difference is that the Object Browser only displays the elements defined by your mapping.