DelegIA
Get started

AI data analytics: what sales and ERP data can tell you

AI data analytics tools can compare your sales and costs, flag differences, and suggest questions to investigate. Your team checks the data and calculations before deciding what to change in the business.

9 min read
Two emblems with simple database and bar chart icons against a dark purple background.

Start with a question about your business: where margins are shrinking, which jobs are running over budget, or which customers are buying less. AI can help you work through it using an Excel file. If you need to ask the same question regularly, we can look at connecting it to your ERP.

What your sales and ERP data can tell you

Data analysis with AI can help you investigate a change in your numbers by breaking it down by customer, product, or period to see where it's concentrated. If you want to analyze margins, you'll need cost data as well as sales figures.

Business questionInformation neededWhat your team checks
Where are sales falling?Comparable sales by date, customer, and productWhether the decline is in units, prices, or order count, and whether any transactions still need to be recorded
Why are we selling more but making less?Net sales and costs using the same margin definitionWhether discounts, costs, or the mix of products and services have changed
Which jobs are running over budget?Budget and actual costs or hours for each jobWhether there was an overrun or an approved scope change that hasn't been added to the budget
Where are delays building up?Planned dates, actual dates, and order statusesWhether the delay is still unresolved and which parts of the process are within our control

For each difference, ask how much money or time is involved and which records explain it. Someone who knows the work can then review those records and decide whether to act. A list of "improvement opportunities" gives you little to discuss in a meeting if you can't trace it back to the data.

You can also combine the numbers with written explanations, such as comments on lost orders or delivery problems. AI can group those comments to look for recurring themes. Have someone familiar with the work review a sample to check that the categories match what the comments actually say.

Agree on what each number means before comparing it

Define what counts as a sale. It could be an accepted order, a delivery, an invoiced sale, or a payment received. Comparing this month's orders with last month's payments won't tell you how sales have changed.

For margins, specify which costs to include, how to handle discounts and returns, and whether you want the result in dollars or as a percentage. To calculate the overall margin as a percentage of sales, use the totals. Averaging individual transactions' margin percentages can give a different result because the transactions don't all carry the same weight.

Use comparable periods, too: two completed months or the same portion of each month. For months still in progress, state each cutoff date. Check for holidays, promotions, or catalog changes that could affect the comparison, and keep missing values marked as missing instead of automatically treating them as zero.

If your dashboard already uses these definitions, keep them when combining data analytics and AI. Continue tracking your regular metrics in the dashboard and use AI to ask new questions about them or explore differences. That way, you can discuss the results without first having to reconcile numbers calculated in different ways.

From a file to an answer you can check

You can use AI for data analysis in ChatGPT by uploading a spreadsheet or CSV file. It can run calculations in Python and create tables or charts. Claude can also run code to analyze files. With either tool, you can ask questions in your own words and follow up on the results.

Work with a copy of the file and keep the original. For your first question, use an export with clearly labeled columns and explain what each row represents: an order, an order line, or a transaction. If you mix those up, you can end up counting the same amount more than once.

Instead of "analyze my sales," a useful request would be:

"Compare net sales for the last completed month with the previous month, by customer. Use the sale date and exclude canceled orders. Show each month's total and how much each customer's sales increased or decreased, in dollars and as a percentage of that customer's sales in the previous month. Rank customers by their dollar contribution to the overall change. If the previous month's sales were zero, show the dollar change and state that the percentage can't be calculated from that base. Show which rows you used, what you excluded, and what data is missing. If any column is unclear, ask me before calculating."

Adapt the request to use your file's column names and explain how returns are recorded. If you want to compare against the same month last year, say so. Even with clear instructions, you'll need to check that the tool followed them.

Review the result with someone who knows the data:

  • Compare the total with your ERP or a calculation you've already validated. If it doesn't match, find out which records or filters account for the difference.
  • Check the dates and rows used. Uploading a file successfully doesn't prove the tool analyzed every sheet.
  • Ask to see the calculation or code and check how it totals and groups the data and joins tables. If needed, have whoever maintains your reports review it.
  • Separate the observation from the proposed explanation. "This customer's sales have fallen" can be checked against their transactions; "they switched to a competitor" requires other information.

OpenAI recommends reviewing the code, outputs, and assumptions when ChatGPT uses Python. Save the reviewed result with the export and its cutoff date so you can reproduce the comparison.

What's the best AI for data analysis?

We'd start with the tool your team already uses, as long as it lets you check the work.

Where the work happensWhat we'd try firstWhat it can do and what to check
A one-time export you want to exploreChatGPTAnalyzes files, runs calculations, and creates charts. Check which sheets, rows, and assumptions it used
Files you want to analyze and use to create something for your teamClaudeRuns code and creates files, including spreadsheets. Review the calculations and the file it produces
A workbook your team uses in ExcelCopilot in ExcelAnswers questions about tables and ranges using Python-based analysis. This feature lets you insert some responses as static tables or images, but they won't update when the data changes. To repeat the analysis, run it again with the updated data
Metrics you already organize in Power BICopilot in Power BILets you query and summarize report information. It requires organizational capacity and configuration; a Pro or Premium per-user license alone isn't enough

Compare AI data analysis tools using the same data and questions, starting with the options above and the capabilities their vendors document. Upload the file to ChatGPT and Claude, work in the workbook with Copilot in Excel, or use a Power BI report whose model contains that data. Include questions you already know the answers to so you can check the totals. See whether each tool recognizes missing data and how much work it takes to review and use the results.

Ask the tool to explain unexpected results, too. If its answer changes when you repeat a question, check whether the calculation changed or just the wording. Count the time you spend correcting the results when deciding whether the tool works for you.

If you're focused on spreadsheets, our article on AI for Excel covers the options and how to use them within a workbook.

Are there free AI tools for data analysis?

ChatGPT's free plan lets you upload files and analyze data, with separate limits for those features. You can try a question with sample data first. If you plan to use it regularly, check whether those limits will let you finish the work when your team needs the answer.

Before uploading company data, review the account type and its terms. On personal accounts, OpenAI lets you turn off the use of new conversations to improve its models. If you later submit feedback on a response from a personal account, the associated conversation may be used to train models. By default, OpenAI doesn't use inputs and outputs from Business, Enterprise, or its API for model training. You'll still need to decide which files are appropriate to upload. Use the account your company authorizes and share only the fields you need.

For example, you may be able to analyze sales by product without including customer names, phone numbers, or addresses. If you need to track the same customer over time, you can use a consistent customer code. Check who can access both the file and the conversation you used to analyze it.

When you need to query your ERP every week

If someone exports, joins, and reviews the same files every week, consider connecting to your ERP so you can repeat the query with updated data and the same definitions. First, check what access the software allows and how often the data updates. Assign someone to maintain the data connection and agree on who gets notified if it fails or data needed for a calculation is missing.

For a system that answers questions, we'd give it read access to the data it needs and set permissions for each person using it. Define repeatable sales and margin calculations so AI can interpret the question, request the right breakdown, and explain the result. The answer should include the last update date and let you trace the numbers back to the records behind them.

When you use AI for data analytics across several systems, check which records belong to the same order, customer, or job. For example, joining an order to multiple delivery lines can cause you to count its value more than once. Handle that in the query so the calculation doesn't depend on how someone phrases a question.

If you want alerts, agree on which differences should trigger one, who receives it, and what they need to check. A rule can handle a fixed threshold. AI helps you explore a difference, connect information, or explain the details. If your ERP already has a report that answers the question well, we can keep it and work from there.

Keep permissions for querying data separate from permissions for changing it in the ERP. You can find a drop in margin with read access. Changing prices, orders, or budgets requires a separate action, and you'll need to decide who approves it. This separation lets you investigate what's happening without changing the source data.

From a difference to a decision

A change in the numbers gives you something to investigate. Someone who knows the business then needs to confirm what happened and what you can change. If a product's sales have fallen, check whether it was out of stock, whether a promotion was different, or whether the price changed. Two things happening at the same time doesn't prove that one caused the other.

Choose a recurring question your team spends time answering now, and identify someone who can check the result. Measure the time spent preparing the data, analyzing it, and reviewing the answer, both with your current system and with the proposed connection. Compare license, development, and maintenance costs with the value of the time saved and the work your team can do with it. That time gives your team room for other work; cash savings depend on which costs actually go down.

At DelegIA, we add AI to the ERP you already use or build the parts you're missing. Our custom ERP development page explains how we connect business data so you can query it, spot differences, and prepare work for your team to review.

Sources

  1. OpenAI, file analysis, calculations, and review in ChatGPT. Accessed December 3, 2026. help.openai.com
  2. Anthropic, analyzing and creating files with Claude. Accessed December 3, 2026. support.claude.com
  3. Microsoft, data analysis answers with Copilot in Excel. Accessed December 3, 2026. support.microsoft.com
  4. Microsoft, Copilot in Power BI features and requirements. Accessed December 3, 2026. learn.microsoft.com
  5. OpenAI, free-plan analysis and limits and how data is used to improve models. Accessed December 3, 2026. help.openai.com
  6. Databricks, augmented analytics, definitions, and data quality. Accessed December 3, 2026. www.databricks.com
  7. IBM, AI analytics and types of information. Accessed December 3, 2026. www.ibm.com
Albert López

Written by

Albert López

Founder of DelegIA. He helps small and midsize businesses in Spain decide where AI makes sense, implements the systems they agree on, and supports the teams using them.

LinkedInReviewed on December 3, 2026

Tell us what you want to learn from your business data

Leave your contact information and we'll call you.

Albert López, founder of DelegIA
albert@delegia.es

Albert López

Founder of DelegIA