Skip to content

SQL models for Field Service → Billing SLA metrics (portfolio-safe)

License

Notifications You must be signed in to change notification settings

JasonDeckerMBA/fieldservice-billing-sla-sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Field Service → Billing SLA (SQL Models)

Pure SQL models that power BI reporting (Qlik Sense in my environment).
Focus: compute SLA response time and billing latency by Work Order and ERP invoice line.

SQL Data Modeling SLA Metrics

Highlights

  • Multi-CTE pipeline with OUTER APPLY for line↔job pairing
  • Calendar indexing (week/day) + robust date math
  • TZ/DST normalization via UDF
  • Technician/scheduler ranking & pivoting
  • STRING_AGG and XML STUFF(...FOR XML PATH('')) patterns

Start here

  • Main query: /sql/fsm_wo_billing_sla.sql
  • CTE map: /sql/00_README.md

Sanitization (portfolio-safe)

  • FieldServiceDB (source), WarehouseDW (DW/ERP), AnalyticsDB (UDFs)
  • PII removed; emails replaced by display names.

About

SQL models for Field Service → Billing SLA metrics (portfolio-safe)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages