Back to Browse

๐Ÿš€ How to Create Custom Dimensions in BigQuery with SQL (Funnel Stage Example)

32 views
Mar 11, 2026
4:30

Your campaigns have names like 'Awareness_US_Q1' and 'Conversion_LATAM_Q2' โ€” but your BigQuery table doesn't know they're TOFU or BOFU. Custom dimensions fix that. This video shows you how to use SQL to automatically label your campaigns by funnel stage based on their naming convention. โ–ถ WHAT YOU'LL LEARN โ†’ What a custom dimension is and how it's different from a custom metric โ†’ How to use the SQL CASE WHEN function to categorize data (works like an IF statement) โ†’ How to label campaigns as TOFU, MOFU, or BOFU based on naming conventions โ†’ How the % wildcard works in SQL LIKE statements (and why its position matters) โ†’ How to use ELSE to catch any values that don't match your conditions โ†’ How to name your new custom dimension using AS โ†’ How Porter Metrics lets you create custom dimensions without writing SQL โฑ TIMESTAMPS 0:00 โ€” What is a custom dimension in BigQuery? 0:17 โ€” The use case: labeling campaigns by funnel stage 1:00 โ€” Writing the CASE WHEN query: TOFU, MOFU, BOFU labeling 2:10 โ€” The % wildcard in SQL LIKE: why position matters 2:55 โ€” The ELSE operator: handling anything that doesn't match 3:30 โ€” The result: your new funnel_stage custom dimension 4:00 โ€” How to do this without SQL using Porter Metrics ๐Ÿ“Œ ABOUT THIS COURSE This is part of the Google BigQuery for Marketers course by Porter Metrics โ€” built for marketing teams who want to enrich their BigQuery data with custom labels, segments, and categories based on their own campaign taxonomy. ๐Ÿ”— RESOURCES โ†’ Try Porter Metrics free: https://portermetrics.com โ†’ Full BigQuery for Marketers playlist: https://www.youtube.com/playlist?list=PLh9mb-JjFjzMFGo4MTPSC3kk14b5x1tKD โ†’ Read the full article: https://portermetrics.com/en/tutorial/google-bigquery/custom-dimensions-bigquery/

Download

1 formats

Video Formats

360pmp43.9 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

๐Ÿš€ How to Create Custom Dimensions in BigQuery with SQL (Funnel Stage Example) | NatokHD