ccao-data / data-architecture

Codebase for CCAO data infrastructure construction and management
https://ccao-data.github.io/data-architecture/
6 stars 4 forks source link

Reporting views for municipalities #412

Closed wrridgeway closed 5 months ago

wrridgeway commented 5 months ago

In reporting, we currently have vw_assessment_roll and vw_top_5 for townships. I'd like to create two similar separate views for municipalities.

Use case

Complication: Assessment cycles

the assessment system works on a township cycle, not a municipal cycle, so some municipalities might have some PINs in one assessment stage and other PINs in a different stage.

Possible solution

I think the best way around this is to add an additional column on the assessment_roll version indicating, for each municipality, for the year & stage, the percentage of its PINs that have passed through that year & stage.

The ideal behavior of this "percent complete" column would be if the percent indicator had "memory." For example: