Use Codex or Claude Code to build a report from your own data. In VDM, the View defines which records to retrieve and how to calculate the results. The Finished Report lays out those results for readers. You can check the numbers before spending time on the layout.
Watch the weekly sales report walkthrough on YouTube.
Describe the report you need
- In your assistant’s chat, name the VDM Connection Profile you want to use. Ask which tables and fields are available for your report. If the assistant cannot see the profile, see Set Up VDM MCP with an AI Assistant.
- Say who will read the report and what question it should answer. Describe what one row represents, which records to include, and how to calculate each total. For example, “Show one row per region with net sales and order count for the dates I choose. Count each order once.”
- Give the assistant any definitions it cannot learn from the schema. For example, if returns reduce net sales, explain where returns are recorded and which date determines when they count. An existing report with trusted figures can help you explain the rule.
Build and check the View
- Ask the assistant to draft the View and explain its joins, filters, and calculations. If readers need to select a reporting period and the profile supports typed query parameters, ask for start and end date prompts. Specify whether the end date includes the entire day.
- Review the proposed query, supply any required values, and ask the assistant to run it. Check a record or group you recognize and compare the overall total with a trusted source for the same filters. If the preview shows only a sample, ask for a total calculated across all matching records.
Design and save the Finished Report
- Tell the assistant how to present the results. For example, “Create a Finished Report with the reporting period in the heading, a summary on the first page, and a table grouped by region.” Specify the sort order, page orientation, or subtotals your readers need.
- Ask for a preview. Check that headings, totals, and page breaks make sense. Request changes in the same chat. If the View uses prompts, try another set of values and check that the heading and figures change together.
- Ask the assistant to save the View and Finished Report together as a
.vdmfile and return the file location. If you need a copy to share, request a PDF and open it to check the final layout. To automate future exports, see Create and Schedule a Job with VDM MCP.
Comments
0 comments
Please sign in to leave a comment.