Skip to content

Commit

Permalink
Add assessed values
Browse files Browse the repository at this point in the history
  • Loading branch information
wrridgeway committed Jan 13, 2025
1 parent 7a77761 commit d324887
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 22 deletions.
22 changes: 0 additions & 22 deletions dbt/models/default/exposures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,6 @@ exposures:
Use cases: Alone, can be used to investigate appeal trends. Can be combined with geographies to see how AV shifts around the county between mailing and assessor certified stages.
- name: assessed_values
label: Assessed Values
type: dashboard
url: https://datacatalog.cookcountyil.gov/Property-Taxation/Assessor-Assessed-Values/uzyt-m557
depends_on:
- ref('default.vw_pin_history')
owner:
name: Data Department
meta:
test_row_count: true
year_field: tax_year
asset_id: uzyt-m557
primary_key:
- pin
- year
description: |
Land, building, and total assessed values for all Cook County parcels, from 1999 to present.
Notes: Refreshed monthly, data is updated as towns are mailed/certified by Valuations and the Board of Review.
Use cases: Alone, can characterize assessments in a given area. Can be combined with characteristic data to make more nuanced generalizations about assessments. Can be combined with sales data to conduct ratio studies.
- name: parcel_sales
label: Parcel Sales
type: dashboard
Expand Down
11 changes: 11 additions & 0 deletions dbt/models/open_data/docs.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# vw_assessed_value

{% docs view_vw_assessed_value %}
Current and prior years' assessments by PIN in wide format.

Assessed values are only populated once townships are "closed" and their
corresponding `procname` value is updated in `iasworld.asmt_all`.

**Primary Key**: `year`, `pin`
{% enddocs %}

# vw_parcel_address

{% docs view_vw_parcel_address %}
Expand Down
23 changes: 23 additions & 0 deletions dbt/models/open_data/exposures.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
exposures:
- name: assessed_values
label: Assessed Values
type: dashboard
url: https://datacatalog.cookcountyil.gov/Property-Taxation/Assessor-Assessed-Values/uzyt-m557
depends_on:
- ref('open_data.vw_assessed_value')
owner:
name: Data Department
meta:
test_row_count: true
year_field: tax_year
asset_id: uzyt-m557
primary_key:
- pin
- year
description: |
Land, building, and total assessed values for all Cook County parcels, from 1999 to present.
Notes: Refreshed monthly, data is updated as towns are mailed/certified by Valuations and the Board of Review.
Use cases: Alone, can characterize assessments in a given area. Can be combined with characteristic data to make more nuanced generalizations about assessments. Can be combined with sales data to conduct ratio studies.
- name: parcel_addresses
label: Parcel Addresses
type: dashboard
Expand Down
43 changes: 43 additions & 0 deletions dbt/models/open_data/open_data.vw_assessed_value.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
-- View containing current and prior years' assessments by PIN in wide format
SELECT
CONCAT(pin, year) AS row_id,
pin,
year,
class,
township_code,
township_name,
nbhd,
--mailed_class,
mailed_bldg,
mailed_land,
mailed_tot,
--certified_class,
certified_bldg,
certified_land,
certified_tot,
--board_class,
board_bldg,
board_land,
board_tot
--change_reason,
--oneyr_pri_mailed_bldg,
--oneyr_pri_mailed_land,
--oneyr_pri_mailed_tot,
--oneyr_pri_certified_bldg,
--oneyr_pri_certified_land,
--oneyr_pri_certified_tot,
--oneyr_pri_board_bldg,
--oneyr_pri_board_land,
--oneyr_pri_board_tot,
--oneyr_pri_change_reason,
--twoyr_pri_mailed_bldg,
--twoyr_pri_mailed_land,
--twoyr_pri_mailed_tot,
--twoyr_pri_certified_bldg,
--twoyr_pri_certified_land,
--twoyr_pri_certified_tot,
--twoyr_pri_board_bldg,
--twoyr_pri_board_land,
--twoyr_pri_board_tot,
--twoyr_pri_change_reason
FROM {{ ref('default.vw_pin_history') }}
35 changes: 35 additions & 0 deletions dbt/models/open_data/schema/open_data.vw_assessed_value.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
models:
- name: open_data.assessed_value
description: '{{ doc("view_vw_assessed_value") }}'

columns:
- name: board_bldg
description: '{{ doc("shared_column_board_bldg") }}'
- name: board_land
description: '{{ doc("shared_column_board_land") }}'
- name: board_tot
description: '{{ doc("shared_column_board_tot") }}'
- name: certified_bldg
description: '{{ doc("shared_column_certified_bldg") }}'
- name: certified_land
description: '{{ doc("shared_column_certified_land") }}'
- name: certified_tot
description: '{{ doc("shared_column_certified_tot") }}'
- name: class
description: '{{ doc("shared_column_class") }}'
- name: mailed_bldg
description: '{{ doc("shared_column_mailed_bldg") }}'
- name: mailed_land
description: '{{ doc("shared_column_mailed_land") }}'
- name: mailed_tot
description: '{{ doc("shared_column_mailed_tot") }}'
- name: pin
description: '{{ doc("shared_column_pin") }}'
- name: row_id
description: '{{ doc("shared_column_row_id") }}'
- name: township_code
description: '{{ doc("shared_column_township_code") }}'
- name: township_name
description: '{{ doc("shared_column_township_name") }}'
- name: year
description: '{{ doc("shared_column_year") }}'

0 comments on commit d324887

Please sign in to comment.