Skip to content
Workflow · Stock and products · Opening soon

Weeks of cover by store

See weeks of cover by store and product from your stock and sales exports. Use average weekly sales across all dates in the sales table.

Early access opens shortly. Check back soon.

Someone typed

“calculate weeks of cover for each product at each store from stock and average weekly sales”

The agent read it as

Calculate weeks of cover for each product at each Lightspeed stores from Lightspeed inventory by location and Lightspeed sales line items, with average weekly sales covering all dates in the Lightspeed sales line items.

What the agent built

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

  1. File
    Lightspeed inventory by location
    CSV export · 24 rows
  2. File
    Lightspeed sales line items
    CSV export · 44 rows
  3. File
    Lightspeed stores
    CSV export · 3 rows
  4. Step
    Calculate weekly sales by store and product
    Step 1
  5. Join
    Bring in weekly sales
    22 of 24 paired
  6. Join
    Add store name
    24 of 24 paired
  7. Step
    Calculate weeks of cover
    Step 4
  8. Result
    Store Product Weeks Cover
    24 rows
  9. Schedule
    Runs when you say
    Proposed

Checked on the sample files: every step ran, 24 rows came out, and the join paired 22 of 24 rows; the join paired 24 of 24 rows.

What you get back

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

Store Product Weeks CoverSample data24 rows
ProductStore nameWeeks of coverAverage weekly salesStock on hand
Aster Water Bottle 500mlDowntown Flagship221.9142
Boreal Tote BagDowntown Flagship28.290.6418
Cedar Notebook A5Downtown Flagship25.142.5564
Drift HoodieDowntown Flagship17.680.519
Ember Candle 8ozDowntown Flagship51.860.6433
Fjord Travel MugDowntown Flagship21.332.6757
Harbor Pen SetDowntown Flagship58.931.2775
Aster Water Bottle 500mlRiverside Pop-Up23.570.8921
Boreal Tote BagRiverside Pop-Up204.290.1326
Cedar Notebook A5Riverside Pop-Up20.200.8918
Drift HoodieRiverside Pop-Up110.000.1314
Ember Candle 8ozRiverside Pop-Up18.330.387
24 rows in the result · 12 shown, problems first. Sample data: illustrative figures, not business results.

How do you calculate weeks of cover for each product at each store?

Export your stock and sales files from Lightspeed, then upload them. The workflow calculates weekly sales by store and product, adds the store name, and works out weeks of cover from stock and average weekly sales.

How it works

How to use the Store Product Weeks Cover workflow

  1. 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.
  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.

Store Product Weeks Cover: questions

What export should I use?
Use the stock export and the sales export from Lightspeed. The workflow reads the rows in those files and uses the fields needed for product, store, stock, and sales.
What happens to rows that do not match?
Rows that do not match the expected product or store details are not included in the matched result. You can review the file and fix the source data, then run it again.
How do I change the rules?
Change the rules in words by editing the workflow steps, for example, which columns count as stock, sales, product, or store. You can also change how average weekly sales is calculated across the dates in the sales table.

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.

Early access opens shortly. Check back soon.