<?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 don halogen on Medium]]></title>
        <description><![CDATA[Stories by don halogen on Medium]]></description>
        <link>https://medium.com/@donhalogen?source=rss-fcd50e6ad1f3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3MqAvKo5Bsh2MAa-BYTKQg@2x.jpeg</url>
            <title>Stories by don halogen on Medium</title>
            <link>https://medium.com/@donhalogen?source=rss-fcd50e6ad1f3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 04:03:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@donhalogen/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[Exploring the Tapestry of Travel: A Comprehensive Data Analysis of 66,542 Hotel Bookings Across a…]]></title>
            <link>https://medium.com/@donhalogen/exploring-the-tapestry-of-travel-a-comprehensive-data-analysis-of-66-542-hotel-bookings-across-a-c1937b44960d?source=rss-fcd50e6ad1f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1937b44960d</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[tableau]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[don halogen]]></dc:creator>
            <pubDate>Mon, 15 Jan 2024 19:03:33 GMT</pubDate>
            <atom:updated>2024-01-15T19:03:33.813Z</atom:updated>
            <content:encoded><![CDATA[<h3>Exploring the Tapestry of Travel: A Comprehensive Data Analysis of 66,542 Hotel Bookings Across a Decade</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CEnfQ8oen_VDYithfL9wdQ.png" /></figure><p>Executed by Alimi Ibrahim</p><p>I am taking a closer look at 66,542 hotel bookings made from 2010 to 2019. This valuable information comes from people traveling worldwide and a company that helps them find the right hotels. As part of DatAfrik’s Data Challenge, I am diving into this data to understand patterns and trends. I used <strong>Tableau</strong> to analyze and create visual representations of the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wh3xJUfLMusnw38k-Jp3Lw.png" /><figcaption>A cross-section of how the table looks upon import to tableau — first 11 columns</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eum5-aePUQE7IJ7cq3HzTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aLkq-rkvRMqTt1xoRgjayg.png" /></figure><p>In my analysis, I included several key metrics to get a comprehensive understanding of the data. These metrics encompassed hotel-specific details like <strong>names </strong>and <strong>ratings</strong>, along with financial aspects such as <strong>booking prices</strong> and <strong>profit margins</strong>. To gauge overall performance, I considered <strong>gender distribution, booking dates,</strong> the <strong>total number of bookings</strong>, and a derived metric — the<strong> profit metric</strong>. This profit metric was calculated by multiplying the booking price with the profit margin. By incorporating this range of metrics, the analysis aimed to provide a well-rounded perspective on various aspects of the hotel bookings and their financial implications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WmNgAkeinC1z9cDn18gtkw.png" /><figcaption>to calculate Profit Metric</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EIlMLLZ7J98KNvZvVhTGAg.png" /><figcaption>Dashboard</figcaption></figure><h4>Insight and recommendations</h4><p>The total revenue generated is 14,242,887 SGD, while the total profit is 2,627,366 SGD (<strong>18.45%</strong>).</p><p>The total Destination Countries is<strong> 20</strong>, and <strong>614 hotels</strong> were booked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A4h54lHL6sXF_Any2jfpmA.png" /><figcaption>gender distribution</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u6PX2WqzsTr3xM5SKKjA9A.png" /><figcaption>Number of bookings per year per gender.</figcaption></figure><p>The bookings are evenly spread between males and females, showing no significant difference. The chart also illustrates a consistent increase in the number of bookings each year since 2016, indicating steady growth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YEhguh7LOANr2EyC4VEgkQ.png" /><figcaption>Revenue and Profit monthly Chart</figcaption></figure><p>This indicates that January, March, May, August, October, and December are peak periods for the hotels, generating higher revenue during these months. The profit metric follows a similar pattern, showing that increased revenue corresponds to higher profits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*mXnxU34CkRMKWLk5_sn7TA.png" /><figcaption>Profit and Revenue distribution by month</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6nq2x1It2moscPkh9i2rnQ.png" /><figcaption>Bookings per month per Year</figcaption></figure><p>This indicates an upward trend in bookings since 2017, with peak periods observed in January, May, August, October, and December.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*2-z06Id7AYnBy-aUCX1JxQ.png" /><figcaption>The top 10 highest rated Hotels</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*H6VF8F2LMH3LbOgti_mbMw.png" /><figcaption>Revenue, Number of bookings and profit per Origin Country</figcaption></figure><p>Thailand, Singapore, Malaysia, and Indonesia emerge as the top-performing origin countries in terms of performance.</p><p>When looking at destination countries, the number of bookings did not show significant variations, indicating a relatively even distribution. However, it’s noteworthy that New Zealand emerged with the highest number of bookings among the destinations. This insight suggests a particular popularity or preference for New Zealand as a destination among the analysed dataset, despite the overall comparable distribution of bookings across various countries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*nHVEeaAnRxv6DZMzh4FXaw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4ps-fTbqI1Ba1jrwkbh_Dg.png" /><figcaption>Payment mode (Mode of payment) distribution</figcaption></figure><p>Considering the data analysis results, it is recommended to focus on optimizing hotel operations and marketing strategies, particularly during peak periods in <strong>January, May, August, October, and December. </strong>These months consistently show higher bookings and revenue. Furthermore, given the strong performance of origin countries such as <strong>Thailand, Singapore, Malaysia, and Indonesia</strong>, it would be beneficial to tailor marketing efforts and enhance partnerships in these regions. Additionally, continued efforts to leverage the <strong>positive correlation between revenue and profit metrics</strong> can contribute to sustained financial growth. Regular monitoring and adjustment of strategies in response to the observed upward shift in bookings since 2017 can ensure the adaptation to evolving market trends.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lnxd2GuaUe_SZiGq-hF_PQ.png" /><figcaption>Hotels listed in order of Revenue, from highest to smallest</figcaption></figure><p>Moreover, teaming up with travel agencies and websites can help them people find out about the hotels. This means more guests! Use online advertising to make sure people see and learn about the hotels when they’re on the internet. Share what makes the hotels special in ads so that people know why they should stay with you. Get involved in the local community by supporting events and connecting with people. This makes the hotels known and liked by both local folks and travellers from different places. Also, pay attention to what people from different cultures like and make your services fit their preferences.</p><p><strong>However</strong>, it’s essential to acknowledge certain limitations in this data analysis. The dataset might not capture all relevant factors influencing bookings and profitability, potentially missing some nuances. Additionally, external factors such as economic changes, global events, or shifts in travel trends may not be fully reflected in the dataset. The accuracy of the analysis relies on the quality and completeness of the provided data; any inconsistencies or inaccuracies could affect the conclusions drawn. Moreover, the dataset’s timeframe from <strong>2010 to 2019 </strong>might not account for recent industry developments. Therefore, while the analysis provides valuable insights, it’s crucial to interpret the findings with an awareness of these limitations and consider them when making business decisions.</p><p>Link to Tableau Dashboard — <a href="https://public.tableau.com/views/hotel_17052895724330/HotelDataset?:language=en-GB&amp;:display_count=n&amp;:origin=viz_share_link">https://public.tableau.com/views/hotel_17052895724330/HotelDataset?:language=en-GB&amp;:display_count=n&amp;:origin=viz_share_link</a></p><p><strong>Connect with me Here -</strong></p><p><a href="https://www.linkedin.com/in/alimiibrahim/"><strong>Linkedin</strong></a></p><p><a href="https://twitter.com/WaleSwole"><strong>Twitter</strong></a></p><p><a href="https://github.com/donhalogen"><strong>GitHub</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1937b44960d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Analysis of a Store Business’s 2019 Sales Performance II]]></title>
            <link>https://medium.com/@donhalogen/data-analysis-of-a-store-businesss-2019-sales-performance-ii-baa10fbc69b8?source=rss-fcd50e6ad1f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/baa10fbc69b8</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[excel]]></category>
            <dc:creator><![CDATA[don halogen]]></dc:creator>
            <pubDate>Mon, 08 Jan 2024 21:39:48 GMT</pubDate>
            <atom:updated>2024-01-08T21:39:48.971Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9B01mWdc9HCFwAU0KWyyAA.png" /></figure><p>Executed by Alimi Ibrahim</p><h3>Introduction</h3><p>A Data Community is hosting a data analysis challenge prompting participants to delve into, clean, and scrutinize the given dataset. The goal is to extract insights and formulate data-driven recommendations based on the analysis.</p><h3>Dataset Description</h3><p>The dataset contains twelve unprocessed data sets, each corresponding to a month in 2019, cataloging the company’s product sales. It encompasses details like product names, order IDs, order placement addresses, order quantities, and the cost per order.</p><h3>Tools</h3><p>I used Microsoft SQL (Azure Data Studio) to extract datasets from the provided database. Subsequently, I utilized Power Query for dataset cleaning purposes. Finally, I employed Power BI for analyzing and visualizing the data.</p><h3>Data Dictionary</h3><p>a. Order ID — record of unique transactions</p><p>b. Product — product sold</p><p>c. Quantity — quantity of product sold</p><p>d. Price each — price sold for every transaction</p><p>e. Order date — date and time for each transaction</p><p>f. Purchase address — store location for every transaction</p><p>g. Revenue — Multiplication of Price each and Quantity</p><p>h. Month — Month for each transaction</p><h3>Challenge Outline</h3><p>i. Data Understanding; Obtain and explore the dataset</p><p>ii. Data Cleaning and Preparation for analysis</p><p>iii. Identify key features/columns relevant to sales analysis</p><p>iv. Calculate and present key sales metrics</p><p>v. Share your Insight and make recommendations</p><h4>i. Data Understanding; Obtain and explore the dataset</h4><p>The dataset was provided as a .bak file. I downloaded it onto my MacBook, traced the location of the downloaded file on terminal</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*BJXthFIhVeD9feBH50SakA.png" /><figcaption>To verify the location of my .bak file</figcaption></figure><p>and then restored it in Microsoft SQL using Azure Data Studio by running the terminal functions</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CZCjbbmWMiW_QK1qCxishw.png" /><figcaption>To Drop it in the Azure data studio MMSQL Folder</figcaption></figure><p>I used the restore function in the Azure Data Studio software to import and then</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OiomI6a4RaDIt8cszc7Dbw.png" /><figcaption>To restore the database</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yQ_uc9XoUl55wPo1wAB-FA.png" /><figcaption>The twelve sales datasets provided for analysis</figcaption></figure><p>extracted them as .csv files which were later uploaded to Microsoft Excel</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*0KgoHEtXP3hCfbba2zDNKg.png" /><figcaption>SQL Code used to extract the tables</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R5MZmekGr3aZJi5mIbPaTQ.png" /><figcaption>to extract the files as .csv</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-sSLCNbx05n7CdgdBbwX-g.png" /><figcaption>The 12 data files</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*99dQAqiOGIVZ2UHp4CvImg.png" /><figcaption>How the preview of the Jan data look like</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j_o2XmVbncG6u1tz05CSmA.png" /><figcaption>The Data on Power Query Editor</figcaption></figure><p>I promoted the first row as Column names, removed the order id column, as I deemed it unnecessary to carry out the data analysis, and rounded up the Price column to 2 decimal places.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qcwFJksou1sdFLN6pdgejQ.png" /><figcaption>Rounding off the price to 2 decimal places</figcaption></figure><p>I splitted the Order Date column using Delimiters so as to extract the necessary date value needed (Month), removed the “/”, concatenate the date and month column , and deleted the year.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k7uJL2Fa-fJKpijH7Ftz9w.png" /><figcaption>using delimiters to split columns</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P8IjGlMDBn8bzQbI9aLHVw.png" /><figcaption>and replacing delimiters with null to make data neat</figcaption></figure><p>For the Address column, the focus for the analysis is the Cities, so I split the address using delimiters and deleted the state, number and code columns</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v8sEUALbqaSkAVEGhZBd4Q.png" /><figcaption>split column using delimiters</figcaption></figure><p>I created an additional column for the total cost which is the Price each * the Quantity of orders. Also filtered out all null values and values not matching their specific columns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0JleztRFlj8M9pbmVINTSQ.png" /><figcaption>new column for total cost / revenuue</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dYcZW1o9uPFD1FKa8ha5sQ.png" /><figcaption>filtered out null values</figcaption></figure><p>I applied the same method for all the other months using this power query code, and append all tables as one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xo-9ODMxjXYAXtthGnCTWA.png" /><figcaption>Power Query code for the data cleaning process</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JnmyoB0a14oKFwcsFA0OLw.png" /><figcaption>Append all tables as new</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b-DderWy1lMt09YQ1I9Jhw.png" /></figure><p>Imported my appended table into Power BI, Load and began my analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ULzROog8IGHg3OMLnY_lHQ.png" /><figcaption>Power BI interface for the aggregated data</figcaption></figure><h4>v. Share your Insight and make recommendations</h4><p><strong>Business Questions Asked</strong></p><ol><li>Uncover trends and patterns for the 2019 sales year</li><li>The Accountant reported that we made loss in the month of April, May, June and July as compared to other month. Is this true? What happened? Show monthly sales performance</li><li>The Assistant manager suggested that we should place more marketing attention on the following cities — Los Angeles, New York, Atlanta, San Francisco and Seattle as they seem to generate more revenue. From the result of your analysis, do you agree with this? Should we proceed with the suggestion?</li></ol><p><strong>Data-Driven Insights and Recommendation</strong></p><p><em>The Visualisations were done using the Power BI desktop app</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4wCbQlJLx7cXGhFv4P1J2A.png" /><figcaption>The Visualisation summary report</figcaption></figure><p><strong>Insight Summary</strong></p><ul><li>The total revenue generated for 2019 is 34.49M</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/326/1*LvWjix8jh14TXz1a_lrhcw.png" /><figcaption>Total revenue</figcaption></figure><ul><li>The total numbers of orders placed is 209k</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/326/1*10_4uVTJFRXhgQy1aS4koQ.png" /><figcaption>Number of orders in the year 2019</figcaption></figure><ul><li>The Sales revenue started slow, increased gradually till the second quarter, then dropped towards the end of the second quarter until it spiked back in the fourth quarter where it peaked. December is the highest performing month generating 13.38% of the total revenue.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*18SIsJPRdvKVpz7_x6u57w.png" /><figcaption>Revenue distribution per Quarter</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*F6u6BLBuc3fxJEJWjHZPGw.png" /><figcaption>Revenue generated by month</figcaption></figure><ul><li>The Macbook Pro Laptop generated the most revenue.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*wk1N2BmkQCvsWrE8EWnK4w.png" /><figcaption>Revenue distribution by product</figcaption></figure><ul><li>The best performing cities are New York, San Francisco, and Los Angeles</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*8hD_psV3hRkhYgP2kvHULA.png" /><figcaption>Revenue generated from each purchase address</figcaption></figure><p><strong>Recommendations</strong></p><ol><li>To enhance performance and prioritize product categories for improvement, the business should focus on its most successful segments. Exceptional performers like <strong>MacBook Pro Laptop, iPhone, ThinkPad Laptop, and Google Phone </strong>suggest strategic expansion within these categories while broadening the range of products available to cater to diverse customer preferences.</li><li>With observed sales trends indicating spikes during specific seasons or quarters, concentrate marketing efforts during these periods. Plan strategic promotions, campaigns, and product launches to capitalize on increased customer interest and purchasing behavior.</li><li>While the AAA Battery pack holds the highest sales but generates the least revenue, consider reviewing the pricing strategy or optimizing production costs to improve profit margins. Simultaneously, maintain adequate inventory levels for high-demand products to promptly meet customer needs.</li><li>Given New York, Los Angeles, and San Francisco as top-performing cities, allocate more resources to targeted marketing campaigns in these areas. Customize marketing strategies based on local preferences and behaviors to boost brand visibility and engagement.</li><li>Utilize data on successful product categories and best-performing months to create loyalty programs or incentives for repeat customers. Offer personalized recommendations or exclusive deals to drive customer retention and enhance lifetime value.</li><li>Continue relying on data analytics to inform business decisions. Regularly monitor sales trends, product performance, and geographical patterns. Utilize predictive analytics to anticipate future trends and adjust strategies accordingly.</li><li>Explore collaborations with manufacturers or suppliers to develop exclusive products within high-performing categories. Forge strategic alliances to offer unique products and stand out in the market.</li></ol><p><strong>Project Limitations</strong></p><p>The dataset does not encompass the cost price of products, hindering the assessment of profit generation. Additionally, it lacks granularity regarding customer demographics, specific product attributes, and detailed cost breakdowns, constraining a more holistic analysis.</p><p>Furthermore, it overlooks store operating costs and fails to specify the advertising methods or the products emphasized in marketing campaigns. This absence of information limits insights into effective promotional strategies.</p><p>Detailed product-level information is also missing, such as variations within product categories or the introduction of new products, which could significantly impact sales performance.</p><p>Moreover, the dataset’s focus on specific geographic regions potentially overlooks broader market trends or global factors that might influence overall business dynamics.</p><p>Additionally, the dataset exclusively represents sales data from 2019, failing to capture changes in market trends, customer behaviour, or product offerings beyond that year, thereby affecting the relevance of any recommendations drawn from the data.</p><p><em>This was previously done using different tools and you can check it here — </em><a href="https://medium.com/@donhalogen/enhancing-business-insights-through-a-comprehensive-review-of-2019-sales-dynamics-cf719c5eed20"><em>Performance I</em></a></p><p><em>If you have recommendations, advise or tips, do not hesitate to send them across to me at donhalogen@gmail.com</em></p><p><strong>Connect with me Here -</strong></p><p><a href="https://www.linkedin.com/in/alimiibrahim/"><strong>Linkedin</strong></a></p><p><a href="https://twitter.com/WaleSwole"><strong>Twitter</strong></a></p><p><a href="https://github.com/donhalogen"><strong>GitHub</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=baa10fbc69b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enhancing Business Insights through a Comprehensive Review of a Company’s 2019 Sales Dynamics]]></title>
            <link>https://medium.com/@donhalogen/enhancing-business-insights-through-a-comprehensive-review-of-2019-sales-dynamics-cf719c5eed20?source=rss-fcd50e6ad1f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf719c5eed20</guid>
            <category><![CDATA[tableau]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[don halogen]]></dc:creator>
            <pubDate>Sun, 07 Jan 2024 03:44:26 GMT</pubDate>
            <atom:updated>2024-01-10T00:38:38.330Z</atom:updated>
            <content:encoded><![CDATA[<h3>Data Analysis of a Store Business’s 2019 Sales Performance I</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DjlAiW_BCPMMjMpkmLYOOg.jpeg" /></figure><p>Executed by Alimi Ibrahim</p><h3><strong>Introduction</strong></h3><p>A data analysis challenge hosted by a Data Community requires participants to explore, clean, and analyse the provided dataset in order to generate data-driven recommendations.</p><h3><strong>Dataset Description</strong></h3><p>The dataset comprises twelve sets of uncleaned data, each representing a month in 2019, documenting the company’s product sales. It includes information such as the product’s name, order ID, the address from which the order was placed, the quantity of orders, and the cost per order.</p><h3><strong>Tools</strong></h3><p>I utilised Microsoft SQL (Azure Data Studio) to extract datasets from the provided database. Following that, I employed BigQuery for both dataset cleaning and analysis. Lastly, Tableau was utilised for visualising the analysed data.</p><h3><strong>Data Dictionary</strong></h3><p>a. Order ID — record of unique transactions</p><p>b. Product — product sold</p><p>c. Quantity — quantity of product sold</p><p>d. Price each — price sold for every transaction</p><p>e. Order date — date and time for each transaction</p><p>f. Purchase address — store location for every transaction</p><p>g. Total Cost / Revenue — Multiplication of Price each and Quantity</p><p>h. Month — Month for each transaction</p><h3><strong>Challenge Outline</strong></h3><p>i. Data Understanding; Obtain and explore the dataset</p><p>ii. Data Cleaning and Preparation for analysis</p><p>iii. Identify key features/columns relevant to sales analysis</p><p>iv. Calculate and present key sales metrics</p><p>v. Share your Insight and make recommendations</p><h4>i. <strong>Data Understanding; Obtain and explore the dataset</strong></h4><p>The dataset was provided as a .bak file. I downloaded it onto my MacBook, traced the location of the downloaded file on terminal</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*BJXthFIhVeD9feBH50SakA.png" /><figcaption>To verify the location of my .bak file</figcaption></figure><p>and then restored it in Microsoft SQL using Azure Data Studio by running the terminal functions</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CZCjbbmWMiW_QK1qCxishw.png" /><figcaption>To Drop it in the Azure data studio MMSQL Folder</figcaption></figure><p>I used the restore function in the Azure Data Studio software to import and then</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OiomI6a4RaDIt8cszc7Dbw.png" /><figcaption>To restore the database</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yQ_uc9XoUl55wPo1wAB-FA.png" /><figcaption>The twelve sales datasets provided for analysis</figcaption></figure><p>extracted them as .csv files which were later uploaded as tables to Big Query</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*0KgoHEtXP3hCfbba2zDNKg.png" /><figcaption>SQL Code used to extract the tables</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R5MZmekGr3aZJi5mIbPaTQ.png" /><figcaption>to extract the files as .csv</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IQ6Ztz-ytIxRaKk8P1VvqA.png" /><figcaption>imported to BigQuery under a 2019 Dataset</figcaption></figure><p>The Schema of the datasets looked like this after import into BigQuery,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_FYHLz0T_5yyFiPiX1VmcA.png" /><figcaption>the default schema of the raw data for month of january</figcaption></figure><p>and the previews showed that they were all structured the same way and exhibited similar issues</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-BJxyHHN4meTvNQ6OjRQ7A.png" /><figcaption>The january.csv file preview</figcaption></figure><ul><li><em>no column names</em></li><li><em>the column names was found on the last row of the table</em></li><li><em>the order date field has a mismatch of year and day i.e 2026–01–19 instead of 2019–01–26</em></li><li><em>Null and empty values</em></li><li><em>decimal figures are not rounded to the nearest decimal places</em></li><li><em>the purchase address contains lots of irrelevant data as the only needed part is the city</em></li></ul><h4><strong>ii. Data Cleaning and Preparation for analysis</strong></h4><p>The process involved six straightforward steps to ensure comprehensive data cleaning. Initiation began by selecting a single table as a template, meticulously cleaning it, and leveraging it as a reference point for cleansing the remaining tables.</p><p>The first step done was to assign a column name to each column.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NOXJ5-SDLWwJQFsL4FGPCw.png" /><figcaption>this created a new table with all the columns named</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s3k-jPtIPa2ZyTzDB-3r3w.png" /><figcaption>First 18 rows of the new table with named column</figcaption></figure><p>The next step was to convert the datatype in the columns</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t0myxNe-RWJPNbu3wipcAg.png" /><figcaption>To convert some of data type from string to int64, float64</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8tJJ9dTeML-WFtHUiZGtfA.png" /><figcaption>The schema after change of datatype</figcaption></figure><p>The third step involved removing the time part of the date column.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1iSuFI56RTYqG1NFyo1ptg.png" /><figcaption>to select just the date part of the column as a new column</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7qNyytDoiGUjK_rhj9vuuQ.png" /><figcaption>from this</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QzDmKBDNRTSzLKHDSHKY8w.png" /><figcaption>to this</figcaption></figure><p>Step 4 involved taking just the city part of the purchase address, rounding up the price to 2 decimal places and re-arranging the date column, drop the order ID as it is irrelevant for the analysis, while dropping all the null values in the table. Also created a new column as total_cost which is the order number multiplied by the price of the product ordered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NHV5hG7Tp0mzGcqj_cVUyg.png" /><figcaption>SQL Code to isolate the city, delete null and empty values, calculate total cost, and round the price. ordered by Product and address</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LAEHFAJFZnjkNwS_Oi2rkQ.png" /><figcaption>new look of the table after step 4</figcaption></figure><p>These 4 steps were done for all the datasets . The next step was to combine the twelve datasets as a single table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DH7VV27hbtoxb2-26B0bKg.png" /><figcaption>Code to combine all the twelve tables as one</figcaption></figure><p>The last cleaning step was done to convert the date column to a ‘%b’ date datatype since we are only interested in the months and not specific date of orders.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QBuXlcSTvuu9MBvECK4ueg.png" /><figcaption>Format date ‘%b”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z357kLZZYhrQYl_2nb__rQ.png" /><figcaption>Cleaned combined table with 185,950 columns</figcaption></figure><h4><strong>iii. Identify key features/columns relevant to sales analysis</strong></h4><p>The key columns identified after examining the data were</p><p>a. Purchase Address</p><p>b. The Product name</p><p>c. Number of Orders</p><p>d. The month and</p><p>e. The total cost</p><p>and the metrics that will be required from them to be able to generate insights and make recommendations are</p><ul><li>Total Revenue</li><li>Total Revenue Per Month</li><li>Total Revenue Per Product</li><li>Total Revenue Per Purchase Address</li><li>Average Revenue per Month</li><li>Average Revenue Per Product</li><li>Average Revenue Per Purchase Address</li><li>Total Revenue per Month per Product</li><li>Total Quantity sold per product</li><li>Total Quantity sold per Purchase Address</li><li>Total Quantity sold per Month</li><li>Average Unit sale (number of orders) per Product</li><li>Average Unit sale per Purchase address</li></ul><h4><strong>iv. Calculate and present key sales metrics</strong></h4><p>The Calculations were done using BigQuery</p><ul><li><strong><em>Total Revenue</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LpoW53cy8_DtqqRVDhTjGQ.png" /><figcaption>Total Revenue for 2019</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/1*021el-wzYUg0sl4gUcgmYg.png" /><figcaption>total revenue</figcaption></figure><ul><li><strong><em>Total Revenue Per Month</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tfmBjGkR7rZXXlI-fzza9A.png" /><figcaption>to calculate the total revenue per month</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*tRulfqyNFfxhAamP1Ad_Nw.png" /><figcaption>The revenue(total cost) per month which showed December as the highest performing month and January as the smallest.</figcaption></figure><ul><li><strong><em>Total Revenue Per Product</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EzygW7fRjCRalmk93xpD1Q.png" /><figcaption>to calculate the total revenue per product</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*zlLqKIp7zShCT9dn9bm4oA.png" /><figcaption>Macbook Pro Laptop grossed the highest and AAA Batteries (4-pack) generated the lowest.</figcaption></figure><ul><li><strong><em>Total Revenue Per Purchase Address</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vgHGDeVE-jbC_LCG_JVMfg.png" /><figcaption>total_revenue_per_city</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*b4CvCsWodNnq9ZtCGpwTEA.png" /><figcaption>The Most Performing cities are New York, Los Angeles and San Francisco</figcaption></figure><ul><li><strong><em>Average Revenue per Month</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xcf-s_iZKtPE2P1fTWrHNw.png" /><figcaption>average revenue per month</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*xXOimWnZC4j8PvYUkOrcGA.png" /></figure><ul><li><strong><em>Average Revenue Per Product</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PCNn0JlqijrktupeiXFIzA.png" /><figcaption>average revenue per product</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*SHO5ShRG-bQ8Ee6O9UqCdQ.png" /></figure><ul><li><strong><em>Average Revenue Per Purchase Address</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bj4jnRSyCICBd0EllvCdBA.png" /><figcaption>average revenue per city</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*LoueKcXFFHsJ8hm2tV_mLQ.png" /></figure><ul><li><strong><em>Total Revenue per Month per Product</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fx0dKQzzYh4cV6PaznmRJg.png" /><figcaption>total revenue per month per product</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HfDHUimq9rSo8IVXjrDSiw.png" /></figure><ul><li><strong><em>Total Quantity sold per product</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j0PyDya0ZiIPWqxDs5fIZA.png" /><figcaption>total quantity sold per product</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*wygE89a9T5si5Cu5vPFxEw.png" /></figure><ul><li><strong><em>Total Quantity sold per Purchase Address</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OPc9HFjXFTY_3DY58Ml8eA.png" /><figcaption>total quantity sold per purchase address</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*Ko77saFx4zlZ9bSXXV6vpQ.png" /></figure><ul><li><strong><em>Total Quantity sold per Month</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5DQF9GRb1uw2u4grEC79XA.png" /><figcaption>total quantity sold per month</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*Xc6gepuyB6Z4sgEV062sFA.png" /></figure><ul><li><strong><em>Average Unit sale (number of orders) per Product</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QJv5MKzGZPYSXs8JKoVD9w.png" /><figcaption>average unit sale per product</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*Di7bSieywZemzKappAkgaA.png" /></figure><ul><li><strong><em>Average Unit sale per Purchase address</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N2RpFKfAUq_kS-atkD_tNQ.png" /><figcaption>average unit sale per purchase address</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*dPdppuhFeai7vfOkouC6Cg.png" /></figure><h4><strong>v. Share your Insight and make recommendations</strong></h4><p><strong>Business Questions Asked</strong></p><ol><li>Uncover trends and patterns for the 2019 sales year</li><li>The Accountant reported that we made loss in the month of April, May, June and July as compared to other month. Is this true? What happened? Show monthly sales performance</li><li>The Assistant manager suggested that we should place more marketing attention on the following cities — Los Angeles, New York, Atlanta, San Francisco and Seattle as they seem to generate more revenue. From the result of your analysis, do you agree with this? Should we proceed with the suggestion?</li></ol><p><strong>Data-Driven Insights and Recommendation</strong></p><p><em>The Visualisations were done using the tableau public app</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ppTakjZbhHoZtiCHfSzZdA.png" /><figcaption>The Revenue chart per month showed December as the highest performing month and january as the lowest. Also, increase in revenue in the second and fourth quarter</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RDFfN3AEtXzjAZyxc2FlEg.png" /><figcaption>The Macbook Pro Laptop, iPhone, ThinkPad Laptop and the Google Phone are on the top list of the products generating the most income for them.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uYvO13a-SUVMjtIc4ecciA.png" /><figcaption>Los Angeles, New York City, San Francisco are the stores where they generate the most revenue.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jmNlZk_cLxIZ541UMf25IA.png" /></figure><p><strong>Insight Summary</strong></p><ul><li>The total revenue generated for 2019 is 34,492,035.97</li><li>The total numbers of orders placed is 209,079</li><li>The Sales revenue started slow, increased gradually till the second quarter, then dropped towards the end of the second quarter until it spiked back in the fourth quarter where it peaked</li><li>The most sold product is the AAA Battery pack — 31, 017 and it generated the least revenue — 92,740.83</li><li>The Macbook Pro Laptop generated the most revenue.</li><li>December is the highest performing month generating 13.38% of the total revenue.</li><li>The best performing cities are New York, San Francisco, and Los Angeles</li></ul><p><strong>Recommendations</strong></p><ol><li>To optimise performance and prioritise product categories for enhancement, the business should concentrate on the most successful segments. The Products that exhibited exceptional performance include <strong>MacBook Pro Laptop, iPhone, ThinkPad Laptop, and Google Phone</strong>. Therefore, it’s recommended that they strategically expands its offerings within these categories while also enhancing the diversity of available products to cater to customer preferences.</li><li>Given the observed sales trend, focus marketing efforts during the<strong> peak seasons or quarters when sales tend to spike.</strong> Plan strategic promotions, campaigns, and product launches during these periods to leverage increased customer interest and buying behaviour.</li><li>Since the <strong>AAA Battery pack</strong> is the most sold but generates the least revenue, review the pricing strategy or explore ways to optimise the production cost or sourcing to increase profit margins. Simultaneously, ensure adequate inventory levels for high-demand products to meet customer needs promptly.</li><li>As New York, Los Angeles and San Francisco are the top-performing cities, allocate more resources towards targeted marketing campaigns in these locations. Tailor marketing strategies based on local preferences and behavior to enhance brand visibility and customer engagement.</li><li>Leverage the data on successful product categories and best-performing months to design loyalty programs or incentives for repeat customers. Offer personalized recommendations or exclusive deals to drive customer retention and increase lifetime value.</li><li>Continue leveraging data analytics to drive business decisions. Monitor sales trends, product performance, and geographical patterns regularly. Utilise predictive analytics to anticipate future trends and adjust strategies accordingly.</li><li>Explore collaborations with manufacturers or suppliers to develop exclusive products within the high-performing categories. Forge strategic alliances that can offer unique products, so as to stand out in the market.</li></ol><p><strong>Project Limitations</strong></p><ol><li>The dataset does not provide the cost price of the products to evaluate which product generates the most profit, and It lacks detail on customer demographics, specific product attributes, or detailed cost breakdowns, limiting a more comprehensive analysis.</li><li>The dataset does not include the cost of running the stores, and</li><li>The method of advertising wasn’t specified, also which products are prioritised in the marketing adverts.</li><li>The dataset lacks detailed product-level information, such as variations within product categories or the introduction of new products, which could impact sales performance.</li><li>The data is focused on specific geographic regions, potentially overlooking broader market trends or global factors impacting the business.</li><li>The dataset represents a sales data from the year 2019. Changes in market trends, customer behaviour, or product offerings after 2019 is not captured, affecting the relevance of recommendations.</li></ol><p>If you have recommendations, advise or tips, do not hesitate to send them across to me at donhalogen@gmail.com</p><p><strong>Connect with me Here -</strong></p><p><a href="https://www.linkedin.com/in/alimiibrahim/"><strong>Linkedin</strong></a></p><p><a href="https://twitter.com/WaleSwole"><strong>Twitter</strong></a></p><p><a href="https://github.com/donhalogen"><strong>GitHub</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf719c5eed20" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>