analytics/context/03_WORKFLOWS.md
2026-02-18 14:36:38 +03:00

24 lines
642 B
Markdown

# Standard Workflows
## Trace Measure
1. Locate measure in TMDL.
2. Show DAX.
3. List dependent measures/tables.
4. Extract SQL source from partition.
5. Produce explanation.
## Trace Deficit / Forecast
1. Читай context/06_DEFICIT_FORECAST.md.
2. Прогноз → sp_build_deficit_proposal → deficit_proposal.
3. deficit_proposal + forecast + inbound → sp_rebuild_stock_plan_by_arrival → stock_plan_by_arrival.
4. order_qty = прогноз окна [T .. T+cover); дефицит при net_stock < minAvailable.
## Documentation Draft
Structure:
- Purpose
- DAX
- Dependencies
- SQL sources
- Business meaning
- Usage notes