# soundsguyza/modeling-dimension-tables

Build reusable dimension / lookup tables for a star schema — country/region, timezone, currency, date, plan/product, and other descriptive attributes — on either PostHog data-warehouse views (HogQL) or an external dbt project. Use when the user wants to model dimension tables, lookup tables, a star schema, conformed dimensions, or wants to enrich events/revenue/usage with country, region, timezone, plan, or currency attributes without repeating JOINs. Covers sourcing the dimension data (upload, warehouse source, or derive from events), shaping it into an aliased one-row-per-entity view (optionally materialized on a slow schedule since dimensions change rarely), and attaching it to facts via a saved or person join so its columns read as native fields. Key rule: for currency use the built-in convertCurrency() instead of a hand-rolled rate table. Read modeling-warehouse-foundations first; dimensions here are reused by the revenue, conversion, activation, and product-usage modeling skills.


- Author: Aluna Africa (https://app.skillsync.com/soundsguyza)
- Price: Free
- Version: 1

## Files

- SKILL.md (5258 bytes)
- references/dbt/dim_country.sql (567 bytes)
- references/dbt/dim_date.sql (917 bytes)
- references/dbt/schema.yml (686 bytes)
- references/dimension-catalog.md (3324 bytes)
- references/posthog/dim_country.sql (1020 bytes)
- references/posthog/dim_plan.sql (775 bytes)

## How to use it

1. Connect the Skillsync MCP server: https://app.skillsync.com/mcp (OAuth sign-in).
2. Add it to your library: https://app.skillsync.com/soundsguyza/modeling-dimension-tables
3. Load it with the get_skill tool: `get_skill("soundsguyza/modeling-dimension-tables")`, then follow its instructions.
