Revenue by region
“show closed-won revenue by region and quarter from the salesforce opportunities, status Agrees when region is northeast, southeast, southwest, or west and amount is above 0, Region issue for unknown or misspelled region, Zero revenue when amount is 0”
show closed-won revenue by region and quarter from the Salesforce Opportunities, status Agrees when region is northeast, southeast, southwest, or west and amount is above 0, Region issue for unknown or misspelled region, Zero revenue when amount is 0, treating South and Midwest as Region issue
What the agent built
1 step, each one an ordinary Mammoth step you can open and change.
- FileSalesforce OpportunitiesCSV export · 28 rows
- StepSummarize closed-won revenueStep 1
- ResultClosed Won Revenue20 rows · 9 flagged
- ScheduleRuns when you sayProposed
Checked on the sample files: every step ran, 20 rows came out.
- Download Salesforce Opportunities sample (28 rows)Salesforce: Opportunities > Reports > Export Details
What you get back
The result of that run, the rows to look at first.
| Region | Quarter | Status | Revenue |
|---|---|---|---|
| Midwest | 2026-01-01 | Region issue | 63,300 |
| Midwest | 2026-04-01 | Region issue | 26,400 |
| Midwest | 2026-07-01 | Region issue | 24,800 |
| Midwest | 2026-10-01 | Region issue | 57,350 |
| North East | 2026-10-01 | Region issue | 12,150 |
| South | 2026-01-01 | Region issue | 27,840 |
| South | 2026-04-01 | Region issue | 68,550 |
| South | 2026-07-01 | Region issue | 46,750 |
| South | 2026-10-01 | Region issue | 78,000 |
| Northeast | 2025-10-01 | Agrees | 18,450 |
| Northeast | 2026-04-01 | Agrees | 42,400 |
| Northeast | 2026-07-01 | Agrees | 40,600 |
How do you show sales by region and quarter from Salesforce opportunities?
Export your closed-won opportunities from Salesforce, then load the file into this workflow. It groups revenue by region and quarter, and checks each row against your region rules. Rows with northeast, southeast, southwest, or west and an amount above 0 are marked Agrees. Rows with unknown, misspelled, South, or Midwest regions are marked Region issue, and rows with amount 0 are marked Zero revenue.
How it works
How to use the Closed Won Revenue workflow
- 1Get early accessWe invite people in small batches, job by job. You'll land on this workflow, already built and checked on the sample files.
- 2Swap in your exportsUpload your own files as they come out of your tools. The agent checks the workflow on your rows.
- 3Change it in words, then turn it onSay what to change and see the new result before anything saves. Then choose when it runs.
Closed Won Revenue: questions
What export should you use?
What happens to rows that do not match the region rules?
How do you change the rules?
Get early access to this workflow
It will open already built and checked on the sample files. Swap in your own exports and see your result.
Workflows like this
Cohorts, churn, repeat purchases, retention, RFM segments and recurring revenue, from your orders or payments.
- Customer lifetime value by cohortWork out customer lifetime value by signup month cohort from Shopify customers and orders exports, with revenue per customer and average order count.See the workflow Built by the agent
- Cohort retentionEach month's new customers, and the share still buying 1, 2, 3… months laterSee the workflow Template
- ARPU by monthCalculate average revenue per user each month from Stripe invoices and active customers.See the workflow Built by the agent
- RFM segmentsEvery customer scored 1-5 on recency, frequency and spend, with a segmentSee the workflow Template
- Net revenue retentionNet and gross revenue retention for every monthSee the workflow Template
- Repeat purchase rateEach month's new customers and the share who ordered again within 90 daysSee the workflow Template