Add Fresh Dashboard intermediate models and snapshots#3438
Add Fresh Dashboard intermediate models and snapshots#3438anthonygwalters wants to merge 1 commit intomainfrom
Conversation
Pre-compute goal-level and school-level enrollment metrics from the FRESH Dashboard Tableau calculated fields as two intermediate dbt models (`int_tableau__fresh_dashboard_goal_metrics` and `int_tableau__fresh_dashboard_enrollment_metrics`), and add SCD type 2 snapshots to track metric changes over the enrollment season. https://claude.ai/code/session_019dpZt3HX2MFW1u9hVogaej
|
Claude finished @anthonygwalters's task in 1m 59s —— View job Code Review
Overall the structure, naming, and YAML conventions are solid. However there are a few logic bugs in the enrollment metrics model and a couple of missing items that should be addressed before merge. Bugs —
|
Pull Request
Summary & Motivation
When merged, this pull request will add two new intermediate dbt models and their corresponding snapshots to support the Fresh Dashboard Tableau extract:
int_tableau__fresh_dashboard_enrollment_metrics: Aggregates enrollment data by school and academic year, calculating enrollment counts, targets, and distance-to-target metrics (both absolute and percentage)int_tableau__fresh_dashboard_goal_metrics: Aggregates goal achievement data by school, grade level, and goal type, calculating goal values and tracking whether goals were metThese intermediate models serve as the foundation for Tableau dashboard visualizations and include snapshots to track changes over time.
Changes
New Models
int_tableau__fresh_dashboard_enrollment_metrics.sql (403 lines)
rpt_tableau__fresh_dashboard_progress_to_goalsint_tableau__fresh_dashboard_goal_metrics.sql (112 lines)
rpt_tableau__fresh_dashboard_aggregatedProperties & Tests
.ymlproperty files for both models with:Snapshots
snapshot_tableau__fresh_dashboard_goal_metricstracking changes tomet_goalanddisplay_valuesnapshot_tableau__fresh_dashboard_enrollment_metricstracking changes to enrollment and distance-to-target metricsSelf-review
trunk fmton all modified filesuv run dagster definitions validatefor any modified code locationuv run pytest tests/test_dagster_definitions.pyfor any modified code location[model_name].ymlproperties file for all new modelshttps://claude.ai/code/session_019dpZt3HX2MFW1u9hVogaej