Skip to content
Workflow · Track and forecast · Opening soon

Xero profit and loss by month, with big swings flagged

Export the profit and loss lines from Xero for the months you want, then load the file into Mammoth. The workflow groups each account by month, totals the amounts, and shows one row per account for May through Oct 2026.

Early access opens shortly. Check back soon.

Someone typed

“show xero profit and loss by account for may through oct 2026, one row per account, total each month; status Agrees, Negative expense, Missing month, or Big swing when a month changes more than 40% from the prior one.”

The agent read it as

Show Xero profit and loss lines by account and month by account for May through Oct 2026, one row per account, total each month; status Agrees, Negative expense, Missing month, or Big swing when a month changes more than 40% from the prior one, with Missing month first.

What the agent built

1 step, each one an ordinary Mammoth step you can open and change.

  1. File
    Xero profit and loss lines by account and month
    CSV export · 42 rows
  2. Step
    Total each account by month
    Step 1
  3. Result
    Monthly Account P&L Flags
    7 rows · 3 flagged
  4. Schedule
    Runs when you say
    Proposed

On the sample files, every step runs and the result has 7 rows.

What you get back

The result of that run, the rows to look at first.

Monthly Account P&L FlagsSample data7 rows
4 agrees2 big swing1 missing month
AccountStatusMay 2026Jun 2026Jul 2026Aug 2026Sep 2026Oct 2026Account Type
RentMissing month3,8003,8003,800·3,8003,800Expense
AdvertisingBig swing2,2002,3002,4002,5004,5004,300Expense
Office SuppliesBig swing31029034028032070Expense
Client ServicesAgrees14,80016,25015,50017,10016,85018,200Revenue
Contractor LaborAgrees6,2007,1006,8007,3507,9008,450Direct Costs
Software SubscriptionsAgrees1,4501,5251,4901,5801,6601,740Direct Costs
Strategy ConsultingAgrees9,60010,40011,25010,80012,10011,850Revenue
7 rows in the result. Sample data: illustrative figures, not business results.

How it works

How to use the Monthly Account P&L Flags workflow

  1. 1Get early accessWe invite people in small batches, job by job. You'll land on this workflow, already built and working on sample files.
  2. 2Swap in your exportsUpload your own files as they come out of your tools. The agent checks the workflow on your rows.
  3. 3Change it in words, then turn it onSay what to change and see the new result before anything saves. Then choose when it runs.

Monthly Account P&L Flags: questions

How do you lay out Xero profit and loss by month with big swings flagged?
Export the profit and loss lines from Xero for the months you want, then load the file into Mammoth. The workflow groups each account by month, totals the amounts, and shows one row per account for May through Oct 2026. It flags each row as Agrees, Negative expense, Missing month, or Big swing when a month changes by more than 40 percent from the prior month. Missing month comes first.
What export should you use from Xero?
Export the profit and loss lines by account for the months you want to compare. Include the month, account name, and amount fields so the workflow can total each account by month.
What happens to accounts that do not match the rule?
Rows that do not fit the current rule are kept in the sheet and get the closest status the workflow can assign, such as Missing month or Big swing. If a row cannot be matched to an account or month, it stays separate for review.
How do you change the rules in words?
Change the instruction to say what period to use, which accounts to group, and what should count as a swing or a missing month. You can also change the threshold in plain words, such as more than 40 percent from the prior month.

Get early access to this workflow

It opens already built and working on sample files. Swap in your own exports to see your result.

Early access opens shortly. Check back soon.

Workflows like this

The number you report every month, rebuilt from the latest export, plus the forecast that follows from it.

All track and forecast workflows →