<?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 Onifade Omorolake on Medium]]></title>
        <description><![CDATA[Stories by Onifade Omorolake on Medium]]></description>
        <link>https://medium.com/@onifadeomorolake?source=rss-07fe50060d93------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Onifade Omorolake on Medium</title>
            <link>https://medium.com/@onifadeomorolake?source=rss-07fe50060d93------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 02:11:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@onifadeomorolake/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[Predicting Diabetes with Machine Learning: A Full Python Walkthrough]]></title>
            <link>https://medium.com/@onifadeomorolake/predicting-diabetes-with-machine-learning-a-full-python-walkthrough-d86a1069cb1a?source=rss-07fe50060d93------2</link>
            <guid isPermaLink="false">https://medium.com/p/d86a1069cb1a</guid>
            <category><![CDATA[google-colab]]></category>
            <category><![CDATA[healthcare-analytics]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Onifade Omorolake]]></dc:creator>
            <pubDate>Sat, 06 Jun 2026 08:01:03 GMT</pubDate>
            <atom:updated>2026-06-06T08:01:03.821Z</atom:updated>
            <content:encoded><![CDATA[<p>A step-by-step account of how I cleaned messy medical data and trained a Random Forest model that achieved 88.3% accuracy</p><p>Dataset: Pima Indian Women’s Diabetes Dataset | Source: Kaggle | Tools: Python</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nfBK2RmJcdd3jdcYxguKCQ.png" /></figure><p><strong>INTRODUCTION</strong></p><p>Every year, millions of people are diagnosed with Type 2 diabetes, many of them far too late for early intervention to make a real difference. The question I set out to answer with this project was simple: given a handful of basic medical measurements, can a machine learning model reliably predict whether a patient has diabetes?</p><p>This article walks through every stage of the project: data understanding, exploratory analysis, cleaning, statistical analysis, model building, and prediction. All code is in Python and fully reproducible.</p><p><strong>THE DATASET</strong></p><p>The dataset gotten from Kaggle contains diagnostic measurements for 768 female patients, all of Pima Indian heritage and at least 21 years old. The target variable, Outcome , indicates whether a patient was diagnosed with diabetes within five years.</p><p><strong>DATA DICTIONARY</strong></p><p>Understanding what each column measures is a non-negotiable before any analysis.</p><p>Pregnancies — The number of times the patient has been pregnant.</p><p>Glucose — Plasma glucose concentration (mg/dL) measured two hours into an oral glucose tolerance test (OGTT).</p><p>Blood Pressure — Diastolic blood pressure in mmHg — the lower number in a reading (e.g. 72 in “120/72”)</p><p>Skin Thickness — Triceps skinfold thickness in millimetres. This is a proxy measurement for subcutaneous body fat, which correlates with insulin resistance even when BMI appears normal.</p><p>Insulin — Two-hour serum insulin level ( µ U/mL) from the OGTT.</p><p>BMI — Body Mass Index, calculated as weight(kg) / height(m)². Obesity (BMI ≥ 30) is the single most important modifiable risk factor for Type 2 diabetes.</p><p>Diabetes Pedigree Function — A score ranging from 0.08 to 2.42 that models genetic risk based on family history and the closeness of diabetic relatives. Higher values indicate greater hereditary risk.</p><p>Age — Age in years (all patients ≥ 21). Risk of Type 2 diabetes rises with age as beta-cell function declines and peripheral insulin sensitivity drops.</p><p>Outcome — The target variable. 1 = diagnosed with diabetes within 5 years. 0 = not diagnosed</p><p><strong>Step 1 : Loading and First Inspection</strong></p><pre>import pandas as pd<br>import numpy as np<br>import matplotlib.pyplot as plt<br>import seaborn as sns<br><br>diabetes = pd.read_csv(&#39;diabetes.csv&#39;)<br>diabetes.info()<br>diabetes.describe().round(2)</pre><p>Running describe() on the raw data immediately revealed something important. The minimum value for Glucose, Blood Pressure, Skin Thickness, Insulin and BMI were all 0, which is medically impossible.</p><p>they are <strong>missing values disguised as zeros</strong>, entered as placeholders by the original researchers. Catching this early, before any analysis, was the most important thing I did in this entire project.</p><p><strong>Step 2: Understanding the Class Balance</strong></p><pre>diabetes[&#39;Outcome&#39;].value_counts()<br><br>sns.countplot(x=&#39;Outcome&#39;, data=diabetes)<br>plt.title(&quot;Distribution of Diabetic (1) vs Non-Diabetic (0)&quot;)<br>plt.show()</pre><p><strong>Result: 500 non-diabetic (65%) vs 268 diabetic (35%)</strong></p><p>This is a mild class imbalance. It matters because a model that simply predicts “No Diabetes” for every patient would score 65% accuracy while being medically worthless.</p><p><strong>Step 3: Data Cleaning: Fixing the Impossible Zeros</strong></p><p>This was the most critical step of the project.</p><p>These were the columns with missing values: Glucose (5), Blood Pressure (35), Skin Thickness (227), Insulin (374), BMI (11).</p><p>Nearly half of all insulin readings were missing. Deleting those rows was not an option because I would have lost half the dataset.</p><p><strong>My approach -two steps:</strong></p><p><strong>Step 1:</strong> Replace all zeros with NaN so Python knows these values are unknown, not real measurements.</p><p><strong>Step 2:</strong> Fill each missing value with the <strong>median of its outcome group, </strong>diabetic patients get the diabetic group’s median, non-diabetic patients get the non-diabetic group’s median.</p><pre>#step 1: Handle Zeros (Replace with NaN first, then impute)<br><br>cols_to_fix = [&#39;Glucose&#39;, &#39;BloodPressure&#39;, &#39;SkinThickness&#39;, &#39;Insulin&#39;, &#39;BMI&#39;]<br>diabetes[cols_to_fix] = diabetes[cols_to_fix].replace(0, np.nan)<br><br>print(diabetes.isnull().sum())<br><br># Step 2: fill with class-wise median<br>diabetes[cols_to_fix] = diabetes[cols_to_fix].fillna(<br>    diabetes.groupby(&#39;Outcome&#39;)[cols_to_fix].transform(&#39;median&#39;))<br><br># Verify — should all be 0<br>print(diabetes[cols_to_fix].isnull().sum())</pre><p>Why class-wise and not a single global median? Because the two groups have genuinely different biology. The median insulin level for non-diabetic patients is 102.5 µU/mL. For diabetic patients it is 169.5 µU/mL , a 65% difference. Blending those into one number would teach the model incorrect biology.</p><p><strong>Step 4: Exploratory Data Analysis</strong></p><p>I checked how features relate to each other and our final target variable by plotting a correlation matrix.</p><pre># 3. EDA: Correlation Heatmap<br>plt.figure(figsize=(10, 8))<br>sns.heatmap(diabetes.corr(), annot=True, cmap=&#39;coolwarm&#39;, fmt=&quot;.2f&quot;)<br>plt.title(&quot;Feature Correlation Heatmap&quot;)<br>plt.show()</pre><p>The heatmap confirmed Glucose has the strongest linear relationship with Outcome (r ≈ 0.49), followed by BMI and Age.</p><p><strong>Step 5: Building the Model</strong></p><p>Splitting the model</p><pre>from sklearn.model_selection import train_test_split<br>from sklearn.ensemble import RandomForestClassifier<br>from sklearn.metrics import classification_report, accuracy_score<br><br>X = diabetes.drop(&#39;Outcome&#39;, axis=1)<br>y = diabetes[&#39;Outcome&#39;]<br><br>X_train, X_test, y_train, y_test = train_test_split(<br>    X, y, test_size=0.2, random_state=42)</pre><p>I used an 80/20 train-test split.</p><p><strong>Why Random Forest?</strong></p><p>I chose Random Forest because it builds hundreds of decision trees on random subsets of the data and combines their votes, this approach is much more accurate than a single decision tree and handles the mixed feature types in this dataset well. It is also robust to outliers and requires minimal preprocessing.</p><pre>model = RandomForestClassifier(random_state=42)<br>model.fit(X_train, y_train)</pre><p><strong>Step 6: Evaluating the Model</strong></p><pre>predictions = model.predict(X_test)</pre><pre>score = accuracy_score(y_test, predictions)<br>print(f&quot;Accuracy: {score:.4f}&quot;)<br>print(classification_report(y_test, predictions,<br>      target_names=[&#39;No Diabetes&#39;, &#39;Diabetes&#39;]))</pre><p><strong>Accuracy: 88.3%</strong></p><p>The model correctly identified 83% of actual diabetic patients.</p><p><strong>Step 7: Predicting a New Patient</strong></p><p>With the model trained, I tested it on a completely new patient:</p><p>python</p><pre>individual_patient = pd.DataFrame(<br>    [[2, 120, 70, 20, 80, 25.5, 0.35, 30]],<br>    columns=features<br>)<br><br>prediction = model.predict(individual_patient)<br>print(&quot;Diabetic&quot; if prediction[0] == 1 else &quot;Healthy&quot;)</pre><p><strong>Output: Healthy</strong></p><p>A 30-year-old patient, 2 pregnancies, glucose of 120 (within normal range), BMI of 25.5 , the model predicts no diabetes. That result is clinically plausible given a glucose level comfortably below the pre-diabetic threshold.</p><p>One major thing I Learned,</p><p><strong>The data cleaning was the whole project.</strong> 48.7% of insulin values were missing, disguised as zeros. If I had fed those zeros directly to the model, it would have learned that insulin = 0 is associated with no diabetes which is simply wrong. The 88% accuracy I achieved was built on that cleaning work, not on the model choice.</p><p><em>Thanks for reading. If you found this walkthrough useful, follow me for more data analytics projects.</em></p><p><a href="https://colab.research.google.com/drive/1yp3Uk_urrkMBu6tmnwPADmp7ZDzgU2C1?usp=drive_link">Google Colab</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d86a1069cb1a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analyzing Cancer Trends with Power BI: From Data to Awareness]]></title>
            <link>https://medium.com/@onifadeomorolake/analyzing-cancer-trends-with-power-bi-from-data-to-awareness-b5b73dba060a?source=rss-07fe50060d93------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5b73dba060a</guid>
            <category><![CDATA[heaith-care-analytics]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[healthcare]]></category>
            <category><![CDATA[data-driven-decisions]]></category>
            <category><![CDATA[power-bi]]></category>
            <dc:creator><![CDATA[Onifade Omorolake]]></dc:creator>
            <pubDate>Thu, 19 Feb 2026 21:41:27 GMT</pubDate>
            <atom:updated>2026-02-19T21:41:27.579Z</atom:updated>
            <content:encoded><![CDATA[<p>United Arab Emirate Cancer Analysis Report by Omorolake Onifade</p><p>Every year on February 4th, the world observes World Cancer Day, a moment dedicated to raising awareness about prevention, early detection, and effective treatment.</p><p>Cancer is not a single disease but a group of conditions characterized by abnormal cell growth that can invade surrounding tissues and spread to other parts of the body. While medical advances continue to improve survival rates, one of the biggest challenges remains late diagnosis.</p><p>When I analyzed a UAE cancer dataset containing 10,000 patient records, one pattern stood out immediately:</p><p>A large proportion of patients were already diagnosed at Stage II and Stage III.</p><p>This finding reinforces a critical reality, early screening and routine medical checkups remain essential in improving outcomes.</p><p>This article walks through my end-to-end data analysis process, from cleaning and transformation to modeling, DAX calculations, and key insights uncovered using Power BI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fTBlaVcHZaBsp8CU-ZEWeQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FaFioSovtnRxftLXrlDZkA.png" /><figcaption>United Arab Emirate Cancer Analysis Report by Omorolake Onifade</figcaption></figure><p><strong>ANALYTICAL OBJECTIVE</strong></p><p>The primary goal of this project was to transform raw healthcare data into actionable insights that could help answer key questions such as:</p><ul><li>Who is most affected by cancer?</li><li>How early does patient treatment start?</li><li>How effective are treatment pathways?</li><li>What factors influence patient outcomes?</li></ul><p>The analysis aimed to demonstrate how data analytics can support public health decision-making and healthcare planning.</p><p><strong>DATA OVERVIEW</strong></p><p>The dataset (sourced from Kaggle) contains detailed records including:</p><p>· Patient demographics (age, gender, ethnicity, nationality)</p><p>· Cancer type and stage</p><p>· Treatment types</p><p>· Diagnosis and treatment timelines</p><p>· Patient outcomes</p><p>· Comorbidities and lifestyle factors</p><p>· Hospital records</p><p>With over 10,000 rows, the dataset provided an excellent opportunity for both technical analysis and healthcare insight generation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U4xz6XtVLJ__2kTPWz3izg.png" /></figure><p><strong>DATA PREPARATION AND CLEANING</strong></p><p>My first step was transforming raw data into an analysis-ready format using Power Query. Key steps carried out:</p><ul><li>Checked columns for null values.</li><li>Replaced missing categorical values where appropriate.</li></ul><p>Since BMI was not provided, I calculated it using the weight and height values provided:</p><pre>BMI = [Weight] / (([Height]/100) * ([Height]/100))</pre><p>Patients were then grouped into their BMI categories:</p><ul><li>Underweight (&lt; 18.5)</li><li>Normal (18.5–24.9)</li><li>Overweight (25–29.9)</li><li>Obese (≥ 30)</li></ul><p>This classification enabled health outcome comparisons across weight groups.</p><p><em>CALCULATING TREATMENT DELAY</em></p><p>To evaluate healthcare efficiency, I calculated the time between the diagnosis date and the Treatment Start Date.</p><p>This metric revealed an average delay of: <strong>89.35 days</strong></p><p><em>DAX MEASURES</em></p><p><strong>Recovery Rate: </strong>Calculated by dividing the count of recovered patients by the total patient count.</p><pre>Recovery Rate =<br>DIVIDE(<br>    CALCULATE(<br>        COUNT(&#39;CancerData&#39;[Patient_ID]),<br>        &#39;CancerData&#39;[Outcome] = &quot;Recovered&quot;<br>    ),<br>    [Total Patients]<br>)</pre><p><strong>Mortality Rate: </strong>Calculated by dividing the count of deceased patients by the total patient count.</p><pre>Mortality Rate =<br>DIVIDE(<br>    CALCULATE(<br>        COUNT(&#39;CancerData&#39;[Patient_ID]),<br>        &#39;CancerData&#39;[Outcome] = &quot;Deceased&quot;<br>    ),<br>    [Total Patients]<br>)</pre><p><strong>DATA VIZUALIZATION</strong></p><p>This project followed a question-driven analytics framework, where each visualization was built to answer a specific healthcare or demographic question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fTBlaVcHZaBsp8CU-ZEWeQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FaFioSovtnRxftLXrlDZkA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FFQdyOHje6HwjLbMbpP9lw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QLfRyyqdMwHPXygaTF5Yiw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ue0IE-deWDUj2SMhGdeFA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NerBeF3YU6VPHXOlXPpooQ.png" /><figcaption>SIX Pages UAE Cancer Analysis Report</figcaption></figure><p><strong>KEY INSIGHTS GOTTEN FROM ANALYSIS</strong></p><p><strong><em>Demographics</em></strong></p><ul><li>The gender distribution was nearly equal, with females making up <strong>49.85%</strong> and males <strong>48.27%</strong>.</li><li>The majority of patients were Emirati nationals (<strong>5,920</strong>) compared to Expatriates (<strong>4,080</strong>).</li><li>There was strong ethnic diversity across five major groups, including South Asian, African, Arab, European, and East Asian.</li></ul><p><strong><em>Cancer Prevalence</em></strong></p><p>The most common cancers included <strong>Leukemia (1,314 cases)</strong>, <strong>Liver cancer (1,263)</strong>, <strong>Ovarian cancer (1,259)</strong>, and <strong>Pancreatic cancer (1,243)</strong>. Leukemia and liver cancer appeared consistently across all ethnic groups.</p><p><strong><em>Healthcare System Performance</em></strong></p><ul><li>The average treatment delay was <strong>89.35 days</strong>.</li><li>Variation across hospitals was minimal, indicating relatively consistent healthcare response times.</li></ul><p><strong><em>Treatment Patterns</em></strong></p><p>Treatment approaches varied significantly by stage:</p><ul><li>Surgery dominated in Stages II and III.</li><li>Immunotherapy was more common in Stages I and IV. This reflects adaptive treatment strategies tailored to the severity of the disease.</li></ul><p><strong><em>Patient Outcomes</em></strong></p><ul><li>Recovery Rate: 49%.</li><li>Mortality Rate: 10%.</li><li>The remaining patients were still under treatment. Major contributing causes of death included Cancer complications and Cardiovascular disease.</li></ul><p><strong><em>High-Risk Cancer Types</em></strong></p><p>The highest mortality rates were observed in Pancreatic and Lung cancers. Conversely, the highest recovery rates were seen in Colorectal cancer and Leukemia.</p><p><strong><em>Data Trend Observation</em></strong></p><p>A significant drop in patient records occurred between 2023 and 2024. Possible reasons include changes in reporting systems, the dataset coverage ending, or incomplete data capture. This highlights a critical lesson: consistent data collection is essential for effective public health monitoring.</p><p><strong>HEALTHCARE INSIGHTS</strong></p><ul><li><strong>Early Detection</strong>: It remains critical for survival. Regular checkups can catch abnormal cell growth before it reaches advanced stages.</li><li><strong>Timely Treatment</strong>: Minimizing delays between diagnosis and the start of treatment is essential.</li><li><strong>Lifestyle Factors</strong>: Weight management and avoiding smoking influence recovery chances.</li><li><strong>Data-Driven Decisions</strong>: Insights from such datasets can support policy decisions to improve screening programs.</li></ul><p>This analysis goes beyond dashboards, it tells a story about patients, healthcare systems, and the urgent need for awareness, early detection, and timely treatment.</p><p>As data analysts, our role is not just to build visuals, but to transform data into meaningful insights that can drive real-world impact.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5b73dba060a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Sales Performance Dashboard in Power BI]]></title>
            <link>https://medium.com/@onifadeomorolake/building-a-sales-performance-dashboard-in-power-bi-12b5689a3f2c?source=rss-07fe50060d93------2</link>
            <guid isPermaLink="false">https://medium.com/p/12b5689a3f2c</guid>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Onifade Omorolake]]></dc:creator>
            <pubDate>Wed, 04 Feb 2026 14:57:07 GMT</pubDate>
            <atom:updated>2026-02-04T14:57:07.116Z</atom:updated>
            <content:encoded><![CDATA[<p>A project done by Onifade Omorolake</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*4mkijuAzKNQ6aM0hy-NdGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*2Qb2s8W4tAsJTBeNFrYV0Q.png" /></figure><p><strong>INTRODUCTION</strong></p><p>As part of my <strong>one-month internship with Foresight BI</strong>, I worked on an end-to-end <strong>Power BI sales performance reporting project</strong> for a fictional pharmaceutical manufacturing company, <strong>Forggith Pharmaceuticals</strong>.</p><p>This project focused on transforming raw sales and target data into <strong>actionable business intelligence</strong>, using proper data modeling, DAX calculations, and interactive dashboards.</p><p>In this article, I document:</p><p>The business problem</p><p>My data modeling approach</p><p>Key DAX calculations</p><p>Insights derived from the dashboard</p><p><strong>BUSINESS CONTEXT &amp; PROBLEM STATEMENT</strong></p><p><strong>Forggith Pharmaceuticals</strong> manufactures medical products and distributes them through third-party distributors. While the company does not sell directly to retailers or end users, its Sales and Marketing team<strong>s</strong> actively influence market penetration.</p><p>The business needed to:</p><ul><li>Track Revenue and Volume performance over time</li><li>Compare Actual performance vs Targets</li></ul><p>Monitor sales at multiple levels:</p><ul><li>Sales representatives</li><li>Sales teams</li><li>Products and product classes</li><li>Channels and locations</li></ul><p>Support decision-making for:</p><ul><li>Sales representatives</li><li>Team managers</li><li>Executive leadership</li></ul><p>However, the available data was fragmented and lacked standardized KPIs and time-intelligence metrics.</p><p><strong>DATA OVERVIEW</strong></p><p>Two primary datasets were provided:</p><p>1. Sales Dataset</p><p>This contained actual performance data, including:</p><ul><li>Quantity sold, Date, Product, Channel, Location, Employees.</li></ul><p>2. Targets Dataset</p><p>This contained planned targets, including:</p><ul><li>Product, sales representative ID, Date(month and Year), Target volume.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*VERIrh_VE7w07xsemRRdqQ.png" /><figcaption>Target Dataset</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*w-blA86hkCEjU_Wd64TUZA.png" /><figcaption>Sales Dataset</figcaption></figure><p><strong>DATA PREPARATION AND MODELING</strong></p><p>Data preparation was performed entirely in <strong>Power Query</strong>, ensuring consistency, scalability, and analytical accuracy.</p><p>The sales data was provided across multiple tables representing different periods:</p><ul><li>Sales 2022</li><li>Sales 2023–2025</li></ul><p>Although they represented different time periods, both tables contained the same structure and level of granularity.</p><p>Steps Taken:</p><p>Verified that both tables had:</p><ul><li>Matching column names</li><li>Consistent data types</li><li>The same level of granularity (transaction-level sales data)</li></ul><p>Used Append Queries in Power Query to combine Sales 2022 and Sales 2023–2025 and this resulted in a single consolidated Sales fact table.</p><p><strong>Consolidating Channel and Sub-Channel Tables:</strong></p><p>The dataset contained two related dimension tables:</p><ul><li>Channel</li><li>SubChannel</li></ul><p>Both tables described attributes of the same business concept and were therefore consolidated.</p><p>Steps Taken:</p><ul><li>Reviewed the structure and attributes of both tables, used Append Queries to combine:</li><li>Channel</li><li>SubChannel</li></ul><p>Thereby, Creating a unified DimChannel table containing all channel-related attributes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/1*x4L5wiRWIIcd2tH3JXdUVw.png" /><figcaption>Datasets after cleaning</figcaption></figure><p><strong>Date Table Creation Using CALENDARAUTO:</strong></p><p>To support time-based analysis, a Date table was created using <strong>CALENDARAUTO()</strong>, which automatically generates a continuous date range based on the minimum and maximum dates found in the model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vsy78FKIxgZpqC-0PZuDCg.png" /><figcaption>Date Table Creation</figcaption></figure><p>The Month Name column was sorted by Month Number to ensure correct chronological ordering in slicers and visuals.</p><p><strong>DAX CALCULATIONS</strong></p><pre>TOTAL REVENUE = <br>SUMX(ActualSales,ActualSales[Quantity] * RELATED(DimProducts[ProductPrice]))</pre><pre>TOTAL TARGET =<br>SUMX(Targets,Targets[TargetQty] * RELATED(DimProducts[ProductPrice]))</pre><pre>Total Revenue YTD =<br>TOTALYTD([Total Revenue], Calender[Date])</pre><pre>TOTAL REVENUE SPLY = <br>CALCULATE([Total Revenue], SAMEPERIODLASTYEAR(Calender[Date]))</pre><pre>Revenue PY YTD = <br>CALCULATE (<br>   [Total Revenue YTD],<br>   SAMEPERIODLASTYEAR ( Calender[Date] )<br>)</pre><pre>TARGET YTD = <br>TOTALYTD (<br>   [Total Target],<br>   Calender[Date]<br>)</pre><pre>Revenue Previous Month = <br>CALCULATE (<br>   [Total Revenue],<br>   PREVIOUSMONTH ( Calender[Date] )<br>)</pre><pre>REVENUE MOM% =<br>DIVIDE (<br>   [Total Revenue] - [Revenue Previous Month],<br>   [Revenue Previous Month],<br>   0<br>)</pre><pre>TARGET ACHIEVEMENT% =<br>DIVIDE([Total Revenue], [TOTAL TARGET], 0)</pre><p><strong>DATA MODELING</strong></p><p>A star schema was implemented to improve performance and analytical clarity.</p><p>Model Structure:</p><p><strong>Fact tables</strong>: Sales, Targets</p><p><strong>Dimension tables</strong>:</p><ul><li>Calender</li><li>Products</li><li>Employees</li><li>Channels</li><li>Locations</li></ul><p>A dedicated Date table was created and marked as the official date table to support time-intelligence calculations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*xbUv0BRVJiGQv76-ShiGAw.png" /><figcaption>Star schema Data Modeling</figcaption></figure><h3>Dashboard Design &amp; Reporting</h3><p>The final Power BI report consisted of two pages each of:</p><ul><li><strong>Sales Performance Dashboard</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*2Qb2s8W4tAsJTBeNFrYV0Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*947a1dY1MQF3VzOJYUNRGg.png" /></figure><ul><li><strong>Marketing Performance Dashboard</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*XKOwqzyOXYgqaE198ODCYg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*4mkijuAzKNQ6aM0hy-NdGw.png" /></figure><p>Visuals included KPI cards, trend analysis, performance matrices, and geographic distribution maps, all styled using the company’s branding guidelines.</p><p><strong>KEY INSIGHTS GENERATED</strong></p><ul><li>Clear identification of high- and low-performing sales representatives</li><li>Detection of high-volume but low-revenue products</li><li>Visibility into monthly trends and seasonality</li><li>Improved monitoring of target achievement across teams and products</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12b5689a3f2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Customer Churn Analysis]]></title>
            <link>https://medium.com/@onifadeomorolake/customer-churn-analysis-816f49421980?source=rss-07fe50060d93------2</link>
            <guid isPermaLink="false">https://medium.com/p/816f49421980</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[microsoft-excel]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Onifade Omorolake]]></dc:creator>
            <pubDate>Thu, 20 Nov 2025 17:52:00 GMT</pubDate>
            <atom:updated>2025-11-20T17:52:00.276Z</atom:updated>
            <content:encoded><![CDATA[<p>An Analysis of customers in a multinational Organization by Onifade Omorolake.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EyfVn-BeC0MkQ9D1an77xg.png" /><figcaption>Dashboard: Visualization of Customer Analysis in a Multinational Organization</figcaption></figure><p>INTRODUCTION</p><p>This dataset focuses on customer behavior analysis in a multinational organization. It includes customers from three countries: France, Germany, and Spain. The primary objective of the analysis is to determine customer retention and churn patterns across these regions.</p><p>Specifically, the study explores:</p><ul><li>Customer Retention vs. Customer Churn:<br> Identifying the number of customers who remained with the organization versus those who left.</li><li>Country-Based Influence:<br> Evaluating whether a customer’s country of residence (France, Germany, or Spain) has a significant impact on their likelihood of staying or leaving.</li><li>Age Group Influence:<br> Analyzing how different age groups behave in terms of retention and churn.</li><li>Customer–Organization Relationship Factors:<br> Investigating organizational relationship variables (such as credit score).</li></ul><p>DATA SOURCE</p><p>This data was gotten from a project done at Rx hub Academy.</p><p>DATA DESCRIPTION</p><p>The dataset contained 10,000 rows and 14 columns, comprising variables such as Row Number, Customer ID, Surname, Credit Score, Geography, Gender, Age, Tenure (years spent with the organization), Balance, Number of Products, Credit Card Status, Activity Status, Estimated Salary, and Exited, with most fields represented as numerical data types.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fUwodJ5MKxrZBTgo84kYrQ.png" /></figure><p>DATA CLEANING/ TRANSFORMATION</p><ul><li>The data was loaded into Microsoft Excel as a CSV file and converted into an Excel workbook file.</li><li>The data was converted into a table and loaded into Power Query.</li><li>Columns that were not relevant to the analysis Row Number, Customer ID, and Surname were removed.</li><li>Each column was checked for errors, such as blank spaces or incorrect spellings</li><li>A new Age Classification column was created, grouping customers into Millennials (18–29), Gen Z (30–59), and Adults (60 and above).</li><li>In the Credit Card column, the value 1 was replaced with <em>“Has credit card”</em> and 0 with <em>“Doesn’t have credit card.”</em></li><li>In the Active Member column, 1 was replaced with <em>“Active member”</em> and 0 with <em>“Inactive member.”</em></li><li>In the Exited column, 1 was replaced with <em>“Exited”</em> and 0 with <em>“Still a customer.”</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7SbRw74fi82j8zxBo0yFDg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UiGWxNNKH68hfqNi77ucCg.png" /><figcaption>The data set before and after cleaning.</figcaption></figure><p>ANALYSIS</p><p>A total of 10,000 customer<strong>s</strong> were analyzed, with an average age of 39 years and an average tenure of 5 years. The dataset contained two gender categories Male and Female, with 4,543 females and 5,457 males, representing approximately 45% female and 55% male.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/233/1*Z0kgSrWMMEi8hm3frD8yXg.png" /><figcaption>Customer population by Gender</figcaption></figure><p>In terms of geographic distribution, France had the largest customer population with 5,014 customers, followed by Germany with 2,509, and Spain with 2,477. Out of the total population, 2,037 customers had churned, while 7,963 remained active.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*dYw55zWbGwRPSPiE6ehlTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*fEoOkbvIw4aeY2go6IUo2A.png" /></figure><p>Country-level churn analysis revealed that nearly half of the customers in Germany had left the organization, indicating a notable retention issue in that region. Conversely, France and Spain recorded higher numbers of active customers, suggesting better retention rates in those countries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/1*rLCkBk2IkWJPdIBekVczDg.png" /></figure><p>Analysis of churned customer by age group shows that we have a higher percentage of millenials and Gen Zs as customers. This suggests that retention strategies and marketing campaigns should be targeted more toward Millennials and Gen Z, as they represent the largest and most at-risk customer segments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*1WY3SbaSQA8r6OdUYfvVQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/260/1*6B7tN_SWjRnQMkC-NDapSQ.png" /></figure><p>RECOMMENDATIONS</p><ol><li><strong>Targeted Retention Campaigns</strong></li></ol><ul><li>Focus marketing and customer engagement strategies on Millennials and Gen Z, as they constitute the largest proportion of churned customers.</li><li>Tailor messaging, offers, and loyalty programs to the preferences of these younger groups.</li></ul><p><strong>2. Germany-Specific Interventions</strong></p><ul><li>Conduct a deeper assessment of customer experience and service quality in Germany.</li><li>Strengthen customer support, improve product offerings, and consider localized campaigns to reduce churn in this region.</li></ul><p><strong>3. Regularly track early signs of disengagement, such as reduced usage or inactivity , to intervene before customers churn.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EyfVn-BeC0MkQ9D1an77xg.png" /><figcaption>Dashboard: Visualization of Customer Analysis in a Multinational Organization</figcaption></figure><p>Tools used: Microsoft Excel</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=816f49421980" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>