ccao-data / data-architecture

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

Add municipality level top-5 view and update muni assessment roll view #430

Closed wrridgeway closed 1 month ago

wrridgeway commented 1 month ago

After the conclusion of each assessment stage countywide, the CCAO publishes municipal reporting. We've finally landed on a standard format; let's institutionalize it on Athena and Open Data.

There will be two tables or views: one that summarizes the assessment roll per municipality, and the other that reports on the Top 5 PINs in that municipality.

Below are the columns I've used for Tableau reporting, but they may require some changes for Open Data.

Municipal Assessment Roll: unique per major class, per municipality, per stage, per tax year. Columns:

  • Municipality

  • Tax Year

  • Stage

  • Tax Year & Stage (concatenated)

  • Major Class

  • Class Group (if Major Class = 2, then Residential; else, Non-Residential)

  • Stage

  • Number of Parcels

  • Total AV

  • Delta pct AV

  • Phase total AV

  • Phase AV Share

Municipal Top 5: top 5 PINs per municipality, per tax year. Columns:

  • Municipality

  • Tax Year

  • PIN (pretty format)

  • Class

  • Major Class

  • Taxpayer Name

  • Situs Address

  • Prior BOR AV (i.e., from the previous Tax Year, BOR final stage)

  • CCAO AV (i.e., in Tax Year, CCAO final stage)

  • BOR AV (i.e., in Tax Year, BOR final stage)

  • BOR Change ($)

Please clean:

  • "Mc Cook" to "McCook"

  • "Forestview" to "Forest View"

wrridgeway commented 1 month ago

@ccao-jardine Not sure which columns BOR Change should compare.

Also need some guidance on Delta pct AV, Phase total AV, Phase AV Share

ccao-jardine commented 1 month ago

Sorry all, I fat-fingered; this is not yet ready for review.

ccao-jardine commented 1 month ago

@ccao-jardine Not sure which columns BOR Change should compare.

Also need some guidance on Delta pct AV, Phase total AV, Phase AV Share

Good questions, I should have specified!

wrridgeway commented 1 month ago

vw_assessment_roll_muni

We don't want to see any changes to this view other than the addition of 3 new columns and one column name change (municipality_name -> municipality). Median columns are excluded here since they are not deterministic. We see the expected result of 0 rows returned:

WITH old AS (

    SELECT
        year,
        stage,
        municipality_name as municipality,
        class,
        num_pin_w_value,
        num_pin_total_in_group,
        pct_pin_w_value_in_group,
        bldg_sum,
        land_sum,
        tot_sum
    FROM reporting.vw_assessment_roll_muni
),

new AS (

    SELECT
        year,
        stage,
        municipality,
        class,
        num_pin_w_value,
        num_pin_total_in_group,
        pct_pin_w_value_in_group,
        bldg_sum,
        land_sum,
        tot_sum
    FROM "z_ci_429_institutionalize_municipal_reporting_on_open_data_reporting".vw_assessment_roll_muni
)

SELECT * FROM old
EXCEPT
SELECT * FROM new

EDIT: this still holds after the most recent changes.

ccao-jardine commented 1 month ago

Thanks team! The "pizza tracker" column for muni assessment roll is a substantial value-add and I give @wrridgeway major props for it.

We are constantly asked about whether we can report on the complete assessment roll of a municipality that might overlap townships in various assessment stages. In the past, users would seek maps of municipalities and townships, then have to consult the assessment calendar to see which stage each township was in. Building this "pizza tracker" column for municipalities is an excellent milestone, makes life easier for us, and provides an opportunity to test user behavior around it conceptually.