<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Sergio Ramos Data Portfolio - Medium]]></title>
        <description><![CDATA[This space is where I publish all my new data portfolio projects. Topics range from web scraping and data engineering, to data analysis and visualization - Medium]]></description>
        <link>https://medium.com/sergio-ramos-data-portfolio?source=rss----fea98cd53273---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Sergio Ramos Data Portfolio - Medium</title>
            <link>https://medium.com/sergio-ramos-data-portfolio?source=rss----fea98cd53273---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 20:14:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/sergio-ramos-data-portfolio" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[City of Fort Worth Development Permits Data Analysis]]></title>
            <link>https://medium.com/sergio-ramos-data-portfolio/city-of-fort-worth-development-permits-data-analysis-99edb98de4a6?source=rss----fea98cd53273---4</link>
            <guid isPermaLink="false">https://medium.com/p/99edb98de4a6</guid>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-modeling]]></category>
            <dc:creator><![CDATA[Sergio Ramos]]></dc:creator>
            <pubDate>Fri, 23 May 2025 17:13:29 GMT</pubDate>
            <atom:updated>2025-05-23T17:01:20.997Z</atom:updated>
            <content:encoded><![CDATA[<p>Economic development through the lens of permit data <strong><em>(Exploring COFW Part 3 of 3)</em></strong></p><blockquote><strong>This post is part three of a three-part series on the City of Fort Worth.</strong></blockquote><blockquote><strong>In this series I explore the city’s history, recent planning and economic development reports, and its publicly available development permit data to better understand where we’ve been, and where we’re going from here.<br><br>You can read part one </strong><a href="https://medium.com/@sergioramos3.sr/the-economy-that-made-the-city-67ee7a26f8aa"><strong>here</strong></a><strong>, and part two </strong><a href="https://medium.com/@sergioramos3.sr/the-quantification-of-our-lives-ab3621d4f33e"><strong>here</strong></a><strong>.</strong></blockquote><h3>Introduction</h3><p>Although I was born and raised in Fort Worth, I realized only recently how little I actually knew about the city.</p><p>In 2024, I found myself learning a ton through exhibits at the local museum of science and history.</p><p>And since I had also recently decided to revamp my data project portfolio, I thought it was a perfect opportunity to explore public data.</p><p>That led me to <a href="https://data.fortworthtexas.gov/">https://data.fortworthtexas.gov/</a>. There, I found a dataset on development permits and decided to dive in.</p><p>Permits are an especially interesting lens to view a city through.</p><p>For starters, they represent highly visible real-world activities. You can look through the data and find your favorite restaurant or gym, or that building that’s been half-built for far too long.</p><p>They are also a proxy for economic development.</p><p>Building activity means economic activity. It means more housing, more businesses, more infrastructure.</p><p>And Fort Worth has had plenty of activity.</p><p>In recent years, the city has gone through the COVID pandemic, along with the rest of the world, and grown through it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uir9BmmigKN_TfQJDS71bQ.jpeg" /><figcaption><strong>Source:</strong> Sergio Ramos. Photograph, Fuel City<em>, Fort Worth, TX</em>. 2020.</figcaption></figure><p>Just in one neighborhood (Riverside), I’ve spotted two restaurant renovations, two new large gas stations, and at least two new apartment complexes.</p><p>Not to mention additional projects in Downtown and Southside.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VpL8aPXimOyujJ1CYvB4uA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kKWLaYgsWzGs93TOlQC73Q.jpeg" /><figcaption><strong>Source:</strong> Sergio Ramos. Photographs, <em>Fort Worth, TX</em>. Apr 4 2021, Oct 3 2021.</figcaption></figure><p>Instead of slowing down, it feels as though construction ramped up in the early 2020s.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f7lm3G8ZIyxaN0n6HP2ysw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*se2kDkL5EOePvT9uiUyPNg.jpeg" /><figcaption><strong>Source:</strong> Sergio Ramos. Photographs, <em>Fort Worth, TX</em>. Jun 28 2021, Oct 15 2021.</figcaption></figure><p>I worked in construction for a brief time, so watching these projects progress is especially satisfying.</p><p>The scope of my initial data project expanded quite a bit, to the point I had to split it into three parts.</p><p>Part 1 covers the history of Fort Worth.</p><p>Part 2 explores the topic of economic development, and how Fort Worth and other cities quantify different aspects of their performance.</p><p>This is the final installment, part 3.</p><p>In this post, I will share how I cleaned and understood the permits dataset, visualized the data, and answered questions like <em>“does the permit process take too long?”</em> and <em>“Who owns all these new buildings?”</em></p><p>But more importantly, I will share my broader takeaways for performing data analysis as a whole.</p><p>Let’s dive in.</p><h3>Data <strong>Research</strong> and Cleaning</h3><p>I downloaded the <a href="https://data.fortworthtexas.gov/Development-Infrastructure/Development-Permits/quz7-xnsy">development permit dataset</a> available on the city’s website.</p><p>Then, I imported and cleaned it on a PostgreSQL instance on my local machine.</p><p>The publicly available permits dataset contains one row per permit, and is modeled like an <a href="https://www.kimballgroup.com/data-warehouse-business-intelligence-resources/kimball-techniques/dimensional-modeling-techniques/accumulating-snapshot-fact-table/">Accumulating Snapshot Fact Table</a>.</p><p>The status_date field holds the date of the latest status, both of which are <a href="https://www.kimballgroup.com/data-warehouse-business-intelligence-resources/kimball-techniques/dimensional-modeling-techniques/type-1/#:~:text=With%20slowly%20changing%20dimension%20type,therefore%20this%20technique%20destroys%20history.">Type 1 Slowly Changing Dimensions</a>.</p><p>That just means they both contain the latest recorded value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cpIWDxZTnbmYWpPOFI7kzg.png" /><figcaption>Sample row of cleaned COFW development permits dataset. Subset of of columns.</figcaption></figure><p>The same table also contains every descriptor or “dimension” relating to the permit, such as its geographic location and owner.</p><p>A data model like this, with everything in a single table is cleverly referred to as “One Big Table”.</p><p>This is likely (hopefully) not how it is represented in the data warehouse at the city, but rather a common way data from multiple sources is collected for the purposes of a report, such as their own <a href="https://data.fortworthtexas.gov/stories/s/i6gk-um2v">Development Permit Dashboard</a>.</p><p>To better understand all the steps in the permitting process, I reviewed some <a href="https://www.fortworthtexas.gov/departments/development-services/process/process-charts">process charts</a> on the city’s website.</p><p>I found <em>Master Process Chart </em>and<em> Building Permit Process Chart </em>to be most useful.</p><p>I was still a bit unsure, so I called the city and was able to reach a subject matter expert to walk me through it in depth.</p><p>I spoke with Giselle Gonzales, a Senior Plans Examiner, who helped tremendously.</p><p>She explained that for new construction and other large projects, an overall permit is needed, along with separate “sub-permits” for each trade (e.g. Plumbing, Electrical).</p><p>So while it seems the internal dataset represents this hierarchy, the public facing dataset does not.</p><p>Now that I better understood what the fields meant, and how they related, I could continue processing the data.</p><p>I decided to tackle duplicates first.</p><p>The method I thought of to identify any potential duplicates was hashing the rows, though I am sure there is a far simpler way to accomplish the same thing.</p><pre>-- Counting total duplicate records in the whole table<br>WITH duplicates AS<br><br>(<br><br>SELECT hash_subquery.*<br>,      ROW_NUMBER() OVER (PARTITION BY hash_value ORDER BY permit_number) AS row_num<br>FROM <br><br>(<br><br>SELECT permits.*<br>,      MD5(CAST(permits.* AS TEXT)) AS hash_value<br>FROM cofw_development_permits AS permits<br>  <br>) AS hash_subquery<br> <br>)<br><br>SELECT COUNT(*) AS total_duplicates  -- 17241<br>FROM duplicates <br>WHERE row_num &gt; 1;<br><br>-- 1.19% of records in this table are exact duplicates<br>SELECT CAST( ROUND( ( CAST(17241 AS NUMERIC) / CAST(1452365 AS NUMERIC) ) * 100, 2 ) AS TEXT)||&#39;%&#39; AS percent_duplicates;</pre><p>There were duplicates in the data (1.19% of rows), though I could not confirm how they ended up there.</p><p>One possible explanation is lack of uniqueness constraints on this public facing report table.</p><p>A lot of the cleanup was a column by column process that looked a lot like the code below, doing a quick high-level check of what any given field was used for.</p><pre>-- Checking work_description<br>SELECT COUNT(*) AS total_records  -- 572031 most records are not NULL<br>FROM cofw_development_permits<br>WHERE work_description IS NULL;<br><br>SELECT MIN(LENGTH(work_description)) AS min_len  -- 1<br>,      MAX(LENGTH(work_description)) AS max_len  -- 3659 <br>,      AVG(LENGTH(work_description)) AS avg_len  -- 45.1033654542442124<br><br>FROM cofw_development_permits<br>WHERE work_description IS NOT NULL;<br><br>SELECT permit_number<br>,      permit_type<br>,      permit_sub_type<br>,      permit_category<br>,      special_text    <br>,      work_description  -- Random single letters and characters<br>,      legal_description -- Does not appear to be missing text <br><br>FROM cofw_development_permits<br><br>WHERE 1 = 1<br>AND LENGTH(work_description) = 1;  -- min length<br><br>SELECT permit_number<br>,      permit_type<br>,      permit_sub_type<br>,      permit_category<br>,      special_text    <br>,      work_description  -- Denial letter text<br>,      legal_description <br>FROM cofw_development_permits<br><br>WHERE 1 = 1<br>AND LENGTH(work_description) = 3659;  -- max length</pre><p>One other thing I quickly learned about this dataset was that a lot of the information was captured as freeform text, which is possibly the worst way to capture data that could be otherwise standardized with a drop-down selection or other input validation.</p><p>On the bright side, this issue prompted me to come up with an interesting approach for normalizing a field I will bae able to reuse in later projects.</p><p>It came together while cleaning the owner_name field.</p><p>I made a distinction between cleaning and normalizing a name in this operation.</p><p><strong>Cleaned</strong> names just had spacing standardized, while <strong>normalized</strong> names had all non-letter characters removed (including spaces), and were capitalized.</p><p>I used the normalized names to identify every occurrence of the same owner, and set them all to the most common cleaned version of the name.</p><p>I was able to accomplish this with REGEXP_REPLACE() in PostgreSQL rather smoothly.</p><pre>-- Found a more streamlined way to do cleanup I did for earlier column<br><br>CREATE TEMP TABLE owner_mapping_temp AS<br><br>(<br><br>WITH cleaned_names AS (<br><br>SELECT REGEXP_REPLACE(TRIM(owner_name), &#39;\s+&#39;, &#39; &#39;, &#39;g&#39;) AS cleaned_name<br>,      COUNT(*)                                          AS total_occ<br>FROM cofw_development_permits<br>GROUP BY cleaned_name<br><br>)<br><br>, norm_names AS (<br><br>SELECT REGEXP_REPLACE(TRIM(UPPER(owner_name)), &#39;[^a-zA-Z]&#39;, &#39;&#39;, &#39;g&#39;) AS normalized_name<br>FROM cofw_development_permits<br><br>)<br><br>, most_common AS (<br><br>SELECT cleaned_names.cleaned_name<br>,      norm_names.normalized_name<br>,      ROW_NUMBER() OVER <br>       (<br>    PARTITION BY norm_names.normalized_name<br>    ORDER BY cleaned_names.total_occ DESC<br>    ) AS most_used<br>  <br>FROM cleaned_names<br>JOIN norm_names <br>    ON REGEXP_REPLACE(TRIM(UPPER(cleaned_names.cleaned_name)), &#39;[^a-zA-Z]&#39;, &#39;&#39;, &#39;g&#39;) = norm_names.normalized_name  <br><br>)<br><br>SELECT *<br>FROM most_common<br>WHERE most_used = 1;<br><br>)<br><br>-- Checking results<br>SELECT *<br>FROM owner_mapping_temp<br>LIMIT 50;<br><br>-- Preview changes <br>SELECT perms.owner_name                                              AS original_val<br>,      REGEXP_REPLACE(TRIM(UPPER(owner_name)), &#39;[^a-zA-Z]&#39;, &#39;&#39;, &#39;g&#39;) AS perms_join_val<br>,      map_tmp.normalized_name                                       AS map_tmp_join_val <br>,      map_tmp.cleaned_name                                          AS map_tmp_replacement_val<br>FROM cofw_development_permits AS perms<br>JOIN owner_mapping_temp       AS map_tmp<br>    ON REGEXP_REPLACE(TRIM(UPPER(owner_name)), &#39;[^a-zA-Z]&#39;, &#39;&#39;, &#39;g&#39;) = map_tmp.normalized_name<br>ORDER BY RANDOM() <br>LIMIT 50; <br><br>START TRANSACTION;<br><br>UPDATE cofw_development_permits<br>SET owner_name = cleaned_name<br>FROM owner_mapping_temp<br>WHERE REGEXP_REPLACE(TRIM(UPPER(owner_name)), &#39;[^a-zA-Z]&#39;, &#39;&#39;, &#39;g&#39;) = normalized_name;<br><br>-- Check output<br>SELECT owner_name  <br>,      COUNT(*) AS total_records<br>FROM cofw_development_permits<br>WHERE owner_name IS NOT NULL<br>GROUP BY owner_name<br>ORDER BY total_records DESC;<br><br>-- Commit changes after confirming changes look as intended.<br>-- COMMIT;<br>-- Rollback if changes do not look right<br>-- ROLLBACK;</pre><h3>Exploratory Analysis</h3><p>Once clean up was done, I performed some analysis in SQL to see if anything interesting stuck out to me.</p><p>Starting with checking the permit counts and averages year over year.</p><pre>-- How many distinct permits have been filed over time <br>WITH monthly_permits AS (<br><br>SELECT TO_CHAR(filing_date, &#39;YYYY-MM&#39;) AS year_mnth<br>,      COUNT(DISTINCT permit_number)   AS total_permits<br><br>FROM cofw_development_permits<br>GROUP BY year_mnth<br><br>)<br><br>SELECT year_mnth<br>,      total_permits<br>,      total_permits - LAG(total_permits, 1) OVER (ORDER BY year_mnth) AS month_over_month_diff<br>,      ROUND(AVG(total_permits) OVER (ORDER BY year_mnth ROWS BETWEEN 2 PRECEDING AND CURRENT ROW), 2) AS running_3_month_avg<br><br>FROM monthly_permits<br>ORDER BY year_mnth;</pre><p>I was curious about looking into with the newly cleaned owner_name field to check for concentration of owners of permits.</p><pre>-- Permits by owner<br>SELECT owner_name<br>,      COUNT(DISTINCT permit_number) AS total_permits<br><br>FROM cofw_development_permits<br>WHERE owner_name IS NOT NULL<br><br>GROUP BY owner_name<br>ORDER BY total_permits DESC;<br><br>-- Some DR HORTON entity or another show up 4x in the top 50<br>-- Lennar homes shows up 2x</pre><p>Among the top owners of all time were major homebuilders. This also held true on a year over year basis.</p><pre>-- Permits by owner and year<br><br>WITH yearly_ranking AS (<br><br>SELECT TO_CHAR(filing_date, &#39;YYYY&#39;) AS filing_yr<br>,      owner_name<br>,      COUNT(DISTINCT permit_number) AS total_permits<br>,      ROW_NUMBER() OVER (<br>                           PARTITION BY TO_CHAR(filing_date, &#39;YYYY&#39;)<br>                           ORDER BY COUNT(DISTINCT permit_number) DESC<br>                           ) AS yr_rank<br><br>FROM cofw_development_permits<br>WHERE owner_name IS NOT NULL<br><br>GROUP BY filing_yr, owner_name<br><br>)<br><br>SELECT *<br>FROM yearly_ranking <br><br>WHERE yr_rank &lt; 6<br>ORDER BY filing_yr, yr_rank;</pre><p>The above query showed the same handful of builders amongst the top 5 consistently.</p><p>The publication “The Hustle” argued in a recent video that this sort of concentration puts upward pressure on home prices in a <a href="https://www.youtube.com/watch?v=VryFaFsKhVE">recent analysis</a>.</p><h3>Data Visualization</h3><p>The next step in this analysis was to visualize the data I had pulled.</p><p>I used Power BI for this, with the help of Figma to make the report a bit more aesthetically pleasing.</p><p>You accomplish this by creating a background graphic in Figma, then fitting your charts to it. <a href="https://youtu.be/u6Vq6SrQxqM?si=YKj2Pg9tioO_-xsq">This tutorial</a> explains it super well and it is what I followed.</p><p>Connecting to Postgres is pretty straightforward in Power BI using their built in connector.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2rdUtnlJtJ2GEsFv4kpMkA.png" /><figcaption>Power BI Postgres connector setup</figcaption></figure><p>The concentration of owners was one of the first metrics I developed for the dashboard, where you can see the homebuilders I mentioned earlier in the top 5.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*1S4gfO2j21CeGy4r1OTimw.png" /><figcaption><strong>Source:</strong> Sergio Ramos. COFW Permits Dashboard “Top Owners” for Finaled permits, All Time (2001–06–30 to 2024–07–17)</figcaption></figure><p>I reached out <a href="https://www.linkedin.com/in/anthonydebarros/">Anthony Debarros</a>, a Data Journalist and author of the book “<a href="https://nostarch.com/practical-sql-2nd-edition">Practical SQL</a>” for feedback as I was working on this project.</p><p>One of the first things he asked about my dashboard was residential permit trends during ‘08.</p><p>So, thanks to him I took a look!</p><p>I broadened the search to all permit types for this report, and the trend largely follows the same pattern as residential alone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*RPA4A_YQOM0sjJHcdDawMQ.png" /><figcaption><strong>Source:</strong> Sergio Ramos. COFW Permits Dashboard “Permits and job value over time” for Finaled permits, all types, By Permit Filing date, Filing Dates in 2002–2023</figcaption></figure><p>The interesting things I noted after taking a fresh look at this data was that at the height of permit <strong>volume</strong> in ’06, total permit <strong>value</strong> was far far lower than in 2023.</p><p>In my conversation with the Senior Plans Examiner, she informed me that the recorded job value is the estimated cost to build a project.</p><p>In 2014, it looks like value started to rise quickly, while the number of permits submitted took a slower path to recovery between about 2016 and 2023 where it started to near pre-Great Recession numbers.</p><p>What that data does not tell us, is if development activity could be stronger, and how the developer community feels about working in the City of Fort Worth.</p><p>To shed some light on this aspect of the development process, we turn first to some qualitative datapoints:</p><p>As part of the initial <a href="https://www.fortworthtexas.gov/files/assets/public/v/4/ecodev/documents/strategic-plan/strategic-plan-complete.pdf">Economic Development Strategic Plan</a> in 2017, consultants surveyed a group of commercial real estate brokers and developers about Fort Worth.</p><p>According to the report:</p><blockquote>“Questions were focused on views of Fort Worth’s business climate, its appeal as a location for business expansion and relocation projects, and perceptions about the City’s key cultural and industry assets.”<br><br><em>- </em><strong>Source:</strong> City of Fort Worth Economic Development Strategic Plan (2017)</blockquote><p>The development process was cited as a common complaint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*chuMhngs5XLf9U42JW-dLw.png" /><figcaption><strong>Source:</strong> City of Fort Worth Economic Development Strategic Plan (2017)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*AGcziRbkVU4NT1D-EkD29Q.png" /><figcaption><strong>Source:</strong> City of Fort Worth Economic Development Strategic Plan (2017)</figcaption></figure><p>I assume anything besides instantaneous approval will elicit complaints from developers in any city.</p><p>I am also curious if selection bias was accounted for in the survey.</p><p>Was this group representative the local real estate community overall, or a vocal minority with a bone to pick with city staff?</p><p>While time did not allow for me to pull data from other cities to benchmark and get an objective read on permitting speed across cities, we are able to have a look at relative approval timelines within different periods of the city’s history.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*HHGO9gt7ne8bj7V42IeizQ.png" /><figcaption><strong>Source:</strong> Sergio Ramos. COFW Permits Dashboard “Average Days Elapsed from Filing Date” for Finaled permits, all types, By Permit Filing date, Filing Dates in 2002–2023</figcaption></figure><p>Predictably, as the volume of permits went down in the early 2010’s, they moved through the process faster.</p><p>If surveys were conducted in the year or two prior to the economic development report in 2017, respondents were indeed seeing slower speeds than recent history, but not far from their pre-Great Recession levels.</p><p>These numbers tell the story at an aggregate level.</p><p>But, that means mixing the lag times for sub-permits (e.g. a plumbing permit as part of a larger commercial construction), with the time required to permit a project end to end.</p><p>They also mix project sizes. The timeline for a commercial project is naturally longer than a residential one, or another smaller-scale project like an accessory structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aaekn0q5H0KblXXF5_9U7w.png" /><figcaption><strong>Source:</strong> Sergio Ramos. COFW Permits Dashboard</figcaption></figure><p>And when broken out, we can see that in fact commercial building permits do take the longest overall to make their way through the process.</p><p>If the city’s goal is to increase commercial development for uses like office space, which will in turn attract employers to the area, then addressing these concerns amongst developers would be helpful.</p><p>In the 2023 Comprehensive Plan, the City of Fort Worth addressed this topic directly:</p><blockquote>“While a wide variety of residential units are essential to accommodate future population growth, the 2017 Economic Development Strategic Plan highlighted that Fort Worth is continuing to grow more single-family suburban housing than jobs, and Fort Worth is at risk of becoming overly dependent on low density residential uses to support its tax base and pay for services.</blockquote><blockquote>Together with a focused business development effort, sufficient land must be planned for increases in job creation, mixed-use development, and appropriately located higher density housing, all which support a more balanced tax base and improved return on public investment.”<br><br><strong>Source:</strong> City of Fort Worth Comprehensive Plan (2023)</blockquote><p>When you compare commercial and residential building permit volume, the difference is immediately apparent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Wz6fxYVWqhMQNb7lwVsCA.png" /><figcaption><strong>Source:</strong> Sergio Ramos. COFW Permits Dashboard</figcaption></figure><p>Along with permit types, job values are used as a measure of economic growth.</p><p>The numbers below are cited as a positive trend in Fort Worth’s 2023 <a href="https://www.fortworthtexas.gov/files/assets/public/v/3/the-fwlab/documents/comprehensive-planning/adopted/2023-comprehensive-plan-full.pdf">Comprehensive Plan</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*7RI5jHRGY8VvIWRNXd0r_Q.png" /><figcaption><strong>Source:</strong> City of Fort Worth Comprehensive Plan (2023)</figcaption></figure><p>In order to validate my analysis, I tried to match these figures. Below are some metrics that show the closest match I could get to the Comprehensive Plan’s stated numbers, without far exceeding their estimates.</p><p>Depending on permit types I included, or statuses I considered valid, I saw figures as high as $7bn in 2022.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wh6L8A2HAT_OeRwR9kD5uA.png" /><figcaption><strong>Source:</strong> Sergio Ramos. COFW Permits Dashboard</figcaption></figure><p>I could not find any methodology on the report, which only cites <em>“City of Fort Worth, Development Services Department, 2022.” </em>as its source for those yearly permit values.</p><p>Since my numbers were matching for 2021, but not for 2022, I concluded this was a business logic or dataset mismatch, not a double counting of permit values or other major logical error on my end.</p><p>Keeping an eye on these figures can help us understand what type of development is occurring, the pace at which permits are being granted and the value of developments over time.</p><p>Along with other data sources, we can start to paint a complete and clear picture of economic development activity on the ground, and understand if it falls in line with the city’s stated goals.</p><h3>Conclusion</h3><p>This was such a fascinating project !</p><p>While the specific facts and trends around permit data were interesting, my takeaways were more generalized to data work as a whole:</p><p><strong>Good analysis takes a lot of time.</strong></p><p>I keep coming back to this notion that I just don’t know enough about the data.</p><p>I read the diagrams, had conversations with folks at the city, and read tons about the topic; but I still don’t feel like I have the amount of context I’d need to feel truly knowledgeable about the subject matter.</p><p>Almost a year later, there is so much more research I could do <em>around</em><strong> </strong>the data to really deepen my understanding of our history, of economic development, and of the processes on the ground that leads to this dataset.</p><p>There were metrics from other reports I could not reproduce 1:1.</p><p>I knew I was <em>close</em>, but without more conversations, I can’t be sure I am defining things the exact same way as those sources (or even working with the exact same dataset).</p><p>I also did not have time to bring in ancillary data (like census data), or other city data to benchmark against.</p><p><strong>Source systems and data modeling have a huge impact on downstream analysis.</strong></p><p>Had the source systems enforced dropdowns and standardized many fields, 2/3 of my work in cleaning the data would not have been needed.</p><p>It would likely also speed up the day-to-day process. Two clicks is much faster than typing a name, for example.</p><p>If the data were a true accumulating snapshot with more date fields, I could do a lot more analysis on the time it takes to get through every step in the process, as opposed to defaulting to the time between the only two dates provided.</p><p><strong>The importance of human communication.</strong></p><p>You can find your way around a dataset solo.</p><p>You can remove duplicates, assign data types, model the data, get statistical summaries of it, and try to reverse engineer it all day long.</p><p>Or, you could spend an hour talking to someone who knows how it is produced in the real world, and who can answer most questions for you in a few minutes.</p><p>There is a phrase I really like, which I’m borrowing from <a href="https://joereis.substack.com/p/the-tension-of-orthodoxy-and-speed">Joe Reis</a>: <em>“undifferentiated heavy lifting”</em>.</p><p>Its the type of work that is time consuming, uncreative, and does not generate any net new value. Its already been done for you somewhere else. So there’s no sense in <em>“reinventing the wheel”.</em></p><p>If you can talk to the people who do the real work on the ground, do so.</p><p>You’ll get your questions answered much faster and move on to the more interesting tasks where you can actually uncover useful information and add something new.</p><h3>Sources</h3><p>All of my sources referenced for this three-part series, along with my code for the data analysis I conducted can be found on GitHub at <a href="https://github.com/0sergio-hash/COFW_Development_Permits_Data_Analysis">this link</a>.</p><h3>Bonus: Further reading/listening/learning</h3><p>With so much time invested in this project, I have found a ton of amazing resources !</p><p>Here are a few I think you’ll like:</p><ol><li>I took a great deal of inspiration from Anthony DeBarros, a data journalist, and his book “Practical SQL”: <a href="https://www.linkedin.com/in/anthonydebarros/"><strong>Anthony DeBarros LinkedIn</strong></a></li><li>I really enjoy this newsletter, especially their unique data visualizations and graphics: <a href="https://thehustle.co/originals/can-god-fix-americas-housing-crisis"><strong>The Hustle Newsletter</strong></a></li><li>I have been reading this data modeling classic, which was very helpful in understanding the data: <a href="https://bookshop.org/p/books/the-data-warehouse-toolkit-the-definitive-guide-to-dimensional-modeling-margy-ross/11206644?ean=9781118530801&amp;next=t"><strong>The Data Warehouse Toolkit</strong></a></li><li>My friend Alex the analyst has some of the best tutorials. This is one I used as a refresher on Power BI: <a href="https://www.youtube.com/watch?v=g0m5sEHPU-s&amp;list=PLUaB-1hjhk8HqnmK0gQhfmIdCbxwoAoys"><strong>Alex the analyst Power BI tutorials</strong></a></li><li>This AI app helped me with my research. I was able to listen to lengthy reports and documents in audio form while I read along, which made things so much easier: <a href="https://elevenreader.io/"><strong>ElevenReader by ElevenLabs</strong></a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99edb98de4a6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sergio-ramos-data-portfolio/city-of-fort-worth-development-permits-data-analysis-99edb98de4a6">City of Fort Worth Development Permits Data Analysis</a> was originally published in <a href="https://medium.com/sergio-ramos-data-portfolio">Sergio Ramos Data Portfolio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Music marketing analysis Excel dashboard]]></title>
            <link>https://medium.com/sergio-ramos-data-portfolio/music-marketing-analysis-excel-dashboard-634424dbfed8?source=rss----fea98cd53273---4</link>
            <guid isPermaLink="false">https://medium.com/p/634424dbfed8</guid>
            <category><![CDATA[excel-dashboard]]></category>
            <category><![CDATA[excel]]></category>
            <category><![CDATA[marketing-analytics]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[music-business]]></category>
            <dc:creator><![CDATA[Sergio Ramos]]></dc:creator>
            <pubDate>Wed, 11 Sep 2024 17:02:19 GMT</pubDate>
            <atom:updated>2024-09-11T15:48:46.138Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U8ulWyTjRNKls7U5UL3FbA.png" /><figcaption>Finished dashboard, showcasing campaign metrics</figcaption></figure><h3>Background:</h3><p>Becoming a full-time musician is one of the historically most difficult things to do.</p><p>Until recently, the only way to get your music out into the world was through a major label.</p><p>However, in the digital era, things have changed. It is now cheaper than ever to record, distribute, and market an artist’s music.</p><p>Artists are becoming more business savvy, and companies like <a href="https://indepreneur.io/about-us/">Indepreneur</a> are popping up to teach artists marketing techniques employed on behalf of major labels by marketing agencies (like their agency arm IndieX).</p><p>This empowers artist’s to take charge of their own fan base growth and build their own marketing funnels.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*BRDedO-mfgeSKa1oleI3iw.png" /><figcaption>Musician marketing funnel example</figcaption></figure><p>Above is an example of one such funnel.</p><p>The thinking goes that a listener/fan journey will naturally progress from first impression, to listening to the artist and consuming their content, to eventually being retargeted to be put into an owned channel like email.</p><p>The fan may be made a freebie offer to join a list, or even added via an initial sales campaign with a <a href="https://powerdigitalmarketing.com/blog/what-is-a-tripwire/">tripwire offer</a>.</p><p>From there, the relationship is kept warm with regular emails, and the fan’s LTV (Life Time Value) grows through a cadence of sales campaigns much like any other e-comm business.</p><p>To introduce new listeners to an artist at the “top of funnel”, they might employ a campaign that:</p><ol><li>Reaches them using the Meta ads platform with a call to action to click a link to their full song</li><li>Sends them to a landing page where they can click out to a streaming platform of their choice</li></ol><p>For this project, I analyzed the results of one such campaign over the course of a few months, focusing on results from a test over the course of two weeks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*hTftgIW4pX7Y8x9GJkpYQg.png" /><figcaption>Meta Campaign structure</figcaption></figure><p>Above is a quick visual representation of how ads are structured in Meta.</p><p>Note that the budget is often set at the Ad set level, but for this campaign, the artist used <a href="https://www.facebook.com/business/help/153514848493595?id=629338044106215">campaign budget optimization</a>.</p><p>Simply put, with CBO, Meta allocates budget across <strong><em>Ad Sets </em></strong>based on where the best performing <strong><em>Ads</em></strong><em> </em>are housed.</p><p>And by default, Meta will then focus spend further to the best performing <strong><em>Ads </em></strong>within that set.</p><p>During this two week period, there were two ad sets going.</p><p>One contained creative which was already working well for the artist, and the other contained new short form videos they were testing.</p><p>If the new, testing ad set took most of the spend away from the incumbent ad set, the top performing video clip would be moved over to the winner’s ad set, and the test ad set would be shut off.</p><p>Otherwise, the testing Ad Set would simply be shut off as a failed test.</p><h3>Data Sources:</h3><p>For this project, I did a manual export from several platforms.</p><ol><li>Campaign data from the Meta ads platform</li><li>Website visit data from Google Analytics at the daily level per page</li><li>Spotify data at the song level for streams of each song day by day</li><li>Spotify data at the account level for account metrics</li></ol><h3>Data cleaning and modeling:</h3><p>Data cleaning was pretty straightforward. The only major challenge I faced was re-formatting dates I imported from Google analytics.</p><p>I turned each source into a table, and used Power Pivot to create a data model, to be able to analyze across datasets.</p><p>I added a “Dates” and a “Songs” tables to use as drivers for filters.</p><p>Then, I enriched campaign data. Since each ad name contained the song name it was for, a simple function in excel was able to handle this.</p><pre>=IFS(ISNUMBER(SEARCH(&quot;Crush&quot;, [@[Ad name]], 1)), &quot;Crush&quot;,<br>     ISNUMBER(SEARCH(&quot;Be up&quot;, [@[Ad name]], 1)), &quot;Be up&quot;,<br>     ISNUMBER(SEARCH(&quot;Closure&quot;, [@[Ad name]], 1)), &quot;Closure&quot;,<br>     ISNUMBER(SEARCH(&quot;Belong in LA&quot;, [@[Ad name]], 1)), &quot;Belong in LA&quot;,<br>     ISNUMBER(SEARCH(&quot;Muddy water&quot;, [@[Ad name]], 1)), &quot;Muddy water&quot;,<br>     ISNUMBER(SEARCH(&quot;WYSHOY&quot;, [@[Ad name]], 1)), &quot;WYSHOY&quot;,<br>     ISNUMBER(SEARCH(&quot;Swim&quot;, [@[Ad name]], 1)), &quot;Swim&quot;,<br>     ISNUMBER(SEARCH(&quot;Repeat&quot;, [@[Ad name]], 1)), &quot;Repeat&quot;,<br>     ISNUMBER(SEARCH(&quot;Voicemail&quot;, [@[Ad name]], 1)), &quot;Voicemail&quot;<br>)</pre><p>I was then able to tie all the sources together in a data model, creating relationships among them, so that when I filtered the final dashboard, metrics would change dynamically:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZOeoOUgXHxjUnCEVEHvEfQ.png" /><figcaption>Final Power Pivot data model diagram</figcaption></figure><h3>Results:</h3><p>After cleaning and modeling the data, I was able to create pivot tables from it, organized in a “Details” tab.</p><p>I used those pivot tables to create charts, and an interactive dashboard with a navigation pane.</p><p>You can check out the final dashboard <a href="https://1drv.ms/x/c/76b2e24c4b6249b6/EU5umN6e4HlEnQT_axguVlIBNNe49lHyVgKm8caMQTEjmQ?e=Wf4jUE">here</a>.</p><h4>Share of spend</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IlY9YpB2ZZh5E3tFkUwv7w.png" /><figcaption>Results by Ad Set and Ad over the two week testing period</figcaption></figure><p>The first thing I noticed, was that this was the first testing Ad Set to take a significant share of Ad spend since starting this campaign.</p><p>The benchmarks I have heard for what counts as a <em>“significant” </em>share of spend by a testing Ad Set have been between 50% and 80%.</p><p>For this artist, I knew that 37% was high for them, and had the added context that clips from this song had performed well on at least one platform organically.</p><p><strong>Takeaway:</strong> Ultimately, I made the decision the move over the winning creative. But, in future tests, we might adhere more to those benchmarks.</p><h4>Cost per result</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9YsNsD7lJ1vZECtTrISZoA.png" /><figcaption>Cost per result average and trend</figcaption></figure><p>In terms of cost per result, I have heard a benchmark of &lt; $0.30 cost per view content (click to the webpage, followed by clicking a link out to streaming which we have set up as an event in Meta).</p><p>The two week testing period had an average of $0.71, with an average for the campaign of $0.70, which leaves room for improvement.</p><p><strong>Takeaway: </strong>This is likely a timing or content issue.</p><p>Timing, we cannot control. But, the artist can continue to improve their music and content to continue to improve these figures.</p><h4>Overall Spotify trends</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n2YtxkZ5Ej9c75W9W5VO8g.png" /><figcaption>Overall profile trends April-August 2024</figcaption></figure><p>I included exports at the profile level for the artist to get additional context for how their audience as a whole is growing on Spotify.</p><p>Since the campaign leads listeners to a Spotify playlist of all their music, new listeners may not show up in the target song(s) from the ads.</p><p>Additionally, the results from the campaign alone do little to shed light on how new fans are engaging with the artist once they have discovered them.</p><p>Their followers, listeners and streams have been gradually growing over time, which is a positive indicator that the traffic being sent to the platform is likely to resonate with the artist.</p><p><strong>Takeaway: </strong>These broader trends in audience growth show that the people who are being reached enjoy the artist, and stick around to engage with them past their initial exposure through the ad campaign.</p><h3>Conclusion:</h3><p>At the end of this analysis, it is clear to me that this campaign is having an impact. The content is engaging new listeners and making them stop to watch.</p><p>They are compelled enough to click TWICE to get to the artist’s music on streaming, and are engaging meaningfully with the artist’s catalog.</p><p>There is also a lot of room for improvement.</p><p>The best course of action to follow here is to continue to create and improve the music and content surrounding it.</p><p>This process will allow for opportunities for ongoing tests like this one on a regular basis, leading to stronger performance and more growth of the fanbase.</p><p>The focus for the act should remain on this front, until they see a very meaningful improvement in these metrics, and more qualitiative engagmenet with the content.</p><p>At that point, they can start to consider strategies for monetizing their newfound fanbase.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=634424dbfed8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sergio-ramos-data-portfolio/music-marketing-analysis-excel-dashboard-634424dbfed8">Music marketing analysis Excel dashboard</a> was originally published in <a href="https://medium.com/sergio-ramos-data-portfolio">Sergio Ramos Data Portfolio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>