Discount analysis by rep
“match salesforce opportunities to line items for won deals, calculate average discount by rep and product, and show Agrees if discount is 5% to 14%, High discount above 14%, Low discount below 5%”
match Salesforce Opportunities to Salesforce Opportunity Line Items for won deals, calculate average discount by rep and product, and show Agrees if discount is 5% to 14%, High discount above 14%, Low discount below 5%
What the agent built
3 steps, each one an ordinary Mammoth step you can open and change.
- FileSalesforce OpportunitiesCSV export · 18 rows
- FileSalesforce Opportunity Line ItemsCSV export · 32 rows
- StepKeep won opportunitiesStep 1
- JoinMatch won deals32 of 32 paired
- StepAverage discount by rep and productStep 3
- ResultWon Deal Discount Summary25 rows
- ScheduleRuns when you sayProposed
Checked on the sample files: every step ran, 25 rows came out, and the join paired 32 of 32 rows.
- Download Salesforce Opportunities sample (18 rows)Salesforce: Opportunities > Export
- Download Salesforce Opportunity Line Items sample (32 rows)Salesforce: Reports > Opportunities with Products > Export
What you get back
The result of that run, the rows to look at first.
| Rep | Product | Average Discount (%) | Discount Status |
|---|---|---|---|
| Diego Ramirez | CloudShield Core | 17.5 | High discount |
| Diego Ramirez | DataVault Plus | 19 | High discount |
| Diego Ramirez | RouteSync | 15 | High discount |
| Diego Ramirez | SignalStack | 20 | High discount |
| Diego Ramirez | WorkBoard Pro | 17 | High discount |
| Evan Brooks | CloudShield Core | 42 | High discount |
| Evan Brooks | SignalStack | 38 | High discount |
| Tessa Morgan | RouteSync | 17 | High discount |
| Tessa Morgan | WorkBoard Pro | 16 | High discount |
| Evan Brooks | DataVault Plus | 11 | Agrees |
| Evan Brooks | RouteSync | 10 | Agrees |
| Jordan Lee | CloudShield Core | 9 | Agrees |
How do you compare average discount percent by sales rep and product name on closed won deals?
Export Salesforce Opportunities and Salesforce Opportunity Line Items. Keep won opportunities, match them to line items, then average discount percent by rep and product name. The result shows Agrees for 5% to 14%, High discount above 14%, and Low discount below 5%.
How it works
How to use the Won Deal Discount Summary 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.
Won Deal Discount Summary: questions
What export should you use?
What happens to rows that do not match?
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