Sign inBlogSupportContact
WooCommerce

WooCommerce revenue for any date range, one command

"Last 7 days". "This month". "Q1". Relative phrases, absolute dates, custom ranges. No Analytics dashboard, no date pickers.

4 min read May 2026 revenue

Answering "how much did we make last month?" is slow

You need the number for Monday's meeting. You open WooCommerce Analytics. You pick a date range from the dropdown. The chart refreshes. You scroll past tables and graphs you don't need. Finally you find the single revenue number.

Worse, next week you want the same number for the week-before-last. Repeat the ritual.

What most people do instead

Use WooCommerce Analytics' date pickerMultiple clicks to change the range. Full page regeneration each time. Not optimized for quick lookups.
Export everything to a spreadsheetData is stale. Takes longer than loading Analytics. Needs manual filtering every time.
Install a "store dashboard" pluginHeavy. Another subscription. Opinionated layouts you can't customize.

A better way: type a date phrase, get the answer

Run revenue with a date range. Absolute dates (-from=2026-01-01 -to=2026-03-31) or relative phrases (-from="7 days ago" -to=today). Get net, gross, refunds, order count — same format as revenue today.

TrueCommander
Revenue: last 7 days
0.18s
$28,420
Net revenue
$29,850
Gross
$1,430
Refunded
Orders: 167avg $170
May 12 → May 19, 2026

Relative phrases unlock automation. A scheduled macro can run revenue -from="7 days ago" -to=today every Monday. The "last 7 days" automatically means the correct 7 days at execution time — no need to compute dates in the macro.

How it works

The command parses the date range (relative or absolute), queries WooCommerce for completed + processing orders in that window, deducts refunds, and returns the same breakdown as revenue today. Results use WooCommerce's internal revenue logic so numbers match the Analytics page.

1
Specify a date range-from and -to. Accepts absolute dates or phrases like "yesterday", "30 days ago".
2
Get the revenue breakdownNet, gross, refunded, order count, average order value
3
Pipe into a macro or emailFeed the numbers into a template email or a Slack notification via send-api
ParameterValue
-fromStart date (YYYY-MM-DD) or phrase ("7 days ago", "start of month")
-toEnd date (YYYY-MM-DD) or phrase ("today", "yesterday", "end of month")
ScopeCompleted + processing orders. Refunds deducted.
ReturnsNet, gross, refunded, order count, average order value
Can be used in

Real example

Monday morning standup. The team wants last-week numbers versus the week before. Without standing up from your desk, you type:

revenue -from="14 days ago" -to="7 days ago" → $22,100 · 142 orders

revenue -from="7 days ago" -to=today → $28,420 · 167 orders

Week-over-week growth: +28.6%. Done. You had the numbers before the first coffee arrived.

A weekly macro now runs every Monday at 8am: revenue for last week → send template email to the team with the numbers and a week-over-week percentage. The standup becomes "here's what the email showed" instead of "let me pull that up."

Goes further with TrueCommander

Ready?

Revenue for any range. Zero clicks.

This is one of 91 commands. All included with every license.

Cookies. The short version.

Essential cookies keep the cart and theme working. Analytics only fire if you say yes. Read our policy.