PROJECT 102 · PYTHON SOURCE
Demand reliability with Power BI
Study-specific code. Shared modules, dependency versions, and reproduction instructions are included in all project files.
Download Python file ↓"""Demand reliability with Power BI: reproducible data mart and native Power BI source."""
from pathlib import Path
import sys
ROOT = Path(__file__).resolve().parents[2]
sys.path.insert(0, str(ROOT))
from powerbi.prepare import demand
from powerbi.author import author
from powerbi.validate import validate
def main():
project, metrics = demand()
report = author(102)
checks = validate(102)
return project, metrics, report, checks
if __name__ == '__main__':
import json
project, metrics, report, checks = main()
print(json.dumps({'metrics': metrics, 'report': report, 'checks': checks}, indent=2))