<?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[Stories by Gideon Oquongudo on Medium]]></title>
        <description><![CDATA[Stories by Gideon Oquongudo on Medium]]></description>
        <link>https://medium.com/@gideonokwongudoh?source=rss-32b00b7a2762------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8RJfoq4lhGfh2-bZriWfIw.jpeg</url>
            <title>Stories by Gideon Oquongudo on Medium</title>
            <link>https://medium.com/@gideonokwongudoh?source=rss-32b00b7a2762------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 08:32:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gideonokwongudoh/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[CRM Pipeline Analysis — From Data to Decision: Assessing Escoe’s Pipeline Performance.]]></title>
            <link>https://medium.com/@gideonokwongudoh/crm-pipeline-analysis-from-data-to-decision-assessing-escoes-pipeline-performance-a98f96f4b822?source=rss-32b00b7a2762------2</link>
            <guid isPermaLink="false">https://medium.com/p/a98f96f4b822</guid>
            <dc:creator><![CDATA[Gideon Oquongudo]]></dc:creator>
            <pubDate>Fri, 03 Oct 2025 12:47:34 GMT</pubDate>
            <atom:updated>2025-10-03T12:49:20.485Z</atom:updated>
            <content:encoded><![CDATA[<h3>CRM Pipeline Analysis — From Data to Decision: Assessing Escoe’s Pipeline Performance.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FkhrrOPmweU416wJaEIPIw.png" /></figure><h3>Situation:</h3><p>Escoe Group, a global B2B organization, operates across multiple countries and sectors. Despite a active sales force and a growing client portfolio, the company lacked a unified, data-driven view of its sales pipeline. This created a blind spot for leadership, who had no clear way to measure marketing effectiveness, track deal progression, assess the performance of sales teams, or identify strategic opportunities for growth. Decisions were being made based on intuition rather than actionable insights.</p><h3>Task:</h3><p>To address this visibility gap, the objective was to develop a comprehensive, end-to-end analytical report. This dashboard would serve as a single source of truth for high-level executives, providing a clear overview of the sales pipeline’s health and a granular breakdown of performance across key dimensions such as sales managers, geographic territories, industry sectors, and time.</p><h3>Action:</h3><ol><li><strong>Data Connection &amp; Ingestion:</strong> Connected Power BI directly to the company’s CRM database to establish a live data pipeline.</li><li><strong>Data Cleaning &amp; Transformation:</strong> Performed rigorous data preparation to ensure accuracy and reliability. This included:</li></ol><ul><li>Filtering out erroneous and inconsistent entries in the ‘Close Date’ column.</li><li>Refining the dataset to focus exclusively on ‘WON’ and ‘LOST’ deal stages for a clear performance analysis.</li></ul><p>3. <strong>Data Modeling</strong>: Restructured the raw, single-table dataset into a star schema to optimize for performance and analytical clarity. Established defined relationships between fact and dimension tables.</p><p>4.<strong>Enabling Time Intelligence:</strong> Created a standalone Calendar table to facilitate powerful time-based analysis, such as month-over-month and year-over-year performance tracking.</p><p>5.<strong> Advanced Analysis:</strong> Authored a suite of custom DAX measures to calculate critical KPIs (e.g., Win Rate, Lost Deal Count, Deal Value) and enable dynamic, deep-dive exploration of the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QZhXhfq9nQ_WlQh_nMyv7g.png" /><figcaption>CRM Star Schema Model</figcaption></figure><h3>Result:</h3><h4>Key Insights:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/1*pnaxcVw5T-Jy2ws9KohTAQ.png" /></figure><p><strong>#1. Strong Overall Performance with Room for Growth</strong>:The sales team is effective, converting 63.15% of all opportunities into wins. This means for every one deal lost, the company successfully closes nearly two. However, a 36.85% loss rate on a large volume of opportunities (2,473 lost deals) represents a significant amount of potential revenue left on the table.</p><h4>What month did the company recorded most won deals?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*5RcrJbcYVVtPQX3MKRriJw.png" /></figure><p>March, May, June, August, September, November and December standout as peak months for the most won deals.</p><h4>What month did the company recorded most lost deals?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*e6ygviGOrWMNZorDF5ZlsA.png" /></figure><p>April, May, July, August, October, Novemeber show as the month where the company recorded the most losses</p><h4>#2. Significant Geographic Concentration and Opportunity</h4><p>The market is heavily reliant on the United States, which accounts for 82.92% of all won deals. While this demonstrates strength domestically, it also highlights a vulnerability and a major growth opportunity. International markets like Korea, Panama, and Belgium have already proven successful on a smaller scale, indicating strong potential for strategic expansion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*4khiKLhjPBdYCi66bhAlHQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*BU8mmVVYyiHrgRfvQceoMA.png" /></figure><h4>#3. Clear Sector Strengths and Challenges:</h4><p>The company dominates in Retail, Technology, and Medical sectors, which are the top contributors for both won and lost deals. This indicates these are core, high-activity markets. The fact that Finance appears as a top sector for lost deals, but not for wins, signals a specific challenge that needs to be addressed in that vertical.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*fwxhGJ2FaMYFCqJcZcsz4g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*9Ur2yJvV3ETQIm24D1CzIg.png" /></figure><p><strong>#4. Manager Performance: Volume vs. Efficiency: </strong>Top managers like Melvin Marxen and Summer Sewald drive the highest volume of deals, both won and lost. This suggests they are the most active but may benefit from strategies to improve their conversion rates. Analyzing their methods could provide best practices for the entire team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*WZM2-mhFU5zOyBIXJmjTFw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*mU9tKeS2biwl7Pl4LcLQvQ.png" /></figure><p><strong>#5. Optimized Sales Cycle: </strong>The data reveals a healthy sales cycle pattern. A large majority of deals are closed quickly (within 0–24 days), indicating a strong process for low-friction sales. A second, smaller cluster of deals takes 75–99 days, likely representing more complex, high-value contracts, which the team also successfully manages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*HxCojN1Il6hwh6KBVBAlNg.png" /></figure><ol><li><strong>Launch Targeted International Expansion Pilots:</strong> Form a dedicated Team to focus on the top 3 international territories: Korea, Panama, and Belgium. These markets have already demonstrated success with minimal focus. Allocate additional marketing budget and resources to these regions to systematically build on existing momentum.</li></ol><ul><li><strong>Measure</strong>: Set specific quarterly targets for won-deal growth in these countries.</li></ul><p>2. <strong>Develop Sector-Specific Sales strategy:</strong> Conduct a deep-dive analysis into high-volume sectors to understand the root causes of the high loss rate. Is it product-market fit, competitive pressure, or a lack of specialized knowledge? Turning around a challenging but valuable sector like Finance could significantly boost overall win rates. Simultaneously, document the winning strategies used in Retail and Technology to formalize and replicate success.</p><p>3. <strong>Optimize Manager Performance Through Coaching: </strong>Facilitate knowledge-sharing sessions where top-volume managers like Melvin Marxen and Summer Sewald share their prospecting and lead-generation techniques with the wider team. To disseminate best practices for generating high activity. Conversely, provide specialized coaching to these managers on closing strategies to help convert more of their abundant opportunities.</p><h3>Conclusion</h3><p>This CRM analysis project successfully transformed raw sales data into a clear strategic asset. The report reveals that Escoe Group is a high-performing sales organization with a solid foundation and a winning track record. However, the analysis uncovers two critical strategic levers for unlocking exponential growth: geographic diversification and sector-specific optimization.</p><p>The over-reliance on the U.S. market presents a risk, while proven success in international territories provides a clear roadmap for expansion. Similarly, understanding why certain sectors like Finance yield high losses is crucial for refining market focus and sales tactics. The insights into manager performance and sales cycle duration provide a actionable blueprint for enhancing operational efficiency and training.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a98f96f4b822" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pull and Push Strategy: Finding the Best Fit and Balance for your Supply Chain.]]></title>
            <link>https://medium.com/@gideonokwongudoh/pull-and-push-strategy-finding-the-best-fit-and-balance-for-your-supply-chain-8b241bc4222b?source=rss-32b00b7a2762------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b241bc4222b</guid>
            <dc:creator><![CDATA[Gideon Oquongudo]]></dc:creator>
            <pubDate>Thu, 04 Sep 2025 10:40:37 GMT</pubDate>
            <atom:updated>2025-09-04T10:40:37.942Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ewwyQtUPZldqtUwQN3OquQ.png" /><figcaption>Pull and Push strategy</figcaption></figure><p>The push and pull strategy is used in the Supply Chain to determine the movement of goods from the manufacturing units to the end consumer/customer. One is based on forecasted demand. The other based on actual demand.</p><p><em>Imagine this: your warehouse is overflowing with a product that just isn’t selling. Meanwhile, your best-selling item is constantly out of stock, and customers are getting frustrated. Sound familiar? This is the daily tension at the heart of supply chain management: should you push products to the market based on forecasted demand or pull them based on real-time demand? The choice between a Push and a Pull strategy is one of the most fundamental decisions a supply chain businesses make, and getting it wrong can cost millions.</em></p><p>Let’s breakdown what each strategy entails.</p><h3>The Push Strategy (Make-to-Stock)</h3><p>Here with the push strategy, production is pre-planned, sufficient raw materials are procured, production takes place and finished products are moved into warehouse ahead of time, in anticipation of customers demands. Push-based Supply Chain companies rely on historical ordering patterns from retailers to predict demands and produce volume sufficient enough to meet the anticipated demand.</p><p>Simply put production is based on forecast/prediction. This strategy is suitable businesses with predictable demand patterns or markets where demand uncertainty is low and for goods that have longer shelf live — e.g., canned goods, basic apparel, books.</p><p>This method is considered proactive as supply is already prepared, available and awaiting demand.</p><p>Examples of Companies that favour the Push Strategy for their Supply Chains operations includes Proctor &amp; Gamble, Coca Cola Pepsi Co, Apple, Unilever, Harper Collins, etc.</p><h3>Pros</h3><p>1.<strong>Proactive Production</strong>. Push strategy gives supply chain companies a demand-ready attitude as supply is readied in advance for market demands.<br>2. <strong>Efficiency and Economies of scale</strong>. The push method encourages production in bulk quantities potentially reducing cost per unit output while volume increases.<br>3. <strong>High availability to meet customers demand: </strong>Since production is based on forecast derived from historical order trends, the push method makes room for sufficient production that is enough to meet market demands. This is particularly ideal for products that don’t change often.</p><h4>Cons.</h4><p>1.<strong>Inventory Glut</strong>: Inaccurate forecasts lead to expensive excess inventory or obsolescence.<br>2. <strong>High holding Cost:</strong> Cost due to paying for warehouse for storage, goods insurance while anticipating demand tantamount to racking up further operational costs.<br>3. <strong>Inflexibility</strong>. Production is based on standards which leaves little or no room for changes to customers preference. Pushed-based supply Chain adjust to changes in the market.</p><h3>The Pull Strategy (Make-to-Order)</h3><p>Planning is done, raw materials are sourced, productions carried out and shipped in response to instant demands. This method uses the Just-in-time production manufacturing principle and requires high level of responsiveness from the participating agents within the supply chain.</p><p>This is ideal for products with unpredictable demand, short life cycles, or high customization — e.g., luxury cars, designer fashion, custom PCs — This method is considered reactive as supply is only done in reaction to immediate, real-time market demands.</p><p>An example of a company renowned for the use of pull strategy is the automobile powerhouse — Toyota. They build cars to order, minimizing inventory and allowing for extensive customer customization. Other examples include Nike, Apple, Red Bull, Loius Vitton, etc.</p><h3>Pros</h3><p>1. <strong>Minimal inventory:</strong> Since procurement and production only begins when customers initiates orders, it means companies only procure, produce and ship based on real-time demands, drastically reducing or eliminating the need for inventory altogether. <br>2. <strong>Minimal holding cost</strong>: With minimal or no need for warehousing and payment for inventory services, the burden of paying for warehousing and inventory services and having your production capital tied down is eliminated<br>3. <strong>High Flexibility</strong>: The pull method gives room to tailor and adapt production to meet customers preferences and market shifts.</p><h3><strong>Cons</strong></h3><p>1. Risk of Stockouts: One of the challenge for businesses in favour of the pull strategy is a spike in demand that overwhelms supply capacity, leading to stock outs that could unsettle customers. Frequents or high stockout rates unsettles customers, pushing them to consider competitors that promise instant demand fulfilment.</p><p>2. <strong>Diseconomies of Scale: </strong>Given that the pull strategy is heavily driven by just-in-time manufacturing principles, it results in companies losing economies of scale as production and shipping can be more expensive per unit.</p><p>3. <strong>Extended production times:</strong> Production based on real-time customers demand introduces last-minute, rush-hour complexity into operations and management. Customers may have to must wait for the entire production and shipment process.</p><h3>The Best of Both Worlds: The Hybrid Model</h3><p>While the Pull or Push strategy is best fit for some companies, very few companies use a pure push or pure pull strategy. The smartest operators use a hybrid model — a dynamic combination of both the pull and push production method that allows them to <strong>Push</strong> standard components or base models and run the <strong>Pull strategy </strong>for final assembly, customization, or packaging based on actual orders.</p><p><strong>Example</strong>: Dell Computers famously pushes the production of standardized components but only pulls them into final assembly once a customer places a specific order for a laptop. Nike uses a push strategy for its core footwear lines but a pull strategy for its custom NIKEiD sneakers.</p><h3>Conclusion: It’s About Alignment</h3><p>There is no “best” strategy — only <strong><em>the best strategy for your product and business goals. The key is alignment.</em></strong></p><p>The choice of which strategy to adopt should be influenced by the type of market demand that favours the service or product you are offering and your competitive market strategy: Does the demand in your business favour efficiency or responsiveness or a mix of the two? Having a clear idea of the above is crucial in determining which supply chain strategy to adopt.</p><p>What’s your experience? Does your company lean more towards Push, Pull, or a Hybrid model? Share your thoughts in the comments and see you the next read 😉!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b241bc4222b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Excel Project: LAGOS REAL ESTATE PROPERTIES: What’s available for your Budget and Preference?]]></title>
            <link>https://medium.com/@gideonokwongudoh/excel-project-lagos-real-estate-properties-whats-available-for-your-budget-and-preference-7f699c61aad5?source=rss-32b00b7a2762------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f699c61aad5</guid>
            <dc:creator><![CDATA[Gideon Oquongudo]]></dc:creator>
            <pubDate>Tue, 19 Aug 2025 12:43:33 GMT</pubDate>
            <atom:updated>2025-08-19T12:43:33.110Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TaFlXiFbDeSO_MscLvjK-w.png" /></figure><h3><strong>Introduction</strong></h3><p>Businesses require spaces to carry out their operations. People need a roof over their heads — a place they can call home and return to after the day’s hustle. For some, it’s simply about having a structure with the barest minimum features that can provide shelter. For another category of property seekers, it’s the need for an operational base for their business or hustle. Regardless of the category, preferences, tastes, and budgets — or pocket size — are all critical determining factors that either limit or expand available options.</p><p>Lagos, on the other hand, is a hotcake city in Nigeria, proudly holding the title of being a tech, start-up, investment, entertainment, and creative epicentre in Africa. With an internally generated revenue share that contributes about 35% to the federal coffers, Lagos real estate may be Ivy League in terms of pricing — yet it remains a dream residence for many.</p><h3>The objective</h3><p>This project focus on analyses of a dense dataset of Lagos Real Estate Properties with the aim of giving property seekers and potential residents in Lagos a comprehensive overview of the different options available that matches their needs, preferences, budgets and aid them in making data-driven decision.</p><h3><strong>About the Dataset</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ctXdRpnUAcCaZuzaT-6I1A.png" /><figcaption>Messy Nigerian Property Dataset</figcaption></figure><p>The dataset for this project was extracted from the Nigerian Property Centre — a leading Nigerian property website that gives property seekers details of listed properties available for rent, sales and lease. The single table dataset had a total listings of over a 98,809 and 10 columns.</p><p>The dataset was not cleaned and required me performing extensive data cleaning to standardize the values and give appropriate data types to the columns and make it suitable for analysis. Some of the Data transformations and cleaning steps I performed are as follows;</p><ol><li>Critical attributes such as property location and property types/categories were stuffed up in the property’s wordy and lengthy description column. I wrote M Codes to extract the Location and Property types into separate columns.</li><li>Assigned more descriptive labels to binary values of 1 and 0’s found in columns such as Furnished, serviced and new built.</li><li>Cleaned the price column by splitting and separating the price numeric values from the textual values.</li><li>Deleted irrelevant columns such as title, more info, categories. etc</li><li>Number of rooms, property types values were vacant for a good number of rows. I removed those rows in order to maintain precision for prices of properties, otherwise calculating</li><li>Assigned proper data types to the columns.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vT7nL9AugesQ3BPyGSdFDw.png" /><figcaption>Clean Nigerian Property Dataset</figcaption></figure><h3>Tools Used</h3><ol><li>Power Query: Used Power Query to scraped and cleaned the websites that included a lot of paginated tables spread over multiple pages.</li><li>Excel Power Pivot: Used Power Pivot to author some DAX measures for drilling into the data and generating more insights.</li><li>PivotTables: Used Pivot table to summarize and generate insights from the data.</li></ol><h3><strong>Note</strong></h3><p>It is worthy of mentioned that this analysis does not reflect the current prices of properties in Lagos as Real Estate prices are not static and vary with time.</p><h3>Analysis Questions</h3><p>The following questions were compile to define the direction of the analysis and give scope to the project.</p><ol><li>What’s the average rent price by location, property type and number of rooms.</li><li>What’s the possibility of getting a serviced, furnished and newly built property?</li></ol><h3><strong>Key Numbers/Insights.</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/262/1*hslDGpSVIW9wswP8X3jbcA.png" /></figure><h4>1.Total Available Listings:</h4><p>A total of 69,048 listed properties was analysed for</p><h4>2. <strong>Average rent price per annum: N3.77M</strong></h4><p>It will require a minimum average amount of N3.77M to pay for a property per annum in Lagos state.</p><h4>3. What’s the possibility of getting a furnished, serviced and newly built property in Lagos?</h4><p>A property seeker in Lagos has a 13.91% chance of finding and paying for furnished property, 18.38% chance of paying for a serviced property and 31.52% chance of finding and paying for a newly built property in Lagos.</p><h4><strong>4. What’s the Average rent per annum in Cities/Suburbs of Lagos?</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*IueQK1FeUwWy9U1S-MMpdg.png" /><figcaption>Average rent per annum of properties in Lagos Cities/Suburbs</figcaption></figure><p>Properties in Ikoyi will require a minimum of over N14m to rent per annum. Badagry follows in the order with properties available starting from N11.33M up. Victoria Island and Lekki/Ajah surprisingly have properties going for prices twice less than that of Ikoyi and Badagry — both requiring an amount of N5.36M and 4.43M each to rent a property for a year.</p><h3>5. What’s the average price per different property types in Lagos?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*3d3499oThaK7txLE-MjEaw.png" /><figcaption>Average price per different property types in Lagos</figcaption></figure><p>Duplex/Detached houses and Terrace/Semi-Detached Duplex cost over N7.5m Naira to get in Lagos. Followed by Commercial properties, Mini Flat/Self Con apartments and bungalow, each requiring you budgeting a minimum of 3–6M Naira to get.</p><h3>6. If your concern is the cost of property per rooms, How much should you budget?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*WL1WvVLGXX0aJqeHpClylw.png" /></figure><p>One room apartment in Lagos cost over a Million Naira to rent for a year. Renting a 10 room apartment will demand you budget between 23–25 million Naira per annum.</p><h3>Recommendations</h3><p>The rental prices of properties in Lagos are significantly influenced by variables such as location, property type, and features like whether the property is newly built or furnished. This analysis aims to guide property seekers by highlighting available options based on these factors.</p><h4>Locations</h4><ul><li>High-budget seekers (₦4M–₦14M per annum): Focus on high-end areas like Ikoyi (₦14.05M), Victoria Island (₦5.36M), Lekki/VGC (₦4.43M), and Lagos Island (₦3.67M).</li><li>Mid-budget seekers (₦1M–₦3M): Consider areas such as Ikeja (₦2.82M), Agege (₦2.16M), Okota/Ago (₦2.10M), Surulere (₦1.57M), and Epe (₦1.20M).</li><li>Low-budget seekers (below ₦1M): Explore affordable options in Alimosho (₦875.39K), Shomolu (₦758.82K), Ikorodu (₦606.61K), and Ojo (₦450.80K).</li></ul><h4>Property Types</h4><ul><li>Most affordable: Hostel/Shared apartments (₦736.67K) and Flats/Apartments (₦2.61M).</li><li>Premium options: Terrace/Semi-Detached Duplexes (₦7.75M) and Commercial properties (₦5.54M).</li></ul><h4>Number of Rooms</h4><ul><li>Properties with 4+ rooms command higher rents (above ₦7M per annum), while 1–2 room units are more budget-friendly (₦1.19M–₦2.06M).</li><li>Property Types</li></ul><p>Hostel, shared apartment are the least on the rank of property types that are most affordable. Duplexes cost a lot more.</p><h4><strong>Number of Rooms</strong></h4><p>Insight also shows that the higher the number of rooms, the higher the rent amounts per annum. High-styled property seekers who have a need above 4 rooms will need to budget above 7M Naira per annum to pay for such properties.</p><h3>Conclusion</h3><p>This project analysed Lagos property listings to help seekers identify options aligned with their budgets. Key insights include:</p><ul><li>Location drastically impacts pricing, with Ikoyi being the most expensive and Ojo the least.</li><li>Property type and room count further refine costs, offering choices for diverse needs.</li><li>Additional features (e.g., furnished or newly built properties) may influence prices, as shown by the 31.52% chance of renting a newly built property.</li></ul><p>Armed with these insights, property seekers can make informed, data-driven decisions when navigating Lagos’s rental market.</p><p>To interact with the dashboard I have created for this project, <a href="https://1drv.ms/x/c/0ed74f19cb95d2ce/ER4Zi8GDKddKrPre_xG2HgkB0KFHrR-_xC3S55gFtrZVwQ?e=KSEJgY">click here</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f699c61aad5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Advanced SQL for Retail Optimization: Customer Segmentation, Market Trends & Product Performance.]]></title>
            <link>https://medium.com/@gideonokwongudoh/advanced-sql-for-retail-optimization-customer-segmentation-market-trends-product-performance-b4d819b6548b?source=rss-32b00b7a2762------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4d819b6548b</guid>
            <dc:creator><![CDATA[Gideon Oquongudo]]></dc:creator>
            <pubDate>Fri, 20 Jun 2025 08:57:38 GMT</pubDate>
            <atom:updated>2025-06-20T08:57:38.295Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1bBPkDEE5-FXG0OJ" /><figcaption>Photo by <a href="https://unsplash.com/@joshrh19?utm_source=medium&amp;utm_medium=referral">Joshua Rawson-Harris</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>This project leverages the AdventureWorks dataset to perform a comprehensive business intelligence analysis, focusing on customer segmentation, sales performance, market trends, and product growth. By applying SQL-based analytics, we uncover actionable insights to optimize marketing strategies, improve customer retention, and enhance revenue growth.</p><p>The analysis addresses key business challenges, including:</p><ul><li>Customer Value Identification (Top customers, RFM segmentation)</li><li>Geographic Sales Performance (YoY trends, buyer distribution by country)</li><li>Campaign &amp; Product Effectiveness (Monthly active user growth, product MoM trends</li></ul><h3>Objectives</h3><ol><li>Identify high-value customers to prioritize retention and personalized engagement.</li><li>Evaluate market performance across regions to allocate resources effectively.</li><li>Assess promotional campaign success in driving customer acquisition and retention.</li><li>Determine product performance trends to optimize inventory and marketing strategies.</li></ol><h3>Data Source</h3><p>This project utilizes the AdventureWorks2021 dataset from Microsoft’s learning platform. While the original database contains multiple tables, this analysis focuses on four key tables:</p><ul><li>Sales (58,191+ transactions across 13 columns)</li><li>Customers (18,000+ unique customer records across 20 columns)</li><li>Product (600+ unique products across 13 columns)</li><li>Territory (11 distinct regions across 4 columns)</li></ul><p>The analysis was conducted using Microsoft SQL Server as the primary RDBMS.</p><h3>Data Preparation</h3><p>The dataset required minimal cleaning due to its well-structured nature. However, comprehensive data profiling and exploratory analysis were performed to:</p><ul><li>Validate data integrity and consistency</li><li>Ensure proper table relationships for accurate joins</li><li>Confirm absence of critical missing values</li></ul><h3><strong># </strong>Customer Segmentation &amp; Behavior Analysis</h3><h4>1. Rank Top 2 customers by total sales within each territory</h4><pre>SELECT * --  Using the WHERE Clause, Fetch only the Top 5 Customers by Sales Per Territory<br>FROM (<br>        SELECT *, -- Ranked all The Customers based on their Total Transaction value <br>          DENSE_RANK() OVER (PARTITION BY Sales.Customers_Country ORDER BY Sales.Sales DESC) AS Ranked<br>        FROM (<br>                SELECT  -- Get the Customers&#39; Name, Country and Total Sales <br>                  C.FullName,<br>                  C.CustomerCountry AS Customers_Country,<br>                  ROUND(SUM(S.SalesAmount),2) AS Sales<br>                FROM [Customers ] AS C<br>                INNER JOIN Sales AS S<br>                ON S.CustomerKey = C.CustomerKey<br>                GROUP BY C.FullName, C.CustomerCountry<br>        ) AS Sales<br>) AS Ranked_Customers<br>WHERE Ranked_Customers.Ranked &lt;= 2</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*W64QhsY4_RHt2DmNUYsNvQ.png" /><figcaption>Top two high value customers by total sales per countries/territories.</figcaption></figure><h4>💡 Strategic Insights</h4><p>- Close Competition: Marginal gaps between #1 and #2 in most markets (e.g., France: $1.11 difference).<br>- Revenue Powerhouses: Top customers drive 12–18% of territory sales (est.).<br>- Global Consistency: All territories have clear high-value customer leaders.</p><h4>🎯 Business Impact: Customer-Centric Growth</h4><p>- Retention Priority: These customers are low-hanging fruit for revenue protection.<br>- Upsell Potential: France/Germany’s top spenders ($11K+) may respond to premium offers.<br>- Territory Strategy: Replicate success factors from top performers (e.g., Nichole Nara’s preferences).</p><h4>2. Analyze customer behavior using Recency, Frequency, Monetary value modeling and report the RFM scores for all customers.</h4><pre>--- Declare Variable for your benchmark Date<br><br>DECLARE @Today AS Date  = &#39;2024-01-01&#39;;<br><br>WITH Base AS (<br>SELECT <br>      --- The Recency Test<br>      CustomerKey, <br>      CAST(MAX(OrderDate) AS DATE) AS Most_recent_purchase_date, <br>      -- Get the recency score<br>      DATEDIFF(DAY, CAST(MAX(OrderDate) AS DATE),  @Today) AS Recency_Score, <br>      -- Get the Frequency Score<br>      COUNT(SalesOrderNumber) AS Frequency_score,<br>      -- Get The Monetary_Value <br>      SUM(SalesAmount) AS Monetary_Value<br>FROM Sales<br>GROUP BY CustomerKey<br>),<br><br>RFM_Scores AS (<br>--- Use the NTILE function to segment customers into 5 groups based on their <br>--- recency, Frequency and Monetary value scores<br>SELECT <br>     CustomerKey, <br>     Recency_Score,<br>     NTILE(5) OVER (ORDER BY Recency_Score DESC) AS R,<br>     Frequency_Score,<br>     NTILE(5) OVER (ORDER BY Frequency_Score) AS F, <br>     Monetary_Value,<br>     NTILE(5) OVER (ORDER BY Monetary_Value) AS M<br>FROM Base<br>WHERE Monetary_Value IS NOT NULL<br>)<br><br>--- Aggregates total Customers, Total purchasea value and average purchase value <br>--- by RFM Groupings.<br>SELECT <br>  (R  + F + M)/ 3 AS RFM_Grouping,<br>  COUNT(RFM_Scores.customerKey) as Total_Customers,<br>  CAST(SUM(Monetary_Value) AS DECIMAL(16,2)) AS Total_Revenue, <br>  CAST (AVG(Monetary_Value) AS DECIMAL(16,2)) AS Avg_Revenue<br>FROM RFM_Scores<br>GROUP BY  (R  + F + M)/ 3 <br>ORDER BY 1 DESC</pre><h4>Results</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*uTSfiyHuV0lFphdVU-p8Zw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*A-G1_e5vvTF3H62U8rh3rg.png" /></figure><p>Data shows that newest customers (RFM Group 5) — just 427 people — delivered:<br>💰 $5,993 average spend (88% higher than all other segments combined!)<br>🚀 $2.56M total revenue (outpacing groups 2x their size)</p><h4>Business Impact?</h4><p>This result from the data establishes the fact that the business’s freshest leads are its HIGHEST-VALUE customers. Losing them equates to losing 20%+ of revenue base overnight and their spending behavior holds clues to replicating success.</p><h4>3. How effective were monthly campaigns at driving customer growth?</h4><pre>WITH Distinct_Customers AS  (<br><br>    SELECT <br>      DATEPART(YEAR, OrderDate) AS Year, <br>      DATEPART(MONTH, OrderDate) AS Month_Number,<br>      DATENAME(MONTH, OrderDate) AS Month_Name,<br>      COUNT(DISTINCT Customerkey) AS Distinct_Customers<br>    FROM Sales <br>    GROUP BY DATEPART(YEAR, OrderDate),<br>       DATEPART(MONTH, OrderDate), <br>       DATENAME(MONTH, OrderDate)<br><br>),<br><br>--Step Two: In a CTE and using the LAG() function, get the previous month distribution of distinct customers. <br>Prev_Month_users AS (<br>SELECT *, <br>  LAG( DC.Distinct_Customers) OVER( PARTITION BY DC.Year ORDER BY DC.Month_Number, DC.Year)  AS Prev_Month_Count<br>FROM Distinct_Customers AS DC<br>)<br><br>-- Get the MoM % ▲▼ using the formula: (Current - Previous)/Previous<br>SELECT<br>  PM.Year, <br>  PM.Month_Name,<br>  PM.Distinct_Customers,<br>  ROUND((CAST((PM.Distinct_Customers - PM.Prev_Month_Count) AS FLOAT)/PM.Prev_Month_Count) * 100.0,2) AS &quot;MoM % ▲▼&quot;<br>FROM Prev_Month_users AS PM</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*3xQXqEs4xLToKaIrJV_GUA.png" /><figcaption>Sql result</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_6ERtzTR1yTEwO4rWF79ug.png" /><figcaption>Chart showing MoM growth analysis of distinct customers</figcaption></figure><ul><li><strong>🔍 Key Insights<br>🚀 Explosive Growth in 2023</strong></li><li>February 2023 saw a <strong>195.3% MoM increase</strong> in MAU — a massive leap!</li><li>Sustained momentum: June 2023 (+24.66%), November 2023 (+8.28%).</li></ul><p><strong>📈📉 Seasonality &amp; Volatility</strong></p><ul><li><strong>Peaks:</strong> June was consistently strong: 2021: <strong>+39.05%</strong> | 2022: <strong>+70.98%</strong> (🎯suggesting Prime campaign months?)</li><li><strong>Troughs:</strong> Mid-year slumps: July 2021: <strong>-20%</strong> | July 2023: <strong>-12.76%</strong> (🌧️suggesting Seasonal dip?)</li></ul><p><strong>🛠️ Stabilization Trend</strong></p><ul><li>2023 had fewer wild swings vs. 2021–2022, suggesting: Better user retention 📊 and Optimized marketing spend.</li></ul><h4>🎯Business Implication</h4><p>Tracking Monthly Active Users (MAU) growth is critical for businesses running recurring campaigns or promotions. By analyzing month-over-month (MoM) changes in distinct customers, stakeholders can quantify the effectiveness of marketing efforts, identify seasonal patterns, and pinpoint periods of exceptional growth or decline. This analysis covers January 2021 through December 2023, revealing how customer engagement evolved across 36 months — highlighting successes (like the 195% surge in February 2023) and areas needing intervention (such as March 2022’s -29.54% drop).</p><h4><strong>Methodology</strong></h4><ol><li><strong>Aggregate Distinct Users</strong>: Counted unique CustomerKey values grouped by month and year using DATEPART and DATENAME.</li><li><strong>Retrieve Prior Month Counts</strong>: Applied the LAG() window function to partition data by year and order by month, creating a Prev_Month_Count column for comparison.</li><li><strong>Calculate MoM Growth</strong>: Computed percentage change using the formula: ((Current — Previous)/Previous) * 100.0</li></ol><h4>4. What is the Percentage of customers whose total sales increased from their previous year?</h4><pre>WITH Customer_Value AS (<br>  SELECT -- Step One: Create a CTE and aggregate each Customer total purchase value, grouped by Customer Name, Key and year <br>          C.CustomerKey,<br>          c.FullName,<br>          YEAR(S.OrderDate) AS Year,<br>          SUM(s.SalesAmount) As Sales_Value<br>  FROM [Customers ] AS C<br>  INNER JOIN Sales AS S <br>  ON C.CustomerKey = S.CustomerKey<br>  GROUP BY  C.FullName,<br>        YEAR(S.OrderDate),<br>        C.CustomerKey<br>),<br><br>Yearly_Value AS (<br>  SELECT -- Step Two: Create a second CTE. Using SUM Window Function, Partition aggregated sales value per customer by year and customer key <br>        Cv.CustomerKey,<br>        Cv.FullName, <br>        CV.Year,<br>        ROUND(CAST(SUM(Cv.Sales_value) OVER (PARTITION BY   CV.Year, Cv.CustomerKey ORDER BY CV.Year, Cv.Sales_value) AS FLOAT),2) AS Customer_Yearly_Value,<br>        DENSE_RANK() OVER (PARTITION BY  Cv.CustomerKey ORDER BY CV.Year,  Cv.Sales_Value) AS Rank<br>    FROM Customer_Value AS Cv<br>),<br><br>Current_Year_vs_Previous AS (<br>    SELECT *,<br>            -- Step Three: Create a third CTE. Using LAG function, fetch each customers previous year total purchase value. Using LAST_VALUE function <br>             -- within each customer partition,grab the last total purchase value within that window, representing customer&#39;s latest year total purchase value<br>            LAG(Yv.Customer_Yearly_Value) OVER (PARTITION BY Yv.CustomerKey ORDER BY   Yv.CustomerKey) AS Prev_Year_Value,<br>            LAST_VALUE(Yv.Customer_Yearly_Value) OVER (PARTITION BY Yv.CustomerKey ORDER BY   Yv.CustomerKey) AS Current_Year_Value<br>    FROM Yearly_Value  AS Yv<br>),<br><br>--- Step Four: Fetch from the third chained CTE the Customers&#39;Name, Previous and Latest Year Sales Value. Using the WHERE Clause filter and return only the Customers whose <br>--- Current Year total purchase value is greater than the previous total Purchase value<br>Current_Greater_Than_Previous AS (<br>SELECT  Cp.FullName, <br>        Cp.Prev_Year_value, <br>        Cp.Current_Year_Value<br>FROM Current_Year_vs_Previous AS Cp<br>WHERE Cp.Prev_Year_value IS NOT NULL<br>   AND Cp.Current_Year_Value &gt; Cp.Prev_Year_value<br>   )<br>    --- Get the count of customers whose subsequent year sales value is greater than the prior year and divide it by the total number of customers <br>SELECT COUNT(*) AS High_YoY_Customers,<br>        ROUND(CAST(COUNT(*) * 100.0 / (SELECT COUNT(*) FROM [Customers ]) AS FLOAT),2) AS Prct_of_High_YoY_Customers<br>FROM Current_Greater_Than_Previous</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*EKnTI-NjNYuhuonw1xQmGA.png" /><figcaption>Count and % of customers whose purchased value increased from the previous year.</figcaption></figure><h4>🔍Results</h4><p>Out of 18,000+ customers, only 2,478 (13.4%) showed increased year-over-year spending — meaning 9 out of 10 customers spent less than the previous period or don’t even return for a purchase.</p><h4>🔍Business implications</h4><p>This signals dangerous over-reliance on new customer acquisition (costing 5–25x more than retention) while 86.6% of existing customers are actively disengaging — a revenue leak that threatens long-term profitability unless addressed through targeted loyalty strategies.</p><h3>#Markets/Geographic Sales Performance</h3><h4>5. What is the total Distribution and Percentage of One time Buyers Per Country</h4><pre>WITH OneTimeBuyers AS (<br>    SELECT <br>          S.SalesOrderNumber,<br>          C.CustomerKey,<br>          C.FullName,<br>          C.CustomerCountry,<br>          COUNT(S.SalesOrderNumber) AS PurchaseCOunt<br>FROM Sales  AS s<br>INNER JOIN [Customers ] AS c<br>ON S.CustomerKey = C.CustomerKey<br>GROUP BY   S.SalesOrderNumber,<br>           C.CustomerKey,<br>           C.FullName,<br>           C.CustomerCountry<br>HAVING COUNT(S.SalesOrderNumber) = 1<br><br>), <br><br>CountryCount AS (<br>      SELECT  CustomerCountry,<br>               COUNT(*) As SinglePurchaseCount<br>       FROM OneTimeBuyers <br>       GROUP BY CustomerCountry<br>)<br><br>SELECT <br>      CC.CustomerCountry, <br>      cc.SinglePurchaseCount,<br>      ROUND(CAST(cc.singlePurchaseCount * 100.0/ (SELECT COUNT(*) FROM OneTimebuyers) AS FLOAT),2) AS [% of Single Purchase]<br>FROM CountryCount AS CC<br>ORDER BY 2 DESC</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*Au2iyJf72AcAuTaTfQraZw.png" /></figure><h4>🔍Results</h4><p>Australia has the highest share of one-time buyers at 32.17%, closely followed by the United States at 31.7%. This suggests that these two markets may have retention challenges, with a significant portion of customers not returning after their first purchase.</p><h4>🎯Business implication?</h4><p>Australia &amp; US lead with over 30% one-time buyers each — 2x higher than other markets. If just 10% of these buyers returned, revenue could grow by 10%. Revealing which countries have the highest proportion of customers making only a single purchase, stakeholders can pinpoint regions that may require targeted re-engagement strategies, localized marketing improvements, or service enhancements.4. What is the total Distribution and Percentage of frequent Buyers Per Country.</p><h4>6.What is the total Distribution and Percentage of frequent Buyers Per Country?</h4><pre><br>WITH FrequentBuyers AS (<br>    SELECT <br>          S.SalesOrderNumber,<br>          C.CustomerKey,<br>          C.FullName,<br>          C.CustomerCountry,<br>          COUNT(S.SalesOrderNumber) AS PurchaseCOunt<br>    FROM Sales  AS s<br>    INNER JOIN [Customers ] AS c<br>    ON S.CustomerKey = C.CustomerKey<br>    GROUP BY S.SalesOrderNumber,<br>             C.CustomerKey,<br>             C.FullName,<br>             C.CustomerCountry<br>     HAVING COUNT(S.SalesOrderNumber) &gt;=2<br>    <br>), <br>CountryCount AS (<br>     SELECT <br>           CustomerCountry,<br>           COUNT(*) As Return_Purchases<br>     FROM FrequentBuyers<br>     GROUP BY CustomerCountry<br>)<br>SELECT <br>          CC.CustomerCountry, <br>          cc.Return_Purchases,<br>          ROUND(CAST(cc.Return_Purchases * 100.0/ (SELECT COUNT(*) FROM FrequentBuyers) AS FLOAT),2) AS [% of Returned Purchase]<br>FROM CountryCount AS CC<br>ORDER BY 2 DESC</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*xTedjSEhS2eytEh_mJfnYQ.png" /></figure><h4>🔍Result</h4><p>The United States leads in terms of repeat purchases, accounting for 36% of all return purchases — 16 percentage points higher than Australia, the next closest territory at 20.34%. Canada follows in third place with 13.19%. A particularly valuable insight is that although Canada ranked fourth in the number of one-time buyers, it ranks third in return purchases, indicating a solid base of loyal customers despite a relatively high drop-off rate. This contrast suggests opportunities to further nurture and retain Canadian customers, who show strong potential for loyalty once engaged.</p><h4>🎯Business implication?</h4><p>By analyzing the percentage and total number of return purchases per country, the business can assess customer satisfaction, loyalty, and product-market fit in each territory. This is vital for scaling or doubling down on winning retention tactics (e.g., loyalty programs) that drive high, Target one-time buyers with “second purchase” incentives (e.g., 15% off next order) and investigate why countries like Germany/France lag (&lt;10%) and test market-specific perks.</p><h4>7. Analyze the year-over-year (YoY) sales growth trends across different countries to identify which markets experienced the most significant recoveries or declines?’</h4><pre> -- Step One: Calculate the total sales and group by territory(Country) and Year<br>WITH Territory_Sales AS (<br>SELECT  C.CustomerCountry, <br>        YEAR(S.OrderDate) AS Year, <br>        ROUND(CAST(SUM(S.SalesAmount) AS FLOAT), 2) Total_Sales<br>FROM Sales AS S<br>INNER JOIN [Customers ] AS C<br>ON S.CustomerKey = C.CustomerKey<br>GROUP BY C.CustomerCountry, <br>  YEAR(S.OrderDate)<br><br>),<br><br>--- Step Two: Using the LAG Function, partititoned by each country and ordered by Year, fetch the previous Year Sales for each country<br>Prev_Year_Sales AS (<br>    SELECT  *,<br>     LAG(TS.Total_Sales) OVER(PARTITION BY TS.CustomerCountry ORDER BY TS.Year) AS Prev_Sales <br>    FROM Territory_Sales AS TS<br> ) ,<br><br>-- Step Three: Calculate the Year-over-Year Growth by subtracting Total Current Year Sales from Prev Year Sales and Dividing by Previous Years <br>YoY AS (<br>    SELECT *, <br>      Py.Total_Sales - Py.Prev_Sales AS Variance,<br>      CAST(((Py.Total_Sales - Py.Prev_Sales)/Py.Prev_Sales) * 100.0  AS DECIMAL(16,2)) AS &quot;YoY % ▼▲&quot;<br>    FROM Prev_Year_Sales AS Py <br>)<br><br>-- Step Four: Get the Countries, Year and YoY<br>SELECT YoY.CustomerCountry,<br>  YoY.Year,<br>  YoY.&quot;YoY % ▼▲&quot;<br>FROM YoY</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/307/1*sdySk-pZ8jvEvcccLUYkkA.png" /></figure><h4>Result</h4><p>- 2022 Performance: France, Germany, and UK showed positive growth (52.90%, 15.56%, 26.54% respectively). Australia, Canada, and US experienced declines (-18.26%, -46.78%, -41.51%)<br> <br>- 2023 Recovery/Expansion: All countries saw dramatic growth in 2023, with increases exceeding 100% YoY. The United States led with 278.79% growth. Canada and UK also showed particularly strong rebounds (250.30% and 205.83%)<br> <br>- Also worth noting is that Countries that declined in 2022 saw the most dramatic rebounds in 2023 and France maintained consistent positive growth across both years.</p><h4>Methodology</h4><ul><li>Aggregated Sales by Country and Year. Joined the Sales and Customers tables to link transactions to geographic territories</li><li>Retrieve Prior-Year Sales Using LAG() Window Functions. This created a column (Prev_Sales) containing the previous year’s sales for each country, enabling YoY comparisons.</li><li>Compute Year-over-Year Growth by taKing the variance of current year sales from the previous years and dividing by previous year sales and multiplied by 100 to get result as percentage — [(Current_Year_Sales − Previous_Year_Sales) / Previous_Year_Sales] × 100</li></ul><h3># Campaign &amp; Product Performance</h3><h4>8. What products achieve the highest positive MoM performance in 2021</h4><pre> WITH Product_Sales AS ( -- Join Sales table to the product to retrieve product name. Aggregate sales for each product and group by product and Months<br> SELECT <br>        P.ProductName, <br>        MONTH(S.OrderDate) AS Month_Number,<br>        DATENAME(MONTH, S.OrderDate) AS Month_Name,<br>        ROUND(CAST(SUM(S.SalesAmount) AS FLOAT),2) AS Sales<br> FROM Sales AS S <br> JOIN Product AS P<br> ON P.ProductKey = S.ProductKey<br> WHERE YEAR(S.OrderDate) = &#39;2021&#39;<br> GROUP BY P.ProductName, <br>          MONTH(S.OrderDate),<br>          DATENAME(MONTH, S.OrderDate)<br>),<br><br>Month_over_Month AS ( -- Get the previous month using the Lag Function. Get the Difference between current and previous month and divide by Previous Month to see the Month-over-Month in revenue performance <br> SELECT Ps.ProductName,<br>        Ps.Month_number,<br>        Ps.Month_Name,<br>        Ps.Sales,<br>        LAG(Ps.Sales) OVER ( PARTITION BY  Ps.ProductName ORDER BY MONTH(Ps.Month_Number) )AS Prev_Sales,<br>        ROUND((Ps.Sales - LAG(Ps.Sales) OVER( PARTITION BY  Ps.ProductName ORDER BY MONTH(Ps.Month_Number)))/ LAG(Ps.Sales) OVER ( PARTITION BY  Ps.ProductName ORDER BY MONTH(Ps.Month_Number)) * 100.0,2) AS &quot;MoM % ▲▼&quot;<br> FROM Product_Sales AS Ps<br> )<br><br> SELECT MoM.ProductName, ---- Using the WHERE clause filter out negative MoM, Count everything and group by ProductName<br>        COUNT(*) AS &quot;No of -ve MoM&quot;<br> FROM Month_over_Month  AS MoM<br> WHERE MoM.&quot;MoM % ▲▼&quot; &lt; 0<br> GROUP BY MoM.ProductName<br> ORDER BY 2 DESC</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/278/1*NTB3cZEJqKRi536nbXcAEQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*v4nSZMQnxiKR891xeQvRyQ.png" /></figure><h4>🚀 MoM Sales Performance: Key Insights</h4><p>📈 <strong>Top Performers (+ve MoM) 🔥 Road Bikes Dominate:</strong> Road-150 Red (52, 56, 62) &amp; Road-650 Red (48) lead with 6–7 months of growth in 2021. Mountain-100 Black (38, 42) also show strong consistency (6 +ve MoM).</p><p><strong>💡 Business implications:</strong> These products are the company’s cash cows and scaling marketing &amp; inventory for these models should sustain the positive Month-over-month streak for the subsequent fiscal year!</p><h4>🔎 Methodology: Solving MoM Sales Variance</h4><ul><li>Data Preparation: joined the Sales table to Products to retrieve product names. Aggregated sales by product and month.</li><li>Month-over-Month Calculation: Used the LAG() function to compare each month’s revenue to the previous month. Calculated the percentage change: (Current Month − Previous Month) / Previous Month.</li><li>Filtered for positive MoM changes to identify growth trends. Counted occurrences per product to find consistent top performers. Repeated for negative MoM to flag declining products.</li></ul><h4>9. What is the percentage of products in inventory with the longest sales streak (12 consecutive months in 2023?</h4><pre>WITH MonthlySales AS ( -- Get the distinct month a product was sold <br>    SELECT  P.ProductKey, <br>            P.ProductName,<br>            CAST(DATEFROMPARTS(YEAR(S.OrderDate), Month(S.Orderdate), 1) AS DATE) AS Sales_Month<br>    FROM Sales AS  S<br>    INNER JOIN Product  AS P ON S.ProductKey = p.ProductKey<br>    WHERE YEAR(ORDERDATE) = &#39;2023&#39;<br>    GROUP BY  P.ProductKey, <br>        P.ProductName,<br>        YEAR(S.OrderDate),<br>        Month(S.Orderdate)<br>), <br><br>WithLag AS ( -- Use lag to get the previous month<br>   SELECT Ms.ProductKey, <br>       Ms.ProductName, <br>       Ms.Sales_Month, <br>       LAG(MS.Sales_Month) OVER (PARTITION BY ProductKey ORDER BY Ms.Sales_Month) AS PrevMonth<br>    FROM MonthlySales AS Ms<br>),<br><br>WithStreakFlag AS ( -- Flags a new streak when the month isn&#39;t consecutive<br>   SELECT *, <br>       CASE <br>          WHEN DATEDIFF(MONTH, WL.PrevMonth, WL.Sales_month) = 1 THEN 0<br>          ELSE 1<br>       END AS Flag<br>   FROM WithLag  AS WL<br>), <br><br>StreakGroups AS ( -- Create streak groups using SUM(---) Over<br> SELECT *, <br>       SUM(Flag) OVER (PARTITION BY Productkey ORDER BY  SaleS_Month ROWS UNBOUNDED PRECEDING) AS StreakGroupID<br> FROM WithStreakFlag<br>),<br>StreakCounts AS ( --- counts how many months in each streak.<br> SELECT <br>      Productkey, <br>      ProductName, <br>      StreakGroupID, <br>      COUNT (*) AS StreakLength <br>   FROM StreakGroups<br> GROUP BY ProductKey, ProductName, StreakGroupID<br>),<br><br>MaxStreaks AS ( --- gets the longest streak per product.<br> SELECT ProductKey, <br>        ProductName,<br>        MAX(StreakLength) AS LongestStreakMonths<br> FROM StreakCounts <br> GROUP BY ProductKey, ProductName<br>)<br><br>SELECT ---- Get the Count of Products with 12 month consecutive sales streak and divide by the total number of products in 2023<br>      ROUND(CAST(COUNT(*)* 100.0/(SELECT COUNT(*) FROM Product) AS FLOAT),2) AS &quot;% of Product with 12month salels streak&quot;<br>FROM MaxStreaks<br>WHERE MaxStreaks.LongestStreakMonths = 12</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*1e8xeGSOr1P6QfhpCXh0Ig.png" /></figure><p><strong>📊 Result:</strong><br>Out of 600+ products, only <strong>98 (~15%)</strong> maintained consistent sales across every month in <strong>2021</strong>.</p><p><strong>💡 Business implication:</strong><br> These products represent what customers demand the most. Ensuring they’re always in stock can:</p><ol><li>Prevent lost sales and revenue.</li><li>Improve customer satisfaction.</li><li>Reduce the risk of churn</li></ol><h3><strong>Recommendation</strong></h3><ol><li><strong>Top Customers by Territory:</strong> The top 2 customers per region contribute disproportionately to revenue — focusing retention efforts here and implement VIP programs for top buyers can enhance loyalty.</li><li><strong>RFM: </strong>RFM segmentation reveals untapped potential in mid-tier customers. Upsell premium products and Launch re-engagement campaigns.</li><li><strong>YoY Customer Sales Growth: </strong>Customers with rising YoY sales indicate strong loyalty — capitalize on this trend by rewarding customers with increasing spend (e.g., discounts on next purchase).</li><li><strong>YoY Market Trends: </strong>Some regions (France) show stable growth, while others (US) rebound dramatically — adjust strategies accordingly. For High-Growth Markets (e.g., US, Canada): Increase ad spend. For declining markets (e.g., Australia 2022): Investigate external factors (competition, economy).</li><li><strong>Buyer Distribution by Country:</strong> Buyer frequency varies significantly by country — localized strategies are essential. For <strong>High One-Time Buyers,</strong> improve post-purchase engagement (e.g., follow-up emails) and Introduce subscription models for High Frequent Buyers:</li><li><strong>Monthly Active Users (MAU) Growth:</strong> MAU trends reveal seasonality — plan inventory and marketing around these patterns. Double down on successful campaigns on <strong>Peak Months (June) </strong>and run retention-focused promotions for <strong>dipped Months (July)</strong>.</li><li><strong>Top-Performing Products (MoM Growth):</strong> Product performance fluctuates — real-time tracking helps optimize stock levels. Best Sellers <strong>(High MoM) </strong>should be bundle with slower-moving products and discount or reposition declining products. The products with consecutive month sales streaks — which indicates customers&#39; high and frequent demand - should be sufficiently stock-up to ensure high availability during demands, maintain customers’ satisfaction so as to ensure steady revenue generation from those products.</li></ol><h3>Conclusion</h3><p>The range of this analysis covers critical aspects of AdventureWorks business and extract valuable insights that provides a data-driven roadmap for AdventureWorks to:<br>✔ Boost customer retention through targeted RFM strategies.<br>✔ Optimize regional investments based on YoY growth trends.<br>✔ Enhance campaign ROI by aligning with MAU and product trends.</p><p>By implementing these recommendations, stakeholders can increase revenue, reduce churn, and make informed strategic decisions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4d819b6548b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A deep dive into Supply Chain Logistic and Transportation Data using PowerBI]]></title>
            <link>https://medium.com/@gideonokwongudoh/a-deep-dive-into-supply-chain-logistic-and-transportation-data-using-powerbi-8908b191dfe4?source=rss-32b00b7a2762------2</link>
            <guid isPermaLink="false">https://medium.com/p/8908b191dfe4</guid>
            <dc:creator><![CDATA[Gideon Oquongudo]]></dc:creator>
            <pubDate>Tue, 01 Apr 2025 03:23:38 GMT</pubDate>
            <atom:updated>2025-04-01T03:23:38.166Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zWGEukHxUdeGg6P-LTVGIA.png" /><figcaption>Page One</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3wHW3r-seBoMLzXH98GUrA.png" /><figcaption>Page Two</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fg3nCtri1KRgLMN5z6Epeg.png" /><figcaption>Page Three</figcaption></figure><h3>Introduction</h3><p>Logistics and transportation play a crucial role within the supply chain system helping to connect suppliers to manufacturers/retailers and manufacturers/retailers to consumers, thus making the need for tracking and evaluation an important piece of the entire process. Performing tracking operations enables Logistics/fleet managers, operations teams or customers identify delivery bottlenecks and improvise actionable steps to ensure shipment optimization, operational efficiency and faster delivery times.</p><h3>Purpose</h3><p>The primary objective of this project is to perform an in-depth x-ray to:</p><ol><li><strong>Assess Delivery Efficiency:</strong> Analyze early/on-time vs. late arrivals.</li><li><strong>Evaluate Trip Durations:</strong> Understand the average time taken for deliveries.</li><li><strong>Measure Total Distance Covered:</strong> Determine logistical reach and efficiency.</li><li><strong>Identify Areas for Optimization:</strong> Provide actionable recommendations to reduce delays and enhance operations.</li></ol><h3>Dataset Source</h3><p>The dataset was provided by and sourced from <a href="https://fp20analytics.com/live-challenge/">fp20 analytics</a> — a platform that initiates monthly data challenges for Data Enthusiasts to improve and showcase their analytical skills. The dataset contains real-world transportation and logistics data of an Indian Logistic Firm. It captures various shipment details such as departure times, arrival times, vehicle types, and delivery status. The data encompasses multiple companies, providing a comprehensive view of logistics efficiency.</p><p>The Dataset has a total of 18 columns and 3,586 rows. The Image below shows the data dictionary that describes what each column stands for.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/1*zpCE--MJgfXHzQz5-2p5Zw.png" /><figcaption>Data Dictionary showing each column definition.</figcaption></figure><p>Before carrying out any analysis, I performed thorough data cleaning and transformation to enhance, enrich the data for analysis. Some of the data cleaning and transformations steps applied include splitting the origins and destinations columns into three distinct columns to show place, City and States. Dates and Times bundle together in one column splitted into distinct columns of Dates and Times, removal of duplicates, etc,.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tJbisnH_yy7sCz1MTyaiLw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WnT4xX3yOmkMT0UMHZz6NA.png" /><figcaption><strong>Before </strong>and <strong>after </strong>of Destinations and Date/Time columns</figcaption></figure><h3>Key Observations</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-GELD_0ThEUqgZmft5AFVg.png" /></figure><h4>1. Bookings and Deliveries Overview</h4><p>The analysis covers a total of <strong>3,343 bookings</strong>, with approximately <strong>49.33% of deliveries arriving early or on time (1,649 deliveries)</strong> and <strong>50.67% arriving late (1,694 deliveries)</strong>. The <strong>average trip duration</strong> was recorded as <strong>5 days (on-time delivery required 1day, late delivery required 8 days)</strong>, with average <strong>distance covered of approximately 870km (on-time delivery — 619km, late delivery — 1,139km.</strong></p><h4>2. Peaking Bookings and Arrival Time:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*Y6lfGO8OTKmnLzR20A-Pew.png" /></figure><p>Vehicle departure and arrivals shows a heavy concentration between the hours of 9:00am and 8:00pm. When analyzed alongside traffic conditions of the origin and destination’s location, this insight reveals opportunities for routes optimization.</p><p>By strategically adjusting departure times and planning routes to avoid peak traffic periods, delivery delays caused by road congestion or choke points can be significantly reduced. Optimizing route usage during off-peak hours will improve overall shipment efficiency and reduce transit times.</p><h4>3. Early Delivery Distributions</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*jz121I1VlltY60wcd59cvA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*yt0q89Y9r6Dbhf8HNCjQUQ.png" /></figure><p>Suppliers such as <strong>Ekta Transport Companies, Trans Cargo India, Krc Logistics,</strong> and <strong>Sunita Carries Private Limited</strong> are associated with high numbers of late deliveries. This trend can be attributed to delayed response times and the nature of their deliveries, which often involve covering longer distances.</p><p>Conversely, suppliers like <strong>Vj Logistics, Sr Transport, Sri Pachiamman Transport, Arvinth Transport,</strong> and <strong>Ekta Transportation</strong> consistently achieve early deliveries. Their success is largely due to handling shipments that cover shorter distances, resulting in quicker turnaround times.</p><h4>4. Origin ➡️Destination Distances and Delivery Distribution</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*V7zIibeecpwSYt5kkfD3zg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*0zdzko6g9bXZvIk4zKojgA.png" /><figcaption><strong>Left:</strong> Routes with average longest distance. <strong>Right</strong>: Routes with the most Bookings/Deliveries</figcaption></figure><p>Intra-state delivery routes (Origin ➡️ Destination) typically cover shorter distances, resulting in higher on-time delivery rates. Conversely, inter-state deliveries, influenced by various controlled and uncontrolled factors, often require more hours or days on the road, contributing to higher incidences of late arrivals.</p><p>Notably, customers located within shorter-distance routes contribute significantly to overall booking counts. For example:</p><ul><li><strong>Tamil Nadu ➡️ Tamil Nadu</strong></li><li><strong>West Bengal ➡️ West Bengal</strong></li><li><strong>Karnataka ➡️ Karnataka</strong></li><li><strong>Telangana ➡️ Telangana</strong></li><li><strong>Odisha ➡️ Odisha</strong></li></ul><p>Identifying customers whose outlets lie along these shorter routes, along with the suppliers and drivers frequently servicing these areas, presents a valuable optimization opportunity. Focusing on enhancing supply operations within these regions can significantly contribute to achieving an optimal supply chain performance score.</p><h4>5. Customers by Orders, Distance covered and delivery duration</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*M_BCkQsNemxi-NRHIT9tHg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*HRJDxwt6xOtlHEW3WnTroA.png" /><figcaption><strong>Left:</strong> Customers affected by late deliveries<strong>. Right: </strong>Customers whose orders arrived early/on-time.</figcaption></figure><p>The top customers by affected Late deliveries include:</p><ul><li><strong>Larsen &amp; Toubro Limited</strong> — 528 Orders required an average of 9 days and 144km per delivery.</li><li><strong>Ford India Private Limited</strong> — 376 orders required an average of <strong>6 </strong>days and <strong>1,871km </strong>per delivery.</li><li><strong>Ericsson India Private Limited</strong> — 176 orders required an average of 5 days and <strong>1,492km </strong>per delivery.</li><li><strong>Daimler India Commercial Vehicles Pvt Ltd</strong> — 108 orders required an average of 6 days and <strong>1,552km </strong>per delivery.</li><li><strong>Brakes India Private Limited: </strong>104 orders required an average of 6days and <strong>1,601km </strong>per delivery.</li></ul><p>The top customers with the most on-time deliveries include:</p><ul><li><strong>Daimler India Commercial Vehicles Pvt Ltd</strong> — 427 Orders required an average of 1 day and 446km per delivery.</li><li><strong>Larsen &amp; Toubro Limited</strong> — <strong>265 </strong>Orders required an average of <strong>3 </strong>days and <strong>265</strong>km per delivery.</li><li><strong>Ford India Private Limited</strong> — 252 Orders required an average of <strong>3 </strong>days and <strong>1,700km</strong> per delivery.</li><li><strong>Ashok Leyland Limited </strong>— 224 Orders required an average of 0 days and <strong>224km</strong> per delivery. <strong>Ashok Leyland Limited </strong>— 156 Orders required an average of 1 days and <strong>527km</strong> per delivery.</li></ul><p>Customers experiencing late deliveries are often impacted by the recurring trend where delivery points involving longer distances are more prone to delays. Conversely, customers whose goods arrive early or within shorter delivery durations benefit from their delivery points being situated along shorter distance routes. This pattern highlights the importance of proximity in ensuring timely deliveries and the need for strategic optimization of longer-distance routes.</p><h4>6. Drivers Performance: Average distance, duration and total deliveries</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*_6Vg3bSHgezvJZpc1trwKQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*NwD8rmOK-dOZrM1LMo2qWw.png" /><figcaption><strong>Left: </strong>Drivers with late Deliveries. <strong>Right</strong>: Drivers with on-time deliveries</figcaption></figure><p>Drivers such as <strong>Na, R Raji, Jothiramalingam, Naseem Khan, and Arokkiya Dass L</strong>, who handle a high volume of deliveries, are often associated with late shipments due to the longer distances they frequently travel. In contrast, drivers like <strong>Manu, Murugan, Sudhakakar, and Ravi,</strong> who cover shorter distances and complete deliveries within a day, consistently achieve timely deliveries. This further reinforces the recurring insight that longer delivery routes contribute significantly to delays, emphasizing the need for route-specific optimization strategies to enhance overall delivery efficiency.</p><h4>7. Materials Shipped Analysis</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*0_pUN-7faqsTlr86zUQp2w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*zWdHl7kDR8S8KjpO1icwAw.png" /><figcaption><strong>Left: </strong>Materials shipped late<strong>. Right: </strong>Materials shipped on time</figcaption></figure><p>Frequent shipments such as <strong>Auto Parts, Empty Trays, and GRS Starters </strong>are often delivered on time; however, they also experience a significant number of late deliveries, with late shipments outnumbering those that arrive early or on time. A deeper analysis reveals that longer distances covered are a contributing factor to these late shipments.</p><h3>Recommendations</h3><p>A recurring factor impacting shipment efficiency is distance. Longer distances often result in delays, with most delays being notably prevalent in inter-state deliveries.</p><p>To mitigate the negative impact of late deliveries, the following actions are recommended:</p><p><strong>1.Evaluate and Investigate Performance Issues:</strong></p><ul><li>Assess suppliers and drivers known for frequent late deliveries to identify underlying causes.</li><li>Determine whether delays result from unprofessional practices such as:</li><li>Taking longer, non-designated routes instead of shorter, optimized ones.</li><li>Delayed response to delivery responsibilities.</li><li>Poor vehicle management or maintenance.</li><li>Implement accountability measures and establish clear expectations for timely deliveries.</li></ul><p><strong>2. Incentivize High Performance &amp; Reassign Responsibilities:</strong></p><ul><li>Recognize and reward suppliers and drivers who consistently achieve on-time deliveries.</li><li>Reassign critical supply and delivery routes to reliable suppliers and drivers with proven track records.</li></ul><p><strong>3. Optimize Delivery Strategies:</strong></p><ul><li>Prioritize intra-state deliveries to enhance efficiency.</li><li>Implement optimization techniques for longer-distance deliveries, such as route planning, efficient load management, and scheduled rest breaks for drivers.</li></ul><p><strong>4. Strengthen Partnerships with Top Customers: </strong>Provide tailored services and incentives to major clients such as <strong>Larsen &amp; Toubro Limited</strong>, <strong>Ford India Private Limited</strong>, and <strong>Daimler India Commercial Vehicles Pvt Ltd</strong> to maintain and enhance strong business relationships.</p><p><strong>5. Focus on Frequently Shipped Materials: </strong>Prioritize optimization strategies for high-frequency shipments like <strong>Auto Parts</strong> and <strong>Empty Trays</strong> to minimize delays and enhance operational efficiency.</p><h3>Conclusion</h3><p>This analysis of the transportation and logistics data reveals some key bottleneck affecting shipments and operational efficiency — these shipments impediments highlighted across routes, drivers, suppliers, materials, etc. Actionable recommendations have also been suggested. Implementing the recommendations provided can help streamline processes, reduce delays, and strengthen relationships with key stakeholders.</p><p>For live interaction with the Dashboard, please kindly click<a href="https://tinyurl.com/Logistic-transportation-report"> <strong>here</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8908b191dfe4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Excel Project: Unlocking Insights from Superstore Sales Data — Dashboard Analysis]]></title>
            <link>https://medium.com/@gideonokwongudoh/excel-project-unlocking-insights-from-superstore-sales-data-dashboard-analysis-a255b532b41e?source=rss-32b00b7a2762------2</link>
            <guid isPermaLink="false">https://medium.com/p/a255b532b41e</guid>
            <dc:creator><![CDATA[Gideon Oquongudo]]></dc:creator>
            <pubDate>Sun, 19 Jan 2025 18:52:40 GMT</pubDate>
            <atom:updated>2025-01-19T18:59:32.204Z</atom:updated>
            <content:encoded><![CDATA[<h3>Excel Project: Unlocking Insights from Superstore Sales Data — Dashboard Analysis</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zJhSDnPikab2lJFj8R2o8w.png" /></figure><h4>Introduction</h4><p>The rapid growth of e-commerce and retail businesses demands efficient decision-making processes powered by data. This project leverages the Superstore dataset to generate meaningful insights into sales, revenue, and customer behavior. Using Excel as a tool for data analysis, I have created an interactive dashboard, conducted descriptive analysis, and visualized customer purchase patterns. This article captures a comprehensive breakdown of findings from the superstore&#39;s sales dataset (I have rechristened it as Millaf Super Mart for the purpose of this projects).</p><h4>Objective</h4><p>The primary goal of this project is to analyze Superstore sales data to uncover:</p><ol><li>Trends in sales, revenue, and order quantities.</li><li>Relationships between metrics such as revenue and orders.</li><li>Key drivers of revenue, including top-performing states, subcategories, and customer segments.</li><li>Distribution of customers’ purchase values.</li></ol><h4>Problem Statement</h4><p>Retailers often struggle to identify actionable insights from large volumes of transactional data. The challenge lies in:</p><ol><li>Identifying which products and regions contribute the most to revenue.</li><li>Understanding customer purchase behavior.</li><li>Recognizing patterns in orders and revenue over time to inform strategies.</li></ol><h4>Descriptive Analysis</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*18bo2dJRG5YN8d9xeZJomA.png" /></figure><p>To build a foundation for this analysis, I performed descriptive statistics on three key metrics: Sales, Quantity, and Profit. The summary statistics are as follows:</p><ol><li><strong>Sales</strong></li></ol><p><strong>Mean</strong>: $229.85. This figure uggests that the average transaction generates moderate revenue.</p><p><strong>Standard Deviation</strong>: $623.25: This indicates a widespread in sales values, meaning some transactions are significantly larger or smaller than average.</p><p><strong>Skewness</strong>: 12.97 — A skewness of 12.97 highlights a strong right skew, meaning most sales transactions are low-value, with a few very high-value transactions driving up the total.</p><p><strong>2. Quantity</strong>:</p><p><strong>Mean</strong>: 3.79 units per transaction, showing that most orders are relatively small in terms of quantity.</p><p><strong>Standard Deviation</strong>: 2.22 shows some variation in the number of units sold per transaction, but not as extreme as sales.</p><p><strong>Skewness</strong>: 1.28 indicates a mild right skew, meaning most transactions involve fewer units, but a few larger orders increase the average.</p><p><strong>3. Profit</strong>:</p><p><strong>Mean</strong>: $28.66 indicates that the business generates a small average profit per transaction.</p><p><strong>Standard Deviation</strong>: $234.26 highlights considerable variability in profit across transactions, with some highly profitable and others incurring losses.</p><p><strong>Skewness</strong>: 7.56 indicates a highly right-skewed profit distribution, with most transactions yielding low profit and a few contributing substantial amounts.</p><p><strong>Range</strong>: The minimum profit is -$6,599.98, showing some transactions resulted in significant losses, while the maximum profit is $8,399.98.</p><p><strong>Notable Observations:</strong></p><ol><li>High variability in sales and profit indicates uneven performance across products and regions.</li><li>Positive average profit suggests profitability, but extreme negative values highlight losses in specific areas.</li></ol><h4>Key Performance Indicators (KPIs) and Metrics</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hg6jjyDbZz_3aM7vaKiWuA.png" /></figure><p>The summary captures the following important KPIs:</p><ol><li><strong>Customer Count</strong>: 793 unique customers contributed to the dataset.</li><li><strong>Orders</strong>: 5,009 total orders were recorded.</li><li><strong>Quantities Sold</strong>: A total of 37,873 units were sold.</li><li><strong>Revenue</strong>: The store generated $2,297,201 in revenue.</li><li><strong>Average Order Value (AOV)</strong>: $458.60 per order.</li></ol><h4>Insights from Visualizations</h4><p><strong>1. Customer Purchase Value Distribution</strong>:</p><p>Majority of customers make purchases below $241.</p><p>Only a small fraction of customers spends over $2,100.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*N3PDiXpG4dVRqsbQqv_c-g.png" /></figure><p><strong>2. Monthly Trends</strong>: Revenue peaks in March, September, October, November and November, suggesting higher sales during the holiday and festive season. This is validated by the correlation between order counts and revenue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*2Fam_TeMSwr1Edy0cDO29w.png" /></figure><p><strong>3. Daily Trends</strong>: Sales and order rates are highest from Monday to Friday, indicating weekdays as the most profitable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*SYVe7CQicPa6RR1wuOQDpQ.png" /></figure><p><strong>4. Top Revenue-Generating Categories</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*qWSt0CV7o-rjkblhuwcKNg.png" /></figure><p>This top selling Categories includes Phones ($330.0K), Chairs ($328.4K), Storage ($223.8K), Tables ($207.0K) and Binders (($203.4K)</p><p><strong>5. Top Revenue-Generating States</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*H-uLZiOiiyDi9hbm7hWGLA.png" /></figure><p>The top revenue states generating</p><p>California ($457.7K)</p><p>New York ($310.9K)</p><p>Texas ($170.2K)</p><h4>Recommendations</h4><ol><li><strong>Focus on High-Performing Products</strong>: Prioritize marketing efforts for Phones, Chairs, and Storage categories.</li><li><strong>Target High-Value States</strong>: Invest in California and New York markets, as they generate the most revenue.</li><li><strong>Optimize Weekday Sales</strong>: Strengthen promotional strategies from Tuesday to Friday to capitalize on peak order days.</li><li><strong>Address Loss-Making Areas</strong>: Perform a detailed analysis of products and regions with negative profit margins to minimize losses.</li></ol><h4>Conclusion</h4><p>This analysis offers valuable insights into Superstore’s sales performance, highlighting profitable product categories, high-performing regions, and the purchasing behavior of high-value customers. The dashboard empowers stakeholders to monitor key metrics effectively and make data-driven business decisions.</p><p>By leveraging the identified trends and patterns, and incorporating the recommended strategies, Superstore can optimize operations, boost profitability, and improve customer satisfaction.</p><p>Click 👉 <a href="https://onedrive.live.com/personal/0ed74f19cb95d2ce/_layouts/15/Doc.aspx?resid=ED74F19CB95D2CE!sf688f73ce1d349feb16bae5e24fd9c14&amp;cid=ed74f19cb95d2ce&amp;migratedtospo=true&amp;app=Excel">Here </a>to have a real-time interaction with the Dashboard.</p><p>Kindly Follow me on <a href="https://www.linkedin.com/in/gideon-oquongudo">LinkedIn </a>and <a href="https://x.com/Pucheo_dataGuy">Twitter </a>for more content.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a255b532b41e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A deep dive into a Global Retailer’s Supply Chain Operations using SQL and Excel.]]></title>
            <link>https://medium.com/@gideonokwongudoh/a-deep-dive-into-a-global-retailers-supply-chain-operations-using-sql-and-excel-0fe99052af60?source=rss-32b00b7a2762------2</link>
            <guid isPermaLink="false">https://medium.com/p/0fe99052af60</guid>
            <dc:creator><![CDATA[Gideon Oquongudo]]></dc:creator>
            <pubDate>Tue, 24 Dec 2024 14:16:10 GMT</pubDate>
            <atom:updated>2024-12-24T14:16:10.152Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zcEKimXtwC6bafQa" /><figcaption>Photo by <a href="https://unsplash.com/@karsten116?utm_source=medium&amp;utm_medium=referral">Karsten Winegeart</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3><strong>Introduction</strong></h3><p>In today’s globalized economy, retail companies act as bridges connecting manufacturers, suppliers, and consumers across borders. By offering a diverse range of products global retailers fulfill the dynamic demand and supply needs of customers worldwide.</p><p>The vast amounts of data generated from retail transactions — spanning product performance, customer purchases, and repeat orders — are invaluable resources for stakeholders. Analyzing this data provides actionable insights into consumer behavior, product preferences, and purchasing trends. Such analyses empower decision-makers to optimize sales strategies, improve customer retention, and enhance overall business performance.</p><p>This report delves into key metrics, including <strong>top spending customers</strong>, <strong>most repeated purchases</strong>, and <strong>revenue-driving product categories</strong>, offering a comprehensive understanding of factors influencing customer loyalty and product success in the retail market.</p><h3><strong>Purpose</strong></h3><p>This report provides an analysis of a global retailer dataset using SQL to answer key business questions, uncover trends, and identify patterns that are crucial for supporting stakeholders in making informed decisions.</p><h3><strong>Dataset Information</strong></h3><p>The Dataset was sourced from <a href="https://mavenanalytics.io/">Maven Analytics</a> Platform. The Dataset was in a de-normalized format — all the business processes or attributes where stuffed in one sheet. To ensure accurate analysis, I normalized the dataset to produce a snowflake interconnected facts and dimensions tables. I also ensured thorough elimination of duplicates records from the dimensioned tables that could otherwise skew results. Having observed the preprocessing steps, the Data was in a much better shape for analyses and answering all the business questions</p><p><strong>Dimensioned Tables</strong></p><p><strong>Customers: </strong>This table contains all information related to the customers such as CustomerID, Name, Gender, Date of Birth, City, State, Country, etc. It connects to the Orders table using the OrderNumber column</p><p><strong>Orders</strong>: This table contains information at the order level such as OrderNumber, Order Date, Delivery Date, CustomerID, StoreID. It filters the Transaction tables using the OrderNumber Column.</p><p><strong>Transactions Facts: </strong>This table contains atomic transaction records at the lowest level. The attributes include TransactionID, OrderNumber, LineItem, Quantity and ProductID.</p><p><strong>Stores:</strong> Contains information about all the stores and their locations where customers placed orders and have them shipped. It relates to the Order Table using the StoreID</p><p><strong>Product</strong>: This table has all the information about products on sales. The Product attributes include: ProductID, productName, ProductBrand, ProductColor, ProductCost, ProductPrice and ProductSubCategoryId. It filters the transaction table using the ProductID column.</p><p><strong>Subcategories</strong>: This table has all the information about products subcategories on sales. The Subcategories attributes include: ProductCategoryID, ProductSubCategory name and ProductCategoryID. It filters the Categories table using the ProductCategoryID</p><p>Categories: This table has all the information about categories on sales. The Categories attributes include: ProductCategoryID, ProductCategory name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*67EHKQYu_Gu_Rl1kVPpgZg.png" /><figcaption><strong>Global retailer Dataset ER Diagram</strong></figcaption></figure><h3><strong>1.</strong> <strong>Seasonality and Trend Analysis</strong></h3><p><strong>What were the seasonal sales trends over the past three business years, and how did they vary across seasons?</strong></p><pre>--Using Subquery, Get orders for Year 2018,2019 and 2020<br>SELECT  [2018].Number,<br>        LEFT([2018].Month,3) AS Month,<br>        [2018].Orders AS Orders_2018,<br>        [2019].Orders AS Orders_2019,<br>        [2020].Orders AS Orders_2020<br>FROM (<br> ( -- Get Orderss for 2018<br>   SELECT  MONTH(ORDERDATE) AS Number,<br>           DATENAME(MONTH, ORDERDATE) AS MONTH, <br>           COUNT(*)  AS Orders<br>   FROM Orders <br>   WHERE DATENAME(YEAR, ORDERDATE) = &#39;2018&#39;<br>   GROUP BY MONTH(ORDERDATE),<br>            DATENAME(MONTH, ORDERDATE)<br>)  AS [2018]<br><br>JOIN ( --Get Orders for 2019. Join Orders results of 2018 with 2019<br>     SELECT  MONTH(ORDERDATE) AS Number,<br>             DATENAME(MONTH, ORDERDATE) AS MONTH, <br>             COUNT(*)  AS Orders<br>     FROM Orders <br>     WHERE DATENAME(YEAR, ORDERDATE) = &#39;2019&#39;<br>     GROUP BY MONTH(ORDERDATE),<br>              DATENAME(MONTH, ORDERDATE)<br>) AS [2019]<br>ON [2018].Number = [2019].Number<br><br>JOIN (--Get Orders for 2020. Join Orders results of 2019 with 2020<br>     SELECT  MONTH(ORDERDATE) AS Number,<br>             DATENAME(MONTH, ORDERDATE) AS MONTH, <br>             COUNT(*)  AS Orders<br>     FROM Orders <br>     WHERE DATENAME(YEAR, ORDERDATE) = &#39;2020&#39;<br>     GROUP BY MONTH(ORDERDATE),<br>              DATENAME(MONTH, ORDERDATE)<br>) AS [2020]<br>ON [2019].Number = [2020].Number<br>)<br><br>ORDER BY 1 ASC</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*0EnF9YZcp47Kko2oU6abQw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*yBq9dtKQJ1tQDNYU4dj1ZQ.png" /><figcaption>Order Trend from 2018,2019 and 2020</figcaption></figure><ul><li><strong>2019</strong> recorded the highest order numbers across most months, particularly in the second half of the year, making it the most successful year. This suggests effective business strategies or market conditions favoring sales during this period. Sales in <strong>2020 </strong>lag considerably behind 2018 and 2019 across most months, showing a lack of recovery in the later part of the year. This might be attributed to <strong>global economic disruptions</strong>, such as the COVID-19 pandemic, affecting consumer spending and supply chains.</li><li>On a monthly basis, Sales numbers start strong each year in <strong>January</strong> and <strong>February</strong>, indicating high customer demand during the start of the year. But all three years exhibit a steep decline in sales during <strong>March, April, and May</strong>. This recurring pattern might be due to external factors, such as seasonality, decreased demand, or other systemic challenges. Sales activity rebounds significantly between <strong>October and December</strong>, especially in <strong>2019</strong>, indicating a potential correlation with holiday shopping or year-end promotional efforts.</li></ul><p><strong>1b. How did order volumes fluctuate across the four seasons of the year?</strong></p><pre>SELECT<br>     DATEPART(YEAR, ORDERDATE) AS Years,<br>     SUM(CASE <br>           WHEN DATEPART(MONTH, ORDERDATE) IN (6,7,8) THEN 1<br>        END<br>      ) AS &#39;Summer&#39;,<br>     SUM(CASE <br>           WHEN DATEPART(MONTH, ORDERDATE) IN (12,1,2) THEN 1<br>        END<br>      ) AS &#39;Winter&#39;,<br>     SUM(CASE <br>           WHEN DATEPART(MONTH, ORDERDATE) IN (9,10,12) THEN 1<br>        END<br>      ) AS &#39;Autumn&#39;,<br>     SUM(CASE <br>           WHEN DATEPART(MONTH, ORDERDATE) IN (3,4,5) THEN 1<br>         END<br>      ) AS &#39;Spring&#39;<br>FROM ORDERS<br>WHERE DATEPART(YEAR, ORDERDATE) BETWEEN &#39;2018&#39; AND &#39;2020&#39;<br>GROUP BY DATEPART(YEAR, ORDERDATE)<br>ORDER BY 1 ASC</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/1*7ewLDquQhkqeXHKOAxVLzg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*w0pE-L5vxOQmsOHHPE2MIg.png" /><figcaption>Orders Trend in Summer, WInter, Autumn and Springs</figcaption></figure><p>In <strong>2018</strong>, Winter and Autumn emerged as the dominant seasons for orders, collectively driving the highest order volumes for the year. By <strong>2019</strong>, which stands out as the most successful business year among the three, Winter and Autumn persist and maintained their position as the leading seasons, with Summer following closely in third place. In <strong>2020</strong>, Winter once again outperformed all other seasons, solidifying its status as the peak period for sales. Across the three years, Winter consistently proved to be the most high-demand season, while Autumn also showed strong performance in 2018 and 2019, reinforcing its significance as a critical sales period.</p><p><strong>1c. Which days of the week consistently account for the highest demand and sales?</strong></p><pre>-- Sales By Day<br>SELECT  DATEPART(WEEKDAY,ORDERDATE) AS Number,<br>        DATENAME(WEEKDAY, ORDERDATE) AS [Days of the Week],<br>        SUM(CASE<br>              WHEN DATENAME(YEAR, OrderDate) = &#39;2018&#39; THEN 1<br>            END<br>         ) AS &#39;2018&#39;,<br>        SUM(CASE<br>              WHEN DATENAME(YEAR, OrderDate) = &#39;2019&#39; THEN 1<br>            END<br>         ) AS &#39;2019&#39;,<br>        SUM(CASE<br>              WHEN DATENAME(YEAR, OrderDate) = &#39;2020&#39; THEN 1<br>           END<br>         ) AS &#39;2020&#39;<br>FROM Orders<br>GROUP BY DATEPART(WEEKDAY,ORDERDATE),<br>   DATENAME(WEEKDAY, ORDERDATE)<br>ORDER BY 1 ASC</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/342/1*2fllfT310B7HZ1w4RKe2WA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*VGQ8jDRK_k4oqiqKSC7jyg.png" /><figcaption>Order patterns by the Days of the week</figcaption></figure><p>The chart reveals a consistent rise in order volumes throughout the week across 2018, 2019, and 2020. Sundays consistently record the lowest order volumes, while order numbers steadily increase, peaking on Saturdays. However, the highest demand days across the three years are Wednesdays, Thursdays, and Fridays, demonstrating consistent midweek and weekend activity.</p><h3><strong>2. Products Performance</strong></h3><p><strong>2a. Which product subcategories contribute the most to overall revenue?</strong></p><pre>-- Revenue By Subcategores Only <br>SELECT TOP 10 <br>      SubCategory.ProductSubcategory As Subcategories,<br>      ROUND(CAST(SUM([Transactions Fact].quantity * Product.ProductPrice) AS FLOAT),2) AS [Gross Revenue],<br>      ROUND(CAST(SUM([Transactions Fact].quantity * Product.ProductPrice) * 100.0 /<br>        ( SELECT SUM([Transactions Fact].quantity * Product.ProductPrice) AS [Gross Revenue] <br>          FROM [Transactions Fact]<br>          JOIN Product ON [Transactions Fact].ProductID = Product.ProductID<br>        )AS FLOAT),2) AS [Gross Revenue in %]<br>FROM Product <br>JOIN [Transactions Fact] ON [Transactions Fact].ProductID = Product.ProductID<br>JOIN Subcategory ON Product.ProductSubCategoryID = Subcategory.ProductSubcategoryID<br>GROUP BY SubCategory.ProductSubCategory<br>ORDER BY 2 DESC</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/387/1*7wy5iVRIdxlwMiND-LMpQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*QU3kh51LxE9VJw5NUTmvpA.png" /><figcaption>Distribution of Revenue Generation by Subcategories</figcaption></figure><p>The leading revenue-generating subcategory is <strong>Desktop Computers</strong> within the Computer category, contributing 17.77% of total revenue. This is closely followed by <strong>Televisions</strong>, <strong>Projectors/Screens</strong>, <strong>Water Heaters</strong>, and <strong>Camcorders</strong>, which collectively generate over $4.3 million, $3.7 million, $3.5 million, and $3.3 million, respectively. Completing the top 10 are <strong>Laptops</strong> ($3.16 million), <strong>Movie DVDs</strong> ($3.13 million), <strong>Touch Screen Phones</strong> ($3.08 million), <strong>Smartphones/PDAs</strong> ($2.80 million), and <strong>Refrigerators</strong> ($2.15 million).</p><p><strong>2b. Which product categories are most effective at driving repeat purchases?</strong></p><pre>WITH RepeatCustomers AS ( -- Identify Customers with repeated Sales<br>   SELECT <br>        O.CustomerID,<br>        COUNT(DISTINCT O.OrderNumber) AS PurchaseCount<br>   FROM Orders AS O<br>   GROUP BY O.CustomerID <br>   HAVING COUNT(DISTINCT O.OrderNumber)&gt; 1<br>),<br><br>-- Get Orders Placed by repeat customers<br>RepeatOrders AS (<br>  SELECT Rc.CustomerID, <br>          O.OrderNumber<br>  FROM Orders O<br>  JOIN RepeatCustomers rc ON rc.CustomerID = O.CustomerID<br> ),<br><br>ProductRepeatCategories AS (<br>-- Map  Repeated Orders to Product Categories<br>SELECT<br>    ro.OrderNumber, <br>    C.ProductCategory AS &quot;Product Category&quot;<br>FROM  RepeatOrders AS ro<br>JOIN [Transactions Fact] AS TF ON TF.OrderNumber = ro.OrderNumber<br>JOIN Product AS P ON TF.ProductID = P.ProductID<br>JOIN Subcategory AS SC  ON SC.ProductSubCategoryID = P.ProductSubCategoryID<br>JOIN Category AS C ON C.ProductCategoryID  =  SC.ProductCategoryID<br>)<br><br>-- Count the frequency of each product category in repeat purchases<br>SELECT pr.[Product Category],<br>      COUNT(*) AS [Total Orders],<br>      ROUND(CAST(COUNT(*) *100.0/(SELECT COUNT(*) <br>          FROM ProductRepeatCategories<br>          ) AS FLOAT),2) AS [Total Orders in %]<br>FROM ProductRepeatCategories AS pr<br>GROUP BY pr.[Product Category]<br>ORDER BY 2 DESC</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*qThnBPCBDUMgu5fP_cuOrg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*Vri2y2nWKYAdM9gIoZB5kw.png" /><figcaption><strong>Product Categories by repeated order Numbers</strong></figcaption></figure><p>The computers category contributes most to repeated orders with a total of 11,460, accounting for 22.18% of all repeated purchases across categories. Following this, Cell Phones secure second place with 8,400 repeated orders, contributing 16.26% to the total. Music, Movies, and Audio Books rank third, with 7,523 repeated orders, making up 14.56%. The Audio category follows closely with 6,140 repeated orders (11.88%), while Games and Toys round out the top five, contributing 5,809 repeated orders (11.24%). These insights highlight the most customer-loyal categories, providing opportunities to further enhance customer retention strategies.</p><p><strong>2c. Which products are the most profitable based on the difference between product cost and product price?</strong></p><pre>SELECT TOP 10 Product,<br>       SUM(Revenue - [Total Production Cost]) AS Profit,<br>       ROUND((SUM(Revenue - [Total Production Cost]) * 100.0) /<br>       (SELECT SUM(Revenue - [Total Production Cost])<br>        FROM (<br>            SELECT  ROUND(SUM([Transactions Fact].Quantity * Product.ProductCost), 2) AS [Total Production Cost],<br>            ROUND(SUM([Transactions Fact].Quantity * Product.ProductPrice), 2) AS Revenue<br>            FROM [Transactions Fact]<br>            JOIN Product ON [Transactions Fact].ProductID = Product.ProductID<br>               GROUP BY Product.ProductName<br>            ) AS Subquery),2) AS [Profit in %]<br><br>FROM (<br>    SELECT Product.ProductName AS Product,<br>           ROUND(SUM([Transactions Fact].Quantity * Product.ProductCost), 2) AS [Total Production Cost],<br>           ROUND(SUM([Transactions Fact].Quantity * Product.ProductPrice), 2) AS Revenue<br>    FROM [Transactions Fact]<br>    JOIN Product ON [Transactions Fact].ProductID = Product.ProductID<br>    GROUP BY Product.ProductName<br>) AS Product_Cost_Plus_Revenue<br>GROUP BY Product<br>ORDER BY Profit DESC;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/1*ituREYm8TkRJQee7AOBRwg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*zlXyFl2LzaPh_gDkt61lgA.png" /><figcaption>Most Profitable Product based on Difference between Total Product Price (Revenue) and Product Cost (CoG)</figcaption></figure><p>The top-performing products by profit are distinguished by narrow profit margins, with <strong>WWI Desktop PC2.33 X2330 Black</strong> leading the category, generating <strong>$337,985.99</strong> in profit, accounting for approximately <strong>1.03% of total profits</strong>. Following closely are <strong>Adventure Works Desktop PC2.33 XD233 Silver</strong> with a profit contribution of <strong>0.95%</strong> and <strong>Adventure Works Desktop PC2.33 XD233 Brown</strong> at <strong>0.95%</strong>. Other notable entries include <strong>Adventure Works Desktop PC2.33 XD233 Black</strong> (<strong>0.92%</strong>), <strong>Adventure Works Desktop PC2.33 XD233 White</strong> (<strong>0.89%</strong>), and <strong>WWI Desktop PC2.33 X2330 White</strong> (<strong>0.87%</strong>), completing the top six.</p><p><strong>3. How did different store locations perform in terms of sales volume and revenue?</strong></p><pre>SELECT   Stores.StoreCountry,<br>        -- For Sales Volume<br>        SUM([Transactions Fact].Quantity) AS [Total Sales Volume],<br>        ROUND(CAST(SUM([Transactions Fact].Quantity)*100.0 /<br>          (SELECT SUM([Transactions Fact].Quantity) AS [Total Quantity Sold]<br>          FROM [Transactions Fact] ) AS FLOAT),2) AS [Sales Volume in %],<br>        <br>        -- For Revenue<br>        ROUND(CAST (SUM([Transactions Fact].Quantity * Product.ProductPrice) AS FLOAT),2) AS [Gross Revenue],<br>        ROUND(CAST(SUM([Transactions Fact].Quantity * Product.ProductPrice)*100.0 /<br>          (SELECT SUM([Transactions Fact].Quantity * Product.ProductPrice) <br>           FROM [Transactions Fact] <br>           JOIN Product ON [Transactions Fact].ProductID = Product.ProductID<br>        ) AS FLOAT),2) AS [Gross Revenue in %]<br>FROM [Transactions Fact]<br>JOIN Orders ON [Transactions Fact].OrderNumber = Orders.OrderNumber<br>JOIN Product ON [Transactions Fact].ProductID = Product.ProductID<br>JOIN Stores ON Orders.StoreID = Stores.StoreID<br>GROUP BY Stores.StoreCountry<br>ORDER BY 2 DESC</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*U0kSGh5asg9cD2HlmXgsRA.png" /><figcaption>Stores by Total Sales Volume and Total Revenue</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*nzql6sGUPh91CrX7vm58Zw.png" /></figure><p>The chart highlights the correlation between sales volume and revenue generated across various store locations. The <strong>United States</strong> leads both metrics with a total sales volume of <strong>83,638</strong> and gross revenue of <strong>$23.764M</strong>, contributing a dominant <strong>42.62%</strong> of total revenue. The <strong>Online</strong> channel follows, with a sales volume of <strong>41,311</strong> (<strong>20.89%</strong>) and revenue of <strong>$11.404M</strong> (<strong>20.45%</strong>). The <strong>United Kingdom</strong>, <strong>Germany</strong>, and <strong>Canada</strong> round out the top five, with sales volumes of <strong>20,625</strong> (<strong>10.43%</strong>), <strong>14,880</strong> (<strong>7.51%</strong>), and <strong>12,991</strong> (<strong>6.57%</strong>), and revenues of <strong>$5.750M</strong> (<strong>10.31%</strong>), <strong>$4.246M</strong> (<strong>7.62%</strong>), and <strong>$3.612M</strong> (<strong>6.48%</strong>), respectively.</p><h3><strong>4. Customer Insights</strong></h3><p><strong>4a. Who are the top customers by total spending, and what is their demographic profile (age, gender, location)?</strong></p><pre>-- Calculate the current age of each customer<br>WITH CustomerDemographics AS (<br>    SELECT <br>        CustomerID,<br>        Name,<br>        Gender,<br>        Country,<br>        State,<br>        City,<br>        DATEDIFF(YEAR, Date_of_Birth, GETDATE()) AS Age<br>    FROM <br>        Customers<br>),<br><br>-- Calculate total spending for each customer<br>CustomerSpending AS (<br>    SELECT <br>        o.CustomerID,<br>        SUM(tf.Quantity * p.ProductPrice) AS TotalSpending<br>    FROM <br>        [Transactions Fact] tf<br>    JOIN <br>        Product p ON tf.ProductID = p.ProductID<br>    JOIN <br>        Orders o ON tf.OrderNumber = o.OrderNumber<br>    GROUP BY <br>        o.CustomerID<br>)<br><br>-- Join the customer demographics with spending data to get the final result<br>SELECT <br>    TOP 10 cd.Name AS CustomerName,<br>    cd.Age,<br>    cd.Gender,<br>    cd.Country,<br>    cd.State,<br>    cd.City,<br>    ROUND(cs.TotalSpending,2) AS Total_Spend<br>FROM <br>    CustomerDemographics cd<br>JOIN <br>    CustomerSpending cs ON cd.CustomerID = cs.CustomerID<br>ORDER BY <br>    cs.TotalSpending DESC;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*HarRfG1zWK-UkKg3smAA4w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*L4bJXXHkgQ-puvCP6eRr-g.png" /><figcaption><strong>Customers By Total Spend</strong></figcaption></figure><p>Matthew Flemming, aged 88, stands out as the top spender with a total expenditure of $61,871.70, far exceeding the other high-spending customers. Karen Jones follows with $43,517.80, and Zrina Topic is third with $42,788.04. Other significant contributors include Stefanie Hartmann ($41,521.53), Stephan Rothstein ($40,556.54), and Gaspare Trevisan ($40,225.54), making up the top six customers in terms of total spending. These individuals represent a significant portion of revenue and merit focused engagement</p><p><strong>4b. Who are the top customers by Most Orders or repeated patronage, and what is their demographic profile (age, gender, location)?</strong></p><pre>--- Customers with repeated patronage<br><br>SELECT TOP 20 <br>    O.CustomerID,<br>    C.Name,<br>    C.Gender,<br>    DATEDIFF(YEAR, C.Date_of_Birth, GETDATE()) AS Age,<br>    C.Country,<br>    C.State,<br>    C.City,<br>    COUNT(DISTINCT O.OrdeRNUMBER) AS PurchaseCount<br>FROM <br>     Orders AS O<br>JOIN <br>    Customers AS C ON O.CustomerID = C.CustomerID<br>GROUP BY  O.CustomerID,<br>        C.Name,<br>        C.Gender,<br>        C.Country,<br>        C.State,<br>        C.City,<br>        DATEDIFF(YEAR, C.Date_of_Birth, GETDATE())<br>HAVING <br>      COUNT(DISTINCT OrderNUMBER) &gt; 1<br>ORDER BY 8 DESC</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*VAlvEVKhd-TNbvwfm-GASg.png" /><figcaption>Customers with repeated patronage</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lHzz03VRpeUkuFqeYCDLVQ.png" /><figcaption>Top Customers with repeated patronage</figcaption></figure><p>Gaspare Trevisan, aged 33, emerges as the top customer by repeated patronage, recording a remarkable 14 repeated orders. He is followed by Delmer Martinez, aged 74, with 12 repeated orders, demonstrating strong loyalty despite his senior age. Katherine Rosales, aged 38, ranks third with 11 repeated orders, showcasing consistent engagement with the brand.</p><p>Other notable contributors include René Fuerst, aged 64, and Jens Himmel, aged 61, both from Germany, along with Uriele Marcelo, aged 59, from Italy, each recording 10 repeated orders. Elizabeth Butler, aged 25, from the United Kingdom, and Edward Rose, aged 46, also from the United Kingdom, further highlight the global distribution of loyal customers, each contributing 10 repeated orders.</p><p><strong>4c. What’s the average Order value by age Category or groups.</strong></p><pre><br>-- Average Order Value By Age Category or groups<br>SELECT <br>      CASE<br>         WHEN DATEDIFF(YEAR, Date_of_Birth, GetDate()) &lt; 25 THEN &#39;Under 25&#39;<br>         WHEN DATEDIFF(YEAR, Date_of_Birth, GetDate()) BETWEEN 26 AND 30 THEN &#39;26-30 Years&#39;<br>         WHEN DATEDIFF(YEAR, Date_of_Birth, GetDate()) BETWEEN 31 AND 40 THEN &#39;31-40 Years &#39;<br>         WHEN DATEDIFF(YEAR, Date_of_Birth, GetDate()) BETWEEN 41 AND 50 THEN &#39;41-50 Years&#39;<br>         WHEN DATEDIFF(YEAR, Date_of_Birth, GetDate()) BETWEEN 51 AND 60 THEN &#39;51-60 Years&#39;<br>         WHEN DATEDIFF(YEAR, Date_of_Birth, GetDate()) BETWEEN 61 AND 70 THEN &#39;61-70 Years&#39;<br>         ELSE &#39;71+ Years&#39;<br>       END AS [Age Group],<br> ROUND(AVG([Transactions Fact].Quantity * Product.ProductPrice),2) AS [Average Order Value]<br> FROM Customers<br> JOIN Orders ON Orders.CustomerID = Customers.CustomerID<br> JOIN [Transactions Fact] ON [Transactions Fact].OrderNumber = Orders.OrderNUmber<br> JOIN product ON Product.ProductID = [Transactions Fact].ProductID<br> GROUP BY<br>      CASE<br>         WHEN DATEDIFF(YEAR, Date_of_Birth, GetDate()) &lt; 25 THEN &#39;Under 25&#39;<br>         WHEN DATEDIFF(YEAR, Date_of_Birth, GetDate()) BETWEEN 26 AND 30 THEN &#39;26-30 Years&#39;<br>         WHEN DATEDIFF(YEAR, Date_of_Birth, GetDate()) BETWEEN 31 AND 40 THEN &#39;31-40 Years &#39;<br>         WHEN DATEDIFF(YEAR, Date_of_Birth, GetDate()) BETWEEN 41 AND 50 THEN &#39;41-50 Years&#39;<br>         WHEN DATEDIFF(YEAR, Date_of_Birth, GetDate()) BETWEEN 51 AND 60 THEN &#39;51-60 Years&#39;<br>         WHEN DATEDIFF(YEAR, Date_of_Birth, GetDate()) BETWEEN 61 AND 70 THEN &#39;61-70 Years&#39;<br>         ELSE &#39;71+ Years&#39;<br>      END <br> ORDER BY 2 DESC</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*XT3qC6ao_uK_P4Sdmp6xRA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*rQE7go3Yu5ST_0FCs027fA.png" /><figcaption>Age Groups by Average Order Value</figcaption></figure><p>There is not a wide or significant difference in average order value across the age groups. Albeit Customers aged <strong>31–40 years</strong> lead with the highest average order value ($899.16), followed closely by those aged <strong>41–50 years ($893.66)</strong> and <strong>71+ years ($891.57)</strong>. Other age groups show minor differences, with those <strong>under 25</strong> having the lowest value ($841.08).</p><h3>5. Geographical Sales Distribution</h3><p><strong>Which Countries contributed most in sales?</strong></p><pre>-- Sales Distribution BY COUNTRY<br>SELECT  C.Country,<br>        SUM(TF.Quantity) AS [Total Sales],<br>        ROUND(CAST(SUM(TF.Quantity)*100.0/<br>                (SELECT SUM(TF.Quantity)<br>                 FROM [Transactions Fact] AS TF<br>                 ) AS FLOAT),2) AS [Total Sales in %]<br> <br>FROM Customers AS C<br>JOIN Orders AS O ON O.CustomerID = C.CustomerID<br>JOIN [Transactions Fact] AS TF ON TF.OrderNumber = O.OrderNumber<br>JOIN Product AS P ON P.ProductID = TF.ProductID <br>GROUP BY C.Country<br>ORDER BY 2 DESC</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*ihy9_4gTUARgmbigYiPRXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*-Tb93nCoG073x5zat5-RKA.png" /><figcaption>Country By Total Sales</figcaption></figure><p>The <strong>United States</strong> dominates sales with over half the total volume (106,407), followed by the <strong>United Kingdom (25,298)</strong> and <strong>Germany (18,943)</strong>. Other key markets include <strong>Canada (16,793)</strong> and <strong>Australia (9,209)</strong>. Italy, the Netherlands, and France contribute moderately with <strong>8,470</strong>, <strong>7,252</strong>, and <strong>5,385</strong>, respectively.</p><p><strong>5b. Which Countries generated the highest revenue?</strong></p><pre>SELECT  C.Country,<br>        ROUND(SUM(TF.Quantity * P.ProductPrice),2) AS [Total Revenue],<br>        ROUND(SUM(TF.Quantity * P.ProductPrice)*100.0/<br>                   (SELECT SUM(TF.Quantity * P.ProductPrice) AS Total_Rev<br>                    FROM [Transactions Fact] AS TF<br>                    JOIN Product AS P ON P.ProductID = TF.ProductID <br>                   ), 2) AS [Total Revenue in %]<br> <br>FROM Customers AS C<br>JOIN Orders AS O ON O.CustomerID = C.CustomerID<br>JOIN [Transactions Fact] AS TF ON TF.OrderNumber = O.OrderNumber<br>JOIN Product AS P ON P.ProductID = TF.ProductID <br>GROUP BY C.Country<br>ORDER BY 2 DESC</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*bygG75kjCqgrvpvmfUHTjw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*YSC0Vc6_BZ_4tRVwULZtDw.png" /></figure><p>The <strong>United States</strong> leads in revenue generation with <strong>$29,871,631.31</strong> (53.58% of total revenue). The <strong>United Kingdom</strong> follows at <strong>$7,084,088</strong> (12.71%), with <strong>Germany</strong> in third, contributing <strong>$5,414,149.79</strong> (9.71%). <strong>Canada</strong> rounds out the top four with <strong>$4,724,334.63</strong> (8.47%).</p><h3><strong>Recommendations</strong></h3><h4><strong>Seasonality Trends</strong></h4><ol><li><strong>Perform a deeper analysis</strong> to investigate and<strong> </strong>understand the causes of the sales drop during this period March–May Decline and also<strong> Leverage Late-Year Performance as </strong>seen in October–December and amplify year-end marketing efforts with discounts, promotional campaigns, incentives to capitalize on holiday-driven demand.</li><li>Analyze the strategies that contributed to 2019’s success. Replicate effective campaigns, pricing strategies, or operational efficiencies to improve future performance.</li><li><strong>Focus on Winter Campaigns:</strong> With Winter consistently leading in order volumes, prioritize marketing efforts, promotions, and inventory planning during this season.</li></ol><ul><li><strong>Inventory Management/Operational Optimization</strong>: Ensure sufficient stock levels to meet increased demand during peak days and allocate adequate staff and system resources to handle the higher order volumes efficiently on high-demand days.</li></ul><h4><strong>Geographic Distributions</strong></h4><ol><li><strong>Maximize U.S. Market Potential</strong>: The U.S represent the most active and vibrant markets so a recommended call to action is for the global retailing agency to leverage the United States’ strong sales performance by introducing loyalty programs, targeted promotions, and expanding product offerings.</li><li><strong>Consolidate Online Sales Experience</strong>: Leverage online channel’s significant contribution by optimizing website performance and also offering competitive shipping options.</li><li><strong>Expand Presence in Emerging Markets</strong>: Focus on increasing sales in promising regions like Canada and Germany by tailoring products to local preferences and enhancing marketing campaigns and <strong>analyze Low-Performing Locations </strong>to identify challenges and implement corrective strategies.</li></ol><h4><strong>Customers Performance.</strong></h4><ol><li>Tailor communication and services to notable high-value customers to strengthen loyalty by regularly checking in on their satisfaction levels and send personalized thank-you notes or gifts as a gesture of appreciation for their loyalty.</li><li>Introduce tier-based loyalty programs offering rewards such as free delivery, early access to new products, or priority support to handle their inquiries or complaints.</li><li>Analyze purchasing patterns of these top customers to identify opportunities for cross-selling or upselling and use predictive analytics to anticipate their needs and offer proactive recommendations.</li><li>Target marketing efforts and promotions at customers aged <strong>31–50 years</strong> and <strong>71+ years</strong>, as they demonstrate the highest spending potential. Offer personalized incentives to younger customers (<strong>under 25</strong>) to encourage higher spending.</li></ol><h4>Products Performance.</h4><ol><li><strong>Boost Availability and Marketing of Top Performing products</strong>: Prioritize inventory and promotions for the top profit-generating products to capitalize on their strong market demand.</li></ol><ul><li><strong>Strategic Focus on top Categories and Subcategories</strong>: Prioritize marketing and promotional efforts for the top revenue-generating subcategories, particularly Desktops and Televisions, to sustain and enhance their performance.</li><li><strong>Bundle Offers and Cross-Selling</strong>: Develop bundle deals (e.g., laptops with accessories) and cross-sell related products to maximize revenue from high-demand categories.</li><li><strong>Inventory and Stock Management</strong>: Ensure optimal inventory levels for the top-performing subcategories to meet customer demand seamlessly.</li></ul><h3><strong>Conclusion</strong></h3><p>The primary objective of this analysis was to address key business questions raised by stakeholders, providing them with valuable insights into historical trends and the current state of the business. This comprehensive analysis touched on various dimensions of the global retail company’s operations, revealing critical insights into orders over time, top-performing products, high-demand regions, and key customer segments. In line with the discoveries from the data, actionable recommendations have been proposed to empower stakeholders with strategies to streamline operations, enhance customer satisfaction and loyalty, drive revenue growth, and expand market reach. These insights serve as a foundation for informed decision-making and sustained business success.</p><p>Thank you for reading. If this report made any sense, kindly thumps up leave a comment and share.</p><p>If you are interested in working on the Dataset and digging into my codes, here is the <a href="https://drive.google.com/drive/folders/1TEIIdQAzRXcKxoY6y3eGjDIG3JlpkqVf?usp=drive_link">link </a>to the folder</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0fe99052af60" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Workforce Turnover Summary Report: A PowerBI Project]]></title>
            <link>https://medium.com/@gideonokwongudoh/workforce-turnover-summary-report-a-powerbi-project-35bc37afc51e?source=rss-32b00b7a2762------2</link>
            <guid isPermaLink="false">https://medium.com/p/35bc37afc51e</guid>
            <dc:creator><![CDATA[Gideon Oquongudo]]></dc:creator>
            <pubDate>Fri, 18 Oct 2024 16:56:43 GMT</pubDate>
            <atom:updated>2024-10-20T04:02:23.697Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*rAdteqsuonFH7MQPQ2WzxA.png" /><figcaption>Turnover Dashboard</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*Zby7ExFoeukYddZa-dj0tA.png" /></figure><p><strong>Introduction</strong></p><p>Employee turnover is a critical workforce metric that reflects an organization’s culture, hiring practices, and managerial effectiveness. Turnover rates play a significant role in shaping both internal and external perceptions of the organization. Externally, high turnover can signal potential issues to prospective candidates, making it harder to attract top talent. Internally, persistent turnover may create unease among employees, leading to concerns about job security and potentially hindering performance.</p><p>Unchecked turnover can be detrimental to an organization’s long-term success, as it often results in the loss of skilled, productive, and competent employees. Frequent turnover also forces organizations to spend considerable time and resources on hiring processes and searching for replacements, leaving key tasks or projects in limbo.</p><p>Tracking turnover data is therefore essential to understanding key factors such as why employees stay, what triggers their departure, where the organization is losing talent, and which demographics or departments are most affected. With this data, organizations can refine their processes and implement strategies to enhance employee satisfaction, ultimately establishing a more productive, healthy, and high-performing workforce.</p><p><strong>Purpose</strong></p><p>This analysis focuses primarily on turnover trends over time, segmented by demographics, departments, and job titles, as specific factors such as compensation, leave policies, employee satisfaction ratings, and development opportunities are not available in the dataset to possibly measure the relationships between these variables and turnover. Therefore, the objective of this analysis is simply to provide a summary of turnover numbers across various dimensions.</p><p><strong>Data Cleaning and Transformation</strong></p><p>The dataset contained minor inconsistencies and abnormalities that required cleaning. This included removing duplicates, properly formatting and standardizing columns (such as gender and date fields), and renaming certain columns to make them more descriptive. These data cleaning steps were carried out using SQL to ensure the dataset was accurate and consistent for analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DniS0tJEpqN84i1w6mptPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dQ_rbsjtKbIhXv_3D2EA1Q.png" /><figcaption><strong>Dataset Before Cleaning</strong></figcaption></figure><pre><br><br><br> --1. Check for and eliminate duplicates.<br> SELECT ID,<br>  COUNT(*) AS duplicates<br>FROM [HR Turnover Data]<br>GROUP BY ID <br>HAVING COUNT(*) &gt; 1<br><br>-- DELETE DUPLICATES <br><br>WITH CTE_Duplicates AS (<br>SELECT ID,<br>  ROW_NUMBER() OVER(PARTITION BY ID ORDER BY ID) AS Row_num<br>FROM [HR Turnover Data]<br>) <br><br>DELETE <br>FROM CTE_Duplicates<br>WHERE Row_num &gt; 1;<br><br>--2.  MAKE GENDER MORE DESCRIPTIVE<br> UPDATE [HR Turnover Data]<br> SET gender  = CASE<br>     WHEN gender = &#39;M&#39; THEN &#39;Male&#39;<br>     WHEN gender = &#39;FM&#39; THEN &#39;Female&#39;<br>     WHEN gender IS NULL THEN &#39;Non-Conforming&#39;<br>    END;<br><br>UPDATE [HR Turnover Data]<br>SET gender  = &#39;Non Conforming&#39;<br>WHERE gender IS NULL<br><br>--3. STANDARDIZE THE DATE COLUMN<br>-- Insert a new column<br> ALTER TABLE [HR Turnover Data]<br> ADD termination_date DATE;<br><br> -- Update the new column with the old <br> UPDATE [HR Turnover Data]<br> SET termination_date = CAST(LEFT(termdate, 10) AS DATE);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PdZhQqzh0cYcTYMbsbUIQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nPAqSZIk3AC9iME8fB-mTg.png" /><figcaption><strong>Dataset after Minor Cleaning</strong></figcaption></figure><p><strong>Metrics</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*bNhxk0oCsrH55fwTPcQddw.png" /><figcaption><strong>Metrics</strong></figcaption></figure><p><strong>Metrics Overview</strong></p><p><strong>Total Employees:</strong> The company’s total employee count stands at 21,609 between the years 2000 and 2024.</p><p><strong>Total Turnover:</strong> The total number of employees who left the company during this period is 2,527, resulting in a total turnover rate of <strong>11.69%</strong>.</p><p><strong>Total Retained Employees:</strong> The number of retained employees is 19,082, giving the company a retention rate of <strong>88.31%</strong>.</p><p>While turnover benchmarks vary across industries, a total turnover rate under 13% is generally considered acceptable judging by total number of employees this hypothetical organization have. At 11.69%, this company’s turnover rate remains within the acceptable range.</p><p><strong>Turnover Numbers overtime</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*L6vIGAP_K8lr8Hb0yFDfaA.png" /><figcaption>Total turnover numbers overtime</figcaption></figure><p>The company’s yearly turnover since its inception in 2001 began modestly, with only 7 employees departing in the first year. Turnover gradually increased over the years, eventually reaching its peak in 2022, when the company recorded its highest turnover count of 198 employees.</p><p><strong>Turnover Numbers by Years of Employment</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*584ZvGbw87zxbqPd5Qyoaw.png" /><figcaption>Heatmap showing turnover by month and years of employment</figcaption></figure><p>The heatmap above illustrates that employees with the highest turnover numbers tend to have between 1 and 9 years of tenure with the company. This suggests that turnover is more concentrated within the early to mid-stages of an employee’s career at the organization</p><p><strong>Turnovers by Department</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*zS6C0IfD8G1I9Dj3S8k_hw.png" /><figcaption>Turnovers by Department</figcaption></figure><p>The <strong>Engineering</strong> department has the highest turnover, with a total of <strong>768</strong> employees departing. <strong>Accounting</strong> follows with a turnover of <strong>372</strong> employees. The <strong>Human Resources</strong>, <strong>Sales</strong>, and <strong>Training</strong> departments complete the top five, with turnovers of <strong>213</strong>, <strong>208</strong>, and <strong>203</strong> employees, respectively.</p><p><strong>Turnovers by Job Titles</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*-Td-5rN0gACg1KDXpYAkgQ.png" /><figcaption><strong>Turnovers by Job Titles</strong></figcaption></figure><p><strong>Turnover by Job Title</strong></p><p>The <strong>Business Analyst</strong> role has the highest turnover, with a total of <strong>85</strong> departures. The <strong>Human Resources Analyst II</strong> position follows closely with <strong>75</strong> turnovers. Other significant turnovers include <strong>Research Assistant I</strong> with <strong>70</strong> employees, <strong>Research Assistant II</strong> with <strong>63</strong>, <strong>Data Visualization Specialist</strong> with <strong>62</strong>, and <strong>Accounting</strong> with <strong>60</strong> departures.</p><p>Notably, many of the roles with the highest turnover are concentrated in the human capacity development and data management sectors of the organization. These areas are crucial for building and maintaining a robust workforce, as well as driving organizational objectives through data-driven insights. Losing employees within these ranks could be counterproductive to the organization in terms of building and maintaining a healthy workforce and also harnessing data and information for driving the organization’s goals.</p><p><strong>Turnover by Age Range</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*mE5ikzmk0kZ7SJkZzh2nGQ.png" /><figcaption><strong>Turnover by Age Range</strong></figcaption></figure><p>The age group with the highest turnover is <strong>36–40 years</strong>, with a total of <strong>377</strong> employees departing. Employees aged <strong>51–55 years</strong> follow in second place with <strong>347</strong> turnovers, while the <strong>46–50 years</strong> age group ranks third with <strong>343</strong> departures. The <strong>31–35 years</strong> and <strong>26–30 years</strong> age brackets complete the top five, with <strong>335</strong> and <strong>332</strong> turnovers, respectively.</p><p><strong>Turnover By Gender</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*jG8VawfN50ia7w_Z1Ixx_g.png" /></figure><p>Males have a slightly higher turnover rate than females, with a total of <strong>1,301</strong> males (51.44%) leaving the organization, compared to <strong>1,228</strong> females (48.56%). The turnover data indicates that male employees are leaving the organization at a marginally higher rate than their female counterparts. While the difference is not substantial, it may still be significant in terms of overall workforce dynamics.</p><p><strong>Total Turnover by Races</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*rKMkvdH8qa_GncVUk7fxGA.png" /><figcaption><strong>Total Turnover by Races</strong></figcaption></figure><p>Employees identified as <strong>White</strong> have the highest turnover count, totaling <strong>715</strong>, which is nearly double the turnover counts of <strong>Dual or more races</strong> and <strong>Black/African American</strong> employees, who have <strong>418</strong> and <strong>417</strong> turnovers, respectively. <strong>Asian</strong> employees follow in fourth place, with a turnover count exceeding <strong>400. </strong>The turnover data by race shows a significant disparity in employee retention across racial groups. The notably higher turnover among White employees compared to other racial groups may point to various factors, such as differing job satisfaction levels, career progression opportunities, or external market conditions. The relatively balanced turnover numbers between employees of Dual or more races, Black/African American, and Asian descent could indicate shared experiences in the workplace or similar external factors influencing their decisions to leave. These patterns point to a need for further investigation into the underlying causes of turnover across different racial demographics to ensure unbiased workforce policies and retention strategies.</p><p><strong>Turnover by Location State</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*h8yrbZyU7OdwPbkrWkW2eQ.png" /><figcaption><strong>Turnover by Location State</strong></figcaption></figure><p>Employees at the organization’s headquarters in <strong>Ohio</strong> have the highest turnover count, totaling <strong>2,081</strong>, which represents <strong>82.2%</strong> of the total turnover. This figure is alarming and warrants concern. While it is understandable that Ohio, being the headquarters of the organization, would have a larger employee base and consequently higher turnover numbers, the elevated turnover rate calls for a proactive investigation. The organization should identify the underlying reasons for such high turnover in Ohio and implement employee-oriented measures to address these issues and reduce turnover.</p><p><strong>Turnover by Work Nature</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*ICREaR4phqY4LkdkKac-eg.png" /></figure><p>The headquarters, being the main and only physical location of the organization, recorded the highest turnover numbers, totaling <strong>1,938</strong> employees (76.63%). In contrast, <strong>591</strong> employees (23.37%) who work remotely departed from the organization.</p><p><strong>Strategic Recommendations</strong></p><ol><li><strong>Implement Effective Communication Systems:</strong> Develop channels such as questionnaires, surveys, and town halls to allow employees voice their concerns and stay aligned with the company’s goals. This approach will help uncover employees’ motivations and issues that may influence their decision to leave, enabling targeted retention strategies.</li><li><strong>Review Remuneration and Compensation Plans:</strong> Conduct a comprehensive analysis of current remuneration and compensation structures to ensure they are competitive and equitable. Verified studies show that fair compensation is a critical factor in employee retention.</li><li><strong>Enhance Time Off and Leave Policies:</strong> Consider implementing more flexible time-off and leave policies to promote work-life balance and reduce burnout.</li><li><strong>Support Personal Growth and Career Progression:</strong> Establish programs that recognizes employee’s performance and sponsor regular development opportunities to encourage career advancement.</li><li><strong>Design Employee-Centric Policies:</strong> Intentionally create and implement organizational policies that foster a positive and healthy work environment, uphold employee integrity, dignity, and support their interests and creativity.</li><li><strong>Train Managers in Employee Relations:</strong> Research shows that a major factor that influences employees&#39; departure stems from a heighten lack of human management and leadership skill of managers<strong>. </strong>The organization should consider performing periodic managerial appraisals, provide or sponsor leadership development and upskilling opportunities and also<strong> e</strong>ncourage managers to develop a deeper understanding of their employees’ needs and to manage them with care and professionalism. This can enhance employee satisfaction and loyalty.</li></ol><p><strong>Conclusion</strong></p><p>Addressing the turnover challenges within the organization is highly important for fostering a stable and engaged workforce. By implementing the recommendations outlined above, the organization can create a more supportive work environment that not only retains talent but also promotes growth and satisfaction among employees. Proactively examining compensation structures, enhancing work-life balance, supporting career progression, and fostering open communication will contribute to a healthier organizational culture. Ultimately, these measures will not only help reduce turnover rates but also drive the organization toward achieving its long-term goals and objectives.</p><p>Thanks for reading this far. If you found this piece interesting and insightful kindly give a thumps up, drop a comment and follow me for more content.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35bc37afc51e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[In-Depth Analysis of Barclays Bank Loan Portfolio: A PowerBI and SQL Project.]]></title>
            <link>https://medium.com/@gideonokwongudoh/in-depth-analysis-of-barclays-bank-loan-portfolio-a-powerbi-and-sql-project-a193b1bd5289?source=rss-32b00b7a2762------2</link>
            <guid isPermaLink="false">https://medium.com/p/a193b1bd5289</guid>
            <dc:creator><![CDATA[Gideon Oquongudo]]></dc:creator>
            <pubDate>Tue, 10 Sep 2024 14:47:54 GMT</pubDate>
            <atom:updated>2024-09-11T11:48:36.953Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*-GT66sglgQAEiX99VVjRHA.png" /><figcaption>Barclay’s Bank Homepage Dashboard</figcaption></figure><p><strong>Introduction</strong><br>Making profit, minimizing losses and maintaining efficient business operations make up the key objectives of every profit-driven enterprise. Fulfilling these objectives keeps the business running smoothly and financially healthy. It is therefore crucial to conduct thorough examinations of business operations to assess performance and analyze the financial metrics. Performing such actions ensures the company is aware of what’s happening, the why of what’s happening and what steps or strategies can be implemented in order to have the company stay on track with its objectives. The insights derived from such analyses can inform strategic business decisions and drive growth.</p><p>This article presents an exploratory analysis of a hypothetical loan portfolio from a financial institution, named Barclays Bank. The primary goal of analyzing this extensive loan portfolio is to maximize profitability while minimizing the risks associated with bad loans. This objective will be met by identifying key factors that influence successful loan repayment and default rates. Thanks to the obtained insights, Barclays Bank will be able to refine its lending policies and thus, reduce financial losses.</p><h3>Problem Statement</h3><p>The Barclays bank has a robust loan portfolio — <strong>with over 80% of total loans successfully repaid by customers, which is a positive indicator. Yet, 13% of total loans have been written off or marked as unpaid or incomplete. </strong>This situation adversely affects the bank’s operational capital and the expected profits from loan transactions. Therefore, it is important to further reduce the incidence of loan defaults.</p><p>This analysis aims to address this issue by investigating and obtaining insightful answers through the following key questions:</p><p>1.What are the key variables that contribute to successful loan repayment? What are the causes that lead to uncleared loans by customers?</p><p>2. A loan can be either charged off or successfully repaid. Do factors such as annual income, interest rates, debt-to-income ratio have a significant influence in the repayment of a loan?</p><p>By probing the loan dataset with the questions above, we should be able to identify the leading factors responsible for both successfully repaid loans and written-off loans. Using the insights gained thanks to this analysis, Barclays Bank will definitely be able to optimize and manage its loan portfolio more effectively, resulting in both reduction of defaults and profitability enhancement.</p><h3>Dataset Overview</h3><p>Alongside the dataset, a list of the key variables and their detailed description is provided. The dataset contains loan records, as well as some of the Bank’s measures used to categorize borrowers, based on creditworthiness and repayment status. The dataset required minimal cleaning: some columns (mostly date related ones) needed to be cleaned in order to eliminate inconsistent formatting. Some column names had abbreviations and lacked descriptiveness, so they were renamed to improve their meaning.</p><p><strong>Variables in the Dataset.</strong></p><ol><li><strong>ID: </strong>A unique identifier for each loan record.</li><li><strong>Address State:</strong> An abbreviation of the state where the borrower resides.</li><li><strong>Application type</strong>: Type of loan application, e.g., INDIVIDUAL.</li><li><strong>employee length: </strong>Length of employment of the borrower, in years.</li><li><strong>Employer title: </strong>The company name where the<strong> </strong>borrower works.</li><li><strong>Grades: </strong>Grade assigned to the loan, indicating the risk level (e.g., A, B, C).</li><li><strong>Home ownership:</strong> Home ownership status of the borrower (RENT, MORTGAGE, OWN).</li><li><strong>Issue date:</strong> Date the loan was issued.</li><li><strong>Last Credit Pull Date:</strong> Date of the last credit pull on the borrower.</li><li>L<strong>ast Payment Date: </strong>Date<strong> </strong>of the last payment made by the borrower.</li><li><strong>Loan Status:</strong> The current status of the loan</li></ol><ul><li><strong>Charged Off:</strong> Written-off loans or dimmed as incomplete payment by lender because of borrowers&#39; inability to pay as at when due.</li><li><strong>Fully Paid: </strong>Loan completely repaid or remitted by borrowers.</li><li><strong>Current</strong>: Active, ongoing loan deals.</li></ul><p>12. <strong>Next Payment Date</strong>: Date when the next payment is due.</p><p>13. <strong>Term: Term or duration of the Loan</strong> — 36 months and 60 months.</p><p>14.<strong>Verification status:</strong> Status of verification of borrower information- verified, Not Verified, Source Verified.</p><p>15. <strong>Annual income</strong>: Annual income of the borrower in USD.</p><p><strong>16. DTI</strong>: Debt-to-income ratio of the borrower.</p><p>17. <strong>Installment:</strong> Monthly installment amount for the loan.</p><p>18. <strong>Interest Rate</strong>: Interest rate of the loan.</p><p>19. <strong>Loan Amount:</strong> Total amount of the loan in USD.</p><p>20. <strong>Total Account: </strong>Total number of credit lines the borrower has.</p><p>21. <strong>Total payment </strong>Total amount paid by the borrower by the end of the loan period in USD.</p><p><strong>Data Cleaning Script</strong></p><pre>--SQL Script for Data Cleaning<br>---- Creating A View for the Dataset for PowerBI <br>CREATE VIEW Finance_View AS <br>SELECT [id] AS ID, [address_state] AS &quot;State ID&quot;<br>      ,[Address_State_Full] AS State<br>      ,[application_type] AS &quot;Application Type&quot;<br>      , CASE WHEN [emp_length] = &#39;&lt; 1 year&#39; THEN &#39;Less Than 1 year&#39; <br>       WHEN [emp_length] = &#39;10+ years&#39; THEN &#39;10 years Plus&#39;<br>       ELSE [emp_length]<br>       END AS &quot;Employee Duration&quot;<br>      ,CASE WHEN [emp_title] IS NULL THEN &#39;No Employee Title&#39;<br>       ELSE [emp_title] END AS &quot;Employer Name&quot;<br>      ,[grade] AS &quot;Loan Grade&quot;<br>      ,[home_ownership] AS &quot;Home Ownership&quot;<br>      ,[issue_date] AS &quot;Issue Dates&quot;<br>      ,DateName(Month, [issue_Date]) as &quot;Issue Date Month&quot;<br>      ,[last_credit_pull_date] AS &quot;Last Credit Pull Date&quot;<br>      ,[last_payment_date] AS &quot;Last Payment Date&quot;<br>      ,[loan_status] AS &quot;Loan Status&quot;<br>      ,[next_payment_date] AS &quot;Next Payment Date&quot;<br>      ,[member_id] AS &quot;Borrower ID&quot;<br>      ,[purpose] AS &quot;Purpose&quot;<br>      ,[sub_grade] AS &quot;Sub Grade&quot;<br>      ,[term] AS &quot;Term&quot;<br>      ,[verification_status] AS &quot;Verification Status&quot;<br>      ,[annual_income] AS &quot;Annual Income&quot;<br>      ,CAST ([dti] AS MONEY) AS &quot;Debt-to-Income&quot;<br>      ,CAST ([installment] AS MONEY) AS &quot;Installment&quot;<br>      ,CAST ([int_rate] AS MONEY) AS &quot;Interest Rate&quot;<br>      ,[loan_amount] AS &quot;Loan Amount&quot;<br>      ,[total_acc] AS &quot;Total Account&quot;<br>      ,[total_payment] AS &quot;Total Payment&quot;<br>  FROM [Finance_Loan].[dbo].[Finance_Loan]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B_ZYlDCzIF31rGSpzOIPPA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EjUyYCHS-zKFY552TueJvA.png" /><figcaption><strong>Left: </strong>Dirty Loan Portfolio Dataset.<strong> Right: </strong>Clean Loan Portfolio Dataset</figcaption></figure><p><strong>Data Model: </strong>To ensure an accurate analysis and enhance performance, I created a schematic data model that illustrates the connections and relationships within the dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*SRhhpt5LnnKyDMzCcH_-jw.png" /><figcaption><strong>Loan Portfolio Schematic Model</strong></figcaption></figure><p><strong>Understanding Barclays Bank Loan Pricing Strategy:</strong> The Influence of Debt-to-Income Ratios on Loan Pricing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*VitcCRDfq8JDNPpZ8PVoeQ.png" /><figcaption><strong>Debt-to-income, interest rate and Loan Grades</strong></figcaption></figure><p>The table provides a breakdown of borrowers based on their assigned loan grades, which reflect their creditworthiness, determined by their credit scores and debt-to-income (DTI) ratios. The debt-to-income ratio measures the ration between the amount of debt and the monthly income. Simply put, it shows how much of a borrower’s income goes towards paying off debt.</p><p>Borrowers with high credit scores and lower debt-to-income ratios are considered less risky and are assigned higher loan grades, such as A, B or C. These borrowers benefit from significantly lower average interest rates because they are deemed less likely to default on their loan repayments.</p><p>On the other hand, borrowers with lower credit scores and higher debt-to-income ratios are considered riskier. They are assigned lower loan grades: from D to G. These borrowers are charged higher average interest rates as a standard measure by the lending institution to cushion the risk associated with lending to borrowers who have a high probability of defaulting on their loans due to their high debt burden.</p><h3>The Situation:</h3><p>Payment Status categories:</p><ul><li><strong>Fully Paid</strong>: loans that have been successfully repaid in full.</li><li><strong>Charged Off</strong>: loans that have defaulted or are considered uncollectible.</li><li><strong>Current: </strong>Ongoing loans actively under repayment by borrowers.</li></ul><p>The Barclays has disbursed total of 38,576 number of loans. <strong>32,145 </strong>have been remitted successfully which represents about <strong>83.33%</strong> of the total loans disbursed. However, <strong>5,333 </strong>representing <strong>13.82% </strong>of all loans have been defaulted or written off as bad debts while 1,098 which is about 2.85% of total approved loans are still actively under repayment by borrowers.</p><p><strong>This begs the question, what are the possible causes of Bad/Charge Off Loans</strong>?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*sfaAHYe_IFYJWua2p_gs4g.png" /><figcaption>Distribution of Loans by Payment Status</figcaption></figure><p>We will attempt to answer the above question by analyzing the data in the following order:</p><p><strong>Distribution of Loans by Verification status</strong></p><p>- <strong>Not Verified</strong>: Category of borrowers whose financial details remain unknown or unconfirmed by the bank.</p><p>- <strong>Verified</strong>: Category of borrowers whose financial details have been provided to the bank but are not entirely reliable.</p><p>- <strong>Source Verified</strong>: Category of borrowers whose financial details have been thoroughly vetted and confirmed by the bank.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*7YJtD0FAQ236eBKppgH5yw.png" /><figcaption><strong>Fully Paid</strong>: Distribution of Loans by Verification status</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*d3UEW7yvLg_18tDMBvTxVQ.png" /><figcaption><strong>Charged-Offs</strong>: Distribution of Loans by Verification status</figcaption></figure><p>The visuals show the total number of loans disbursed to borrowers based on the verification status of their income sources and financial details. Borrowers in the <strong>Not Verified</strong> category, whose financial details remain unknown or unconfirmed by the bank, account for the highest number of loans at approximately 14,200. This is nearly double the number of loans compared to those issued to <strong>Verified</strong> or <strong>Source Verified</strong> borrowers.</p><p>The <strong>Verified</strong> category, consisting of customers whose financial details have been provided to the bank but are not entirely reliable, represents around 9,800 loans. Meanwhile, the<strong> Source Verified </strong>category, which includes borrowers whose financial details have been thoroughly vetted and confirmed by the bank, has the lowest count with about 8,100 loans.</p><p>In terms of loan defaults or charge-offs, the <strong>Not Verified</strong> group again leads, with approximately 2,015 loans charged off. This is followed by the <strong>Verified</strong> group with around 1,936 charge-offs, and the <strong>Source Verified </strong>group with about 1,382 charge-offs.</p><p>Though Barclays Bank records high rate of repayment from unverified borrowers, this category of borrowers still constitutes a big risk for the Bank as they bank does not have a valid means of monitoring their loan repayment performances or track them down when they default. This suggest that the bank might benefit more by enhancing its verification processes to reduce the risk associated with unverified borrowers and improve overall loan recovery rates.</p><h4>Distribution of Loans by Loan grades</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*qk1RvnCsd0IGZ_YNli1yvQ.png" /><figcaption><strong>Fully Paid: </strong>Distribution of Loans by Loan Grades</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*hPbef7w9i2z-ctGeGUI5TA.png" /><figcaption><strong>Charge off</strong>: Distribution of Loans by Verification status</figcaption></figure><p>The visual data indicates that borrowers whose loans are classified in Grades from A to D have high borrowing rates and a strong track record of fully repaying their loans. Conversely, for charged-off loans, borrowers with loans classified in Grades from B to E, exhibit a higher tendency to default on their loans.</p><p><strong>Distribution of Loans by Length/Duration of Employment</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*peiFygBS8sY3jWTN49NqLQ.png" /><figcaption><strong>Fully Paid</strong>: Distribution of Loans by Length of Employment</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*X2Bzg_2rtZiNZEQcxsa_2g.png" /><figcaption><strong>Charged off: Distribution of Loans by Length of Employment</strong></figcaption></figure><p>The visualizations above show the correlation between borrowers’ employment tenure and their loan repayment status at Barclays Bank. The data shows that the majority of the bank’s borrowers fall into three employment categories: those with 0–2 years, 9+ years, and 3–4 years of work experience.</p><p>For the <strong>“Fully Paid”</strong> category, the largest group of borrowers also falls into the 0–2 years of work experience category (10.3K loans), followed by those with 9+ years (8.2K loans), and then those with 3–4 years of experience (6.3K loans). This indicates that, despite having a high number of defaulters, relatively new employees (0–2 years) and those with significant work experience (9+ years) make up a substantial proportion of borrowers who fully repay their loans.</p><p>For the category of <strong>“Charged Off”</strong> loans — the highest number of loans is associated with borrowers who have less or about 2 years of work experience (1,637 loans). This is followed by those with over 9 years of duration (1,477 loans), and then those in the 3–4 years’ work range (1,002 loans). This pattern suggests that both newer employees and those with substantial experience are more prone to defaulting, while those in the mid-range of 5–8 years are less likely to default.</p><p><strong>Employees work years and Average annual Salary</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*bcOfrosMjYj-0sZf8BSFmg.png" /><figcaption><strong>Borrower’s Employment tenure and Average annua Salary</strong></figcaption></figure><p>From the visuals, we observe that borrowers with the longest employment durations tend to have higher earnings. Those with over 9 years of work experience earn the most, with an average salary of $81K. This is followed by employees with 7–8 years of experience, earning $72K annually. The third highest earners are those with 5–6 years of tenure, with an average annual salary of $68K. This suggests that longer-tenured employees represent a lucrative segment for the bank, as they possess higher earning power. However, a significant portion of these high-income earners falls into the loan grades of E, F, and G. Despite their substantial earnings, they have higher debt-to-income ratios, resulting in them being classified into lower credit grades. Consequently, these borrowers face higher interest rates on their loans — up to 21.4% for those in the “Extremely Poor” credit category. This poses a challenge for the bank to balance profitability with customer satisfaction.</p><p><strong>Distribution by Purpose of Loans</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*4xI8t3XNP-ez8FyGZxpseQ.png" /><figcaption>Fully Paid: Purpose of Loans and Number of Loans</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*hSN6GVxTrLeJqXyepXR-kA.png" /><figcaption><strong>Charged-off:</strong> Purpose of Loans and Number of Loans</figcaption></figure><p>The visuals highlight the primary reasons borrowers take out loans. <strong>Debt Consolidation</strong> is the leading purpose, with the bank disbursing over 15,000 loans for this purpose. <strong>Credit Card</strong> expenses come in second, accounting for over 4,000 loans, followed by <strong>Other Miscellaneous Purposes</strong> rounding out the top three.</p><p>In contrast, for unpaid or charged-off loans, <strong>Debt Consolidation</strong> also ranks highest with approximately 2,700 loans. It is followed by <strong>Other Miscellaneous Purposes</strong> with around 600 loans and <strong>Credit Card</strong> expenses with about 500 loans.</p><p>These loan purposes most likely contribute to the rates of unpaid or uncollected loans as managing multiple debts can become a huge financial burden thereby leading to abandoning loan repayment commitments. This represent critical area that Barclays Bank should be wary of.</p><p><strong>Performance of Loans by States</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*GAshftzcZQArloRDtWYYJg.png" /><figcaption><strong>Fully Paid</strong>: Distribution of Loans by states</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*eDcxphAYQinMAHXSt4AXqA.png" /><figcaption><strong>Charged off</strong>: Distribution of Loans by states</figcaption></figure><p>Among the 50 states where the borrowers reside, <strong>California</strong> ranks highest in terms of loan requests, with approximately 5,700 loans. <strong>New York</strong> follows with about 3,100 loans. <strong>Texas</strong>, <strong>Florida</strong>, and <strong>New Jersey</strong> complete the top five, with around 2,300, 2,200, and 1,500 loans, respectively.</p><p>In contrast, for charged-off or unrecovered loans, <strong>California</strong> again leads, with 1,057 borrowers who have not completed their loan repayments. This is followed by <strong>Florida</strong> (479 loans), <strong>New York</strong> (468 loans), <strong>Texas</strong> (301 loans), and <strong>New Jersey</strong> (273 loans).</p><p><strong>State-by-State Comparison of Fully Paid and Charged-Off Loans Based on Average Annual Salaries.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*OM0TTnyPBlqsrxpjZme5NQ.png" /><figcaption>Fully Paid — States by Average Annual Income</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*lAN4rxHy0QWnXBm09CgHkw.png" /><figcaption><strong>States by annual average salary — charge offs</strong></figcaption></figure><p>The high rates of both fully repaid and charged-off loans in these states can largely be attributed to their status as some of the wealthiest states in the USA, with high per capita incomes. These incomes are influenced by factors such as high educational attainment and favorable economic conditions. However, the significant number of charge-offs may also have been influenced by borrowers having or earning an annual salary that is somewhat lower than that of their higher-earning counterparts, thereby affecting their ability to fully repay their loans.</p><p>Since California, New York, Texas, Florida, and New Jersey show high numbers of both repaid and charge-off loans, it is crucial to develop tailored loan products that consider the unique economic conditions and income levels of these states and also implement more stringent risk assessments and creditworthiness evaluations, especially for borrowers with lower average annual salaries, to minimize the likelihood of defaults.</p><p><strong>Loan Performance by Loan Terms</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*BNZ5kCoMVZGqlRd_Ea3qFg.png" /><figcaption><strong>Left</strong>: Loan term count. <strong>Right</strong>: average interest rate for fully paid loans</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*KlEgpPhsEVNyem0bcTDNyw.png" /><figcaption><strong>Left</strong>: Loan term count. <strong>Right</strong>: average interest rate for charge-off loans</figcaption></figure><p>The visuals indicate that the majority of borrowers prefer short-term loan durations of 36 months, with 25,000 fully repaid loans compared to only 7,000 for the 60-month term. This preference for shorter loan terms is largely influenced by the lower interest rates assigned to 36month loan duration. However, the 36-month loans also show the highest number of defaults or charged-off loans, with 3,000 incomplete repayments compared to 2,300 for the 60-month loans.</p><p>Going by these trends, Barclays bank should consider tailoring its lending strategies or offering additional support and guidance to borrowers to minimize the risk of default. Barclays should carefully monitor borrowers who choose the 36-month loan term, considering both the high repayment rates and the significant default rates associated with this loan duration.</p><p><strong>Distribution of Loans by Month</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*QWIoJm4TmqtG6ZlwQzeJCg.png" /><figcaption><strong>Monthly distribution of loans by fully paid borrowers.</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/1*mDI5teg-ADevq5c_2PObEA.png" /><figcaption><strong>Monthly distribution of Loans by can unrecovered loans</strong></figcaption></figure><p>The visuals indicate that fully repaid loans maintain a steady flow from January to July, with a gradual increase in demand starting in September and peaking in December. A similar trend is observed for unrecovered loans, with the highest spikes also occurring from September to December. This pattern likely reflects increased consumer activity and spending during the festive season.</p><h3>Recommendations</h3><ol><li><strong>Verification Process:</strong> the Barclays Bank should thoroughly revise and implement a robust verification process. Having a tight verification policy will help the bank forestall or prevent the possibility of having unverified borrowers from defaulting midway through the repayment obligations. The categorization of unverified borrowers can be a bit misleading, because they tend to be very cooperative and consistent in their loan’s repayment. Definitely, implementing a robust verification process will assist the bank achieve the following:</li></ol><ul><li>Have a valid source of truth.</li><li>Monitor repayments and track borrowers in the event that they default.</li><li>Cultivate and maintain credibility as a trustworthy brand and bankable financial institute.</li></ul><p>2. <strong>Encourage</strong> <strong>Reliable Borrowers:</strong> Given that Grades B, A, C, and D borrowers make up a significant portion of those who successfully repay their loans, Barclays Bank should consider offering more attractive loan terms, such as reduced interest rates or flexible repayment plans, to encourage prompt and complete repayments.</p><ul><li><strong>Implement Financial Counseling:</strong> For borrowers in Grades B, C, D, and E who show a higher likelihood of defaulting, the bank should introduce mandatory financial counseling services. This can help borrowers better manage their finances and improve their ability to meet repayment obligations.</li><li><strong>Strengthen Monitoring and Assessment:</strong> To mitigate the risk of loan defaults, the bank should enhance its monitoring policies for borrowers with lower credit grades. This includes regular financial assessments and early intervention strategies to identify and support borrowers at risk of defaulting.</li></ul><p>3.<strong> Employee Duration: </strong>Top loan drawers with an impressive loan repayment record fall within the category of 0–2years of work duration and those with over 9–10 years of work duration. In terms of annual salary, the highest salary earners are borrowers with 9–10+ years, 7–8years and 5–6years of work experience. The Barclays Bank has a very decent pool of borrowers as prospects they should consider targeting in the long run. Implementing this will enable the bank to attract more profitable and responsive borrowers and reduce the risk of accumulating bad loans resulting from borrowers&#39; negligence.</p><p>4. <strong>Loan Purpose: </strong>A large portion of loans collected by borrowers goes into servicing other loans such as <strong>debt consolidation</strong> and <strong>credit cards debts.</strong></p><p>Given that these categories represent the most common reasons for borrowing, the bank should pay keen attention to the profiles of customers who take out loans for these purposes. Also, Barclays Bank should equally consider developing affordable, competitive, and flexible loan plans tailored to these needs, alongside offering financial advisory or counseling services. These strategies would help borrowers manage their spending habits, develop sound financial practices, and in turn facilitate on time repayments and also attract and retain more customers.</p><p><strong>5. Target High Per Capita Income States and Diversify to High-Prospect Markets: California, Texas, Florida, New York, and New Jersey</strong> are the states with the highest number of borrowers, both for those who successfully complete their repayments and those who default. Additionally, states such as New Jersey, Virginia, Texas, Massachusetts, California, and New York demonstrate higher per capita income levels. Given this insights, Barclays Bank should:</p><ul><li><strong>Develop Tailored Marketing Strategies:</strong><br>Barclays Bank should create customized marketing and promotional strategies specifically targeted at states with higher per capita income. By focusing on these states, the bank can attract more creditworthy borrowers who are more likely to repay their loans fully.</li><li><strong>Expand Financial Products:</strong><br>Consider broadening their financial products and services in these high-income states. These services could comprise financial literacy programs, partnerships with local businesses and community organizations, premium banking services, investment products, and wealth management options. This wider offer can attract affluent clients and encourage more potential borrowers to consider Barclays Bank as a trustworthy entity for their loan needs.</li></ul><p>6. <strong>Loan Borrowing rates overtime: </strong>Barclays bank recorded high surges in loan request from August through December. To take advantage of this season, Barclays Bank should consider:</p><ul><li><strong>Adjusting Loan Offers Seasonally:</strong><br>Tailor loan products and promotional offers to align with the increased demand observed during the festive season.</li><li><strong>Strengthening Risk Management: </strong>Implement stricter credit assessments and risk mitigation strategies from September to December to reduce the likelihood of loan defaults during periods of high borrowing.</li><li><strong>Leveraging Marketing Opportunities: </strong>Increase marketing efforts and customer outreach in the months leading up to the festive period to capitalize on heightened consumer spending.</li></ul><h3>Conclusion</h3><p>This analysis examined key segments of Barclays Bank’s loan portfolio, highlighting critical factors influencing loan performance. While the bank boasts a strong loan repayment rate, the volume of uncollected loans remains a concern. To address this, t<strong>he bank should implement robust verification processes</strong> to ensure the financial credibility and creditworthiness of borrowers before loan approval.</p><p>Additionally, Barclays Bank should focus on high-income earners and states with high per capita income by designing attractive loan packages tailored to these demographics. At the same time, providing favorable terms for low-income, high debt-to-income borrowers can help mitigate risk in economically diverse regions.</p><p>Data insights also reveal that borrowers with 36-month loans are the most responsive. Increasing the appeal of loans within this repayment period could encourage short-term borrowers and encourage long-term borrowers to opt for shorter terms, reducing default rates.</p><p>Lastly, the bank experienced an increased in loan requests during festive and back-to-school periods. Offering incentives and special loan packages during these peak times could attract more borrowers and enhance loan portfolio performance.</p><p>By implementing these strategies, Barclays Bank can further strengthen and maintain a healthy loan portfolio.</p><h3><strong>Barclays Bank Loan Portfolio Dashboards</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*-GT66sglgQAEiX99VVjRHA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*_NgiyndGp-UOu_VOTDA1bw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*W4Jr7wRpMYng5KS3GR7-Qg.png" /></figure><p>Thank you for reading thus far. If you found this exploratory piece interesting, consider sharing with your network, leave a like and comment. If you do like to get your hands dirty and play with the Dataset, I have uploaded it in this drive link 👇</p><p><a href="https://drive.google.com/drive/folders/1DWK_HnWrhgJ9Z7C9BmH308hZZVsW9_Y5?usp=drive_link">https://drive.google.com/drive/folders/1DWK_HnWrhgJ9Z7C9BmH308hZZVsW9_Y5?usp=drive_link</a></p><p>Also attached is a short clip showing real time interaction with the dashboard.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a193b1bd5289" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>