<?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 Leonard Bagos on Medium]]></title>
        <description><![CDATA[Stories by Leonard Bagos on Medium]]></description>
        <link>https://medium.com/@leonardbagos9?source=rss-9ea2e6706770------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*cgKZtzyqx_bTft-3B2m0tg.jpeg</url>
            <title>Stories by Leonard Bagos on Medium</title>
            <link>https://medium.com/@leonardbagos9?source=rss-9ea2e6706770------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 16:57:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@leonardbagos9/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[Analyzing Impacts of Daily Commuting in NCR, Philippines using Python Machine Learning]]></title>
            <link>https://medium.com/@leonardbagos9/analyzing-impacts-of-daily-commuting-in-ncr-philippines-using-python-machine-learning-09402240b506?source=rss-9ea2e6706770------2</link>
            <guid isPermaLink="false">https://medium.com/p/09402240b506</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Leonard Bagos]]></dc:creator>
            <pubDate>Sat, 25 Nov 2023 16:16:23 GMT</pubDate>
            <atom:updated>2023-11-25T16:16:23.077Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Abstract:</strong> <em>Predicting the impacts of daily commuting and gauging commuter satisfaction though Data Science, encompassing statistical analysis with Excel, feature engineering via SQL, and machine learning implemented with Python</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ogQJFT50-AFOAl6UOjBkHw.jpeg" /></figure><blockquote><strong>INTRODUCTION</strong></blockquote><p>The National Capital Region (NCR) in the Philippines is grappling with the consequences of rapid urbanization and dense population, particularly evident in the daily commuting experiences of millions of residents. This intricate web of commuting, involving diverse transportation modes, has evolved into a complex phenomenon, significantly impacting the lives of NCR inhabitants.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*-UGPVvJTGZR2RGUCuiAr0g.png" /></figure><p>As the NCR continues to grow, understanding the far-reaching impacts of daily commuting on aspects such as traffic, environment, and economy is crucial for crafting effective solutions to benefit the region’s residents.</p><blockquote><strong>OBJECTIVES</strong></blockquote><p>Facing the growing problems of traffic congestion, extended travel durations, mental adjustments, and health considerations, the focus of this analysis centers around three main goals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*IrzrZXdrgg0FrK2r2rFIdw.png" /></figure><blockquote><strong>METHODOLOGY AND ANALYSIS</strong></blockquote><p>This analysis is structured to comprehend the impacts of daily commuting in the National Capital Region (NCR) of the Philippines. It follows various steps to examine the experiences, challenges, and effects of daily commuting in this region.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*jCKHHZPbxqotdkMOviKVpQ.png" /></figure><p>The analysis utilizes the Data Analysis Tool pack in Microsoft Excel, which incorporates various statistical techniques.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*ZAwHEl56uQqB3BwHxWu4Ew.png" /></figure><p>To enhance the analysis, technical improvements are made to the raw data using PostgreSQL. In PostgreSQL, the focus is on feature engineering, preparing the data for machine learning in Python.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*KlI0G5o-3M1m3adBiyAOuQ.png" /></figure><blockquote><strong>RESULTS AND DISCUSSIONS</strong></blockquote><p>In this section, we unveil the insights garnered from our analysis, offering a condensed overview of key findings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IxcKxo42nJi3Vqx-zb---g.png" /></figure><p>The findings highlight a significant dissatisfaction rate, with a striking 80% of the 40 respondents expressing discontent with the current transport system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*hUUKdLCbTcCZPa_iepGDIA.png" /></figure><p>Additionally, the study identifies four key impacts of commuting: Unbalanced Life and Time, Less Productivity and Tardiness, Exhaustion or Low Energy, and Health Risks. Notably, ‘Unbalanced Life and Time’ emerges as the most prominent concern, while only a small portion, 3%, express concerns about health risks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*PK6Xba7ey-uKqgIfGyReTw.png" /></figure><p>Among the notable findings, ‘Unbalanced Life and Time’ emerges as strongly correlated to exhaustion or low energy, overall satisfaction, and the rating score of commuters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Z2GvEAwhtCeVIQo3W-MruA.png" /></figure><p>The findings reveal that factors such as gender, transport modes, number of trips, and distance traveled have minimal impact on overall satisfaction levels. However, a crucial revelation emerges as the time spent commuting significantly influences satisfaction.</p><p><em>We will not focus on the results of our statistical analysis here. But you can check the detailed discussion here. (</em><a href="https://drive.google.com/file/d/1BEuqSDbKvQw2gI7ONG3dhMlA6QT3tGIk/view?usp=sharing"><em>result&amp;findings.pdf</em></a><em>)</em></p><blockquote><strong>Feature Engineering in SQL</strong></blockquote><p>In the feature engineering phase conducted in SQL, we implemented various techniques to enhance the data’s suitability for machine learning in Python. Here is a summary of the key feature engineering steps:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*0wTaQlqZT-T2hUopHCaRaA.png" /></figure><p>As a result of these feature engineering techniques, the dataset was enriched with 19 features, providing a diverse set of inputs for machine learning models.</p><p>Now, we will discuss the most important part of the study.</p><h3><strong>Machine Learning using Python</strong></h3><p>In this section, we undertake a binary classification task to predict the satisfaction level of commuters. This involves the following steps:</p><ol><li>Perform an exploratory analysis (scaling, PCA, unbalanced)</li><li>Split the data (train, validation, test)</li><li>Perform 10-fold cross-validation and grid search.</li><li>Compare the different classification methods (Logistic Regression, K-Nearest Neighbors, Support Vector Machines, Random Forest, XGBoost)</li><li>Show evaluation metrics (ROC-AUC, accuracy, F1 score)</li></ol><p>First, import the required packages and the dataset.</p><pre>##First, Import the required packages<br>import pandas as pd<br>import seaborn as sns<br>import numpy as np<br>import matplotlib.pyplot as plt<br><br>##For Scaling and Transformation<br>from sklearn.preprocessing import StandardScaler<br>from sklearn.decomposition import PCA<br><br>##For Training <br>from sklearn.model_selection import train_test_split, cross_val_score, GridSearchCV, StratifiedKFold<br>from tqdm import tqdm<br><br>##For Classification<br>from sklearn.linear_model import LogisticRegression<br>from sklearn.svm import SVC<br>from sklearn.ensemble import RandomForestClassifier<br>from xgboost import XGBClassifier<br>from sklearn.neighbors import KNeighborsClassifier<br><br>##For Evaluation<br>from sklearn.metrics import roc_auc_score, accuracy_score, f1_score<br>from sklearn.metrics import confusion_matrix</pre><pre>##Import the dataset<br><br>df = pd.read_csv(&#39;commutesurvey.csv&#39;)<br>df.columns<br>def als_split_data(df):<br>    output = df[&#39;satisfied&#39;]<br>    features = pd.DataFrame(data=df)<br>    cols = [&#39;id&#39;, &#39;satisfied&#39;]<br>    for col in cols:<br>        if col in features.columns:<br>            features = features.drop(col, axis=1)<br>    return output, features<br>output, features = als_split_data(df)<br>df.head()</pre><p>The above is an example of what the dataset looks like. Below is a statistical description of the 19 dataset features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*bYWM_VZUJ0JskhaeCFVQbQ.png" /></figure><pre>display(features.describe())</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*u7GB8l8JFioOfrK344t48Q.png" /></figure><p>Visualize the distribution statistics; apply appropriate data preprocessing steps.</p><pre>fig, axes = plt.subplots(4, 5, figsize=(10, 10))<br><br>axes = axes.flatten()<br><br><br>for i, col in enumerate(features):<br>    sns.histplot(df[col], kde=True, ax=axes[i])<br>    axes[i].set_title(col)<br><br><br>for j in range(i+1, 10):<br>    fig.delaxes(axes[j])<br><br>plt.tight_layout()<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*pNYQ5mAB591OHePuH3zaHg.png" /></figure><p>Visualizing feature correlations.</p><pre>plt.figure(figsize=(12, 10))<br>sns.heatmap(features.corr(), cmap=&#39;RdYlGn&#39;, annot=True, fmt=&#39;.2f&#39;) <br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*ofmOJbSXk1AKCqYl8c0V_Q.png" /></figure><p>Below is the distribution of Satisfied column after preprocessing.</p><pre>colors = [&#39;red&#39;, &#39;green&#39;]<br><br>plt.figure(figsize=(6, 4))<br>df[&#39;satisfied&#39;].value_counts().plot(kind=&#39;bar&#39;, color=colors, edgecolor=&#39;black&#39;)<br>plt.title(&#39;Distribution of Satisfaction&#39;)<br>plt.xlabel(&#39;Satisfaction&#39;)<br>plt.ylabel(&#39;Frequency&#39;)<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*cfMtZKSpRDN2bfi8UI0gHQ.png" /></figure><p>Feature transformation by PCA.</p><pre>from sklearn.preprocessing import StandardScaler<br>from sklearn.decomposition import PCA<br><br>X = df.drop(&#39;satisfied&#39;, axis=1)<br>y = df[&#39;satisfied&#39;]<br><br># Scale the features<br>scaler = StandardScaler()<br>X_scaled = scaler.fit_transform(X)<br><br># Apply PCA<br>pca = PCA(n_components=16)<br>X_pca = pca.fit_transform(X_scaled)<br><br>plt.figure(figsize=(10, 6))<br>plt.plot(range(1, len(pca.explained_variance_ratio_)+1), pca.explained_variance_ratio_.cumsum())<br>plt.title(&#39;Cumulative Explained Variance&#39;)<br>plt.xlabel(&#39;Number of Principal Components&#39;)<br>plt.ylabel(&#39;Cumulative Explained Variance&#39;)<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*CYq_JIzpBUK6SdTPu1BRUQ.png" /></figure><p>The above graph indicates that 100% of variance in the data can be achieved with just 16 dimensions instead of the 19 features.</p><pre>plt.figure(figsize=(10, 6))<br>plt.scatter(X_pca[:, 0], X_pca[:, 1], c=y, cmap=&#39;viridis&#39;)<br>plt.xlabel(&#39;First Principal Component&#39;)<br>plt.ylabel(&#39;Second Principal Component&#39;)<br>plt.title(&#39;PCA - First Two Principal Components&#39;)<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*46-MrIqsnu72ZbmV_Tgmyw.png" /></figure><p>As can be seen from the above plots, quite a good classification is achieved with just 2 dimensions.</p><p><strong>Train, Validate and Test</strong></p><pre>from sklearn.model_selection import train_test_split, cross_val_score, GridSearchCV<br><br><br># Split the data into training and testing sets<br>X_train, X_test, y_train, y_test = train_test_split(X_pca, y, test_size=0.2, random_state=42)<br><br>X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)</pre><p>Showing the train and test scores:</p><pre>models = {<br>    &#39;Logistic Regression&#39;: LogisticRegression(solver=&#39;liblinear&#39;),<br>    &#39;KNN&#39;: KNeighborsClassifier(n_neighbors=7),<br>    &#39;SVM&#39;: SVC(),<br>    &#39;Random Forest&#39;: RandomForestClassifier(n_estimators=1, random_state=0),<br>    &#39;XGBoost&#39;: XGBClassifier(gamma=0, learning_rate=0.1, n_estimators=10, n_jobs=1, nthread=None, objective=&#39;binary:logistic&#39;, random_state=0)<br>}<br><br>results = {&#39;Model&#39;: [], &#39;Train Score&#39;: [], &#39;Test Score&#39;: []}<br><br>##Some of the codes were removed for copyright purposes and intellectual property<br><br>plt.xlabel(&#39;Models&#39;)<br>plt.ylabel(&#39;Scores&#39;)<br>plt.title(&#39;Train and Test Scores of Different Models&#39;)<br>plt.xticks([i + bar_width / 2 for i in index], models)<br>plt.legend()<br>plt.tight_layout()<br><br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*Fg9Lij_REwdsHw_ZY9-9eQ.png" /></figure><p>Among the classifiers, <strong>Random Forest</strong> exhibited the highest training score, reaching 0.9, showcasing its proficiency in capturing patterns within the training data. However, when assessed on the test set, Logistic Regression and XGBoost emerged as the top performers, both achieving an accuracy of 0.85.</p><p><strong>Cross Validation and Grid Search</strong></p><pre>models = [<br>    {&#39;name&#39;: &#39;Logistic Regression&#39;, &#39;model&#39;: LogisticRegression(solver=&#39;liblinear&#39;), &#39;params&#39;: {&#39;C&#39;: [0.1, 1, 10]}},<br>    {&#39;name&#39;: &#39;Support Vector Machines&#39;, &#39;model&#39;: SVC(), &#39;params&#39;: {&#39;C&#39;: [0.1, 1, 10], &#39;gamma&#39;: [0.1, 1, 10]}},<br>    {&#39;name&#39;: &#39;Random Forest&#39;, &#39;model&#39;: RandomForestClassifier(), &#39;params&#39;: {&#39;n_estimators&#39;: [100, 200, 300], &#39;max_depth&#39;: [None, 5, 10]}},<br>    {&#39;name&#39;: &#39;XGBoost&#39;, &#39;model&#39;: XGBClassifier(use_label_encoder=False, eval_metric=&#39;logloss&#39;), &#39;params&#39;: {&#39;n_estimators&#39;: [100, 200, 300], &#39;max_depth&#39;: [3, 5, 7]}},<br>    {&#39;name&#39;: &#39;KNN&#39;, &#39;model&#39;: KNeighborsClassifier(), &#39;params&#39;: {&#39;n_neighbors&#39;: [3, 5, 7]}}  # KNN added to models<br>]<br><br># Perform 10-fold cross-validation and grid search for all models<br>## Some codes were removed here<br>    m[&#39;best_score&#39;] = grid.best_score_<br>    m[&#39;best_params&#39;] = grid.best_params_<br><br>for m in models:<br>    print(f&quot;Model: {m[&#39;name&#39;]}\nBest Score = {m[&#39;best_score&#39;]}\nBest Params = {m[&#39;best_params&#39;]}\n{&#39;=&#39; * 30}&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*CWn_enie0jZVfkmFEZxdvg.png" /></figure><p>Now, we can compare and evaluate the metrics for each models.</p><p><strong>Comparison and Evaluation</strong></p><pre># Define the parameters for each model<br>logreg_params = {&#39;solver&#39;:&#39;liblinear&#39;,&#39;C&#39;: 10} <br>knn_params = {&#39;n_neighbors&#39;: 7}   <br>svc_params = {&#39;C&#39;: 10, &#39;gamma&#39;: 0.1}  <br>forest_params = {&#39;n_estimators&#39;: 300, &#39;max_depth&#39;: 10}  <br>xg_reg_params = {&#39;max_depth&#39;: 3, &#39;n_estimators&#39;: 200} <br><br># Initialize the models with defined parameters<br>logreg = LogisticRegression(**logreg_params)<br>knn = KNeighborsClassifier(**knn_params)<br>svc = SVC(**svc_params)<br>forest = RandomForestClassifier(**forest_params)<br>xg_reg = XGBClassifier(**xg_reg_params)<br> <br><br>model_test_data_dict = {<br>    &#39;Logistic Regression&#39;: (logreg, X_test, y_test),<br>    &#39;KNN&#39;: (knn, X_knntest, y_knntest),<br>    &#39;SVM&#39;: (svc, X_test, y_test),<br>    &#39;Random Forest&#39;: (forest, X_test, y_test),<br>    &#39;XGBoost&#39;: (xg_reg, X_test, y_test)<br>}</pre><pre>metrics = [&#39;ROC-AUC&#39;, &#39;Accuracy&#39;, &#39;F1-Score&#39;]<br>values = {model_name: {metric: [] for metric in metrics} for model_name in model_test_data_dict}<br><br>for model_name, (model, X_test, y_test) in model_test_data_dict.items():<br>    y_pred = model.predict(X_test)<br>    values[model_name][&#39;ROC-AUC&#39;] = roc_auc_score(y_test, y_pred)<br>    values[model_name][&#39;Accuracy&#39;] = accuracy_score(y_test, y_pred)<br>    values[model_name][&#39;F1-Score&#39;] = f1_score(y_test, y_pred)<br><br>fig, ax = plt.subplots(figsize=(10, 6))<br><br>bar_width = 0.1<br>index = range(len(metrics))<br><br>for i, (model_name, scores) in enumerate(values.items()):<br>    bars = plt.bar([x + i * bar_width for x in index], list(scores.values()), bar_width, label=model_name)<br>    for bar in bars:<br>        plt.text(bar.get_x() + bar.get_width() / 2, bar.get_height(), f&#39;{bar.get_height():.2f}&#39;, ha=&#39;center&#39;, va=&#39;bottom&#39;)<br><br>plt.xlabel(&#39;Metrics&#39;)<br>plt.ylabel(&#39;Scores&#39;)<br>plt.title(&#39;Evaluation Metrics for Different Models&#39;)<br>plt.xticks([i + bar_width for i in index], metrics)<br><br>plt.legend(loc=&#39;center left&#39;, bbox_to_anchor=(1, 0.5))<br>plt.tight_layout()<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*4jSIaI6Kcsp7oFjTZngU-Q.png" /></figure><p>The model evaluation results suggest that XGBoost is the most promising model for this classification task, displaying superior performance across multiple metrics. The best model is XGBoost, as it has the highest ROC-AUC (0.83), indicating better ability to distinguish between classes. XGBoost has the highest F1-Score (0.67), which is important if you want a balance between precision and recall. We also compare them through confusion matrices.</p><pre>metrics = [&#39;ROC-AUC&#39;, &#39;Accuracy&#39;, &#39;F1-Score&#39;]<br>confusion_matrices = {model_name: None for model_name in model_test_data_dict}<br><br>for model_name, (model, X_test, y_test) in model_test_data_dict.items():<br>    y_pred = model.predict(X_test)<br>    <br>    # Compute confusion matrix<br>    cm = confusion_matrix(y_test, y_pred)<br>    confusion_matrices[model_name] = cm<br><br>    # Compute other metrics<br>    roc_auc = roc_auc_score(y_test, y_pred)<br>    accuracy = accuracy_score(y_test, y_pred)<br>    f1 = f1_score(y_test, y_pred)<br>    <br>    values[model_name][&#39;ROC-AUC&#39;] = roc_auc<br>    values[model_name][&#39;Accuracy&#39;] = accuracy<br>    values[model_name][&#39;F1-Score&#39;] = f1<br><br># Plotting the confusion matrices<br>fig, axes = plt.subplots(nrows=2, ncols=3, figsize=(10, 10))<br><br>for i, (model_name, cm) in enumerate(confusion_matrices.items()):<br>    ax = axes[i // 3, i % 3]<br>    sns.heatmap(cm, annot=True, fmt=&#39;d&#39;, cmap=&#39;Blues&#39;, cbar=False, ax=ax)<br>    ax.set_title(f&#39;Confusion Matrix - {model_name}&#39;)<br>    ax.set_xlabel(&#39;Predicted&#39;)<br>    ax.set_ylabel(&#39;True&#39;)<br><br>plt.tight_layout()<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*oem6_twyqIMM8QbOLBymxQ.png" /></figure><blockquote><strong>CONCLUSIONS</strong></blockquote><p>The analysis on how daily commuting affects people in the National Capital Region (NCR) of the Philippines took a deep dive into various analyses. What follows is a summary of what we discovered, highlighting the many problems and possible ways to make daily commuting in the region.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*NgB98hoYmRJb4c-MTeisMQ.png" /></figure><blockquote><strong>RECOMMENDATIONS</strong></blockquote><p>The following recommendations aim to bridge the gap between the findings of our study and real-world improvements in the daily lives of NCR commuters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*pNdL7aPaibXbK31mEon3Sg.png" /></figure><p>These recommendations aim to bridge the gap between research insights and practical applications, fostering a proactive approach towards enhancing the daily commuting experience in the National Capital Region.</p><blockquote><strong>REFERENCES:</strong></blockquote><p>Fallaria, A. J., de Jesus, R., Carpio, M., Jacinto, F. L., De Leon, L., Agapito, J., &amp; Ramos, J. G. (2019). Emerging from the ‘worst’: An ethnography of the modern Filipino commuting culture behind the Metro Manila traffic crisis. In MATEC Web of Conferences (Vol. 272, p. 01032). EDP Sciences.</p><p>Mijares, A. C., Suzuki, M., &amp; Yai, T. (2013). Equity Analysis of Urban Rail Fare Policy and Passenger Overload Delay: An International Comparison and the Case of Metro Manila MRT-3. Journal of the Eastern Asia Society for Transportation Studies, 10, 45–66.</p><p>Polintan, B. (2022, October 24). Impacts of Worsening Traffic on Daily Commuters. Crown Asia Lifestyle Blog. Retrieved from <a href="https://www.crownasia.com.ph/lifestyle-blog/impacts-of-worsening-traffic-to-daily-commuters/">https://www.crownasia.com.ph/lifestyle-blog/impacts-of-worsening-traffic-to-daily-commuters/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=09402240b506" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cleaning the Dirtiest Data I’ve Seen Using Deep SQL and Power BI Knowledge]]></title>
            <link>https://medium.com/@leonardbagos9/cleaning-the-dirtiest-data-ive-seen-using-deep-sql-and-power-bi-knowledge-2f75ead4596d?source=rss-9ea2e6706770------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f75ead4596d</guid>
            <dc:creator><![CDATA[Leonard Bagos]]></dc:creator>
            <pubDate>Fri, 31 Mar 2023 10:59:46 GMT</pubDate>
            <atom:updated>2023-03-31T13:15:44.383Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*D370wVLH21SVGRwhF7yDxg.png" /></figure><blockquote><strong>INTRODUCTION:</strong></blockquote><p>In today’s world, data plays a crucial role in every industry. Be it medical, finance, or education, the insights drawn from data help businesses make informed decisions. But what if the data is too dirty to make any sense of it? As a data analyst, I have come across many datasets that were challenging to work with. However, the dataset I worked on for a medical company’s HR department was the dirtiest I had ever seen.</p><p>The datasets consisted of attendance records of employees, which were filled with incomplete information, ghost employees, missing time-outs, and too many time-ins. It also included various predetermined schedules within the same day, a row with too many schedules and too many employees combined in one, incomplete filing of leave requests, and payroll. The data was a mess, and I knew it would take a lot of effort to clean it up.</p><p>But a cleaned data is futile if it isn’t used for specific goal. So, before the cleaning process, let us know the main goal of this analysis.</p><blockquote><strong>PROBLEM STATEMENT:</strong></blockquote><p>The main task is to analyze the attendance data of the employees to identify patterns of employee tardiness, absenteeism, and indiscipline. The analysis will be used to address any issues and improve employee attendance and punctuality in the company.</p><p>The specific goals of the analysis are as follows:</p><p>· Identify the most disciplined and undisciplined employees and divisions:</p><p>· Create a visualization with the analysis of weekdays and months when the most employees were late/absent.</p><p>· Determine which heads of departments tend to forgive employees for lack of discipline. Identify if any favorites for any heads of departments exist.</p><blockquote><strong>METHODOLOGY:</strong></blockquote><p><strong>DATA CLEANING</strong></p><p>Like every data cleaning process, we started by importing our datasets to our preferred tools. We utilized the mostly used tools in cleaning: PostgreSQL and Power BI Query. This is to validate or counter check the outputs of each process. So, let us now discuss how we clean and prepare each dataset; this includes the process of filtering out some irrelevant values and deleting some duplicates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EE7tQsPZIfKgHhq7mlocaw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LMi9DLcOWedQU7aAJMmi8w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mASeaxoqQ8M29qCAbYSCvg.png" /></figure><p><strong><em>This is just a one of the dataset that has been cleaned. There are 5 more to clean. So, to check the complete process of data cleaning, please click the link below:</em></strong></p><p><a href="https://drive.google.com/file/d/15pTtAKG6yUXXV1HjDVYLjrbGlH7C3e6g/view?usp=sharing">METHODOLOGY.pdf</a></p><p>After we have cleaned the 5 datasets, there still one process that is vital for our data analysis. We need to merge the Schedule and Attendance tables. We used the schedule as the main table, pulling out the matches from attendance table, leaving some rows with no records in the attendance part. This can be done using LEFT OUTER JOIN. We did this using both PostgreSQL and Power BI Query.</p><p><strong>DATA MODELLING</strong></p><p>We believe that using a merged Schedule and Attendance table as the fact table, along with only one dimension table for Users, can be an effective approach for our analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*XwdZIhY_S_w-Gj2vk0zKww.png" /></figure><p>By consolidating the Schedule and Attendance tables into one fact table, we can simplify the schema and reduce the number of tables we need to manage. This can lead to easier maintenance and improved query performance. Additionally, having only one dimension table for Users can also simplify the schema and make it easier to manage. Having only one dimension table for Users can also help ensure data consistency and accuracy, as there is only one source for user profile information. This can help prevent issues that may arise from having multiple sources of conflicting or inconsistent data.</p><blockquote><strong>DAX ANALYSIS:</strong></blockquote><p>Now that the data has been thoroughly cleaned and prepared, we can proceed to the DAX analysis. But let me first go through some key terms that will be used throughout the entire analysis. You must be familiar with these terms in order to comprehend the approach. Some terms may not be widely used because they were created specifically for this study.</p><p><strong>Key Terms:</strong></p><p><strong>a.</strong> <strong>Absenteeism Rate </strong>— refers to the percentage<strong> </strong>when the employees don’t show up to work when they are scheduled to.</p><p>b. <strong>Tardiness Rate </strong>— refers to the percentage of “time in” where the employee is late. Late is when the employee check in 10 minutes after his/her official time.</p><p>c. <strong>Undertime Rate</strong> — refers to the percentage of “time out” where the employee left earlier than his/her official time out.</p><p><strong>d.</strong> <strong>Failure-to-Log Out Rate — </strong>refers<strong> </strong>to the percentage of occurrences where the employee forget to “time out”.</p><p>In our analysis, we consider employees with different types of schedule like “free”, “leave” or “work”. <strong>FREE </strong>means schedule that doesn’t have a strict time in or time out. <strong>LEAVE </strong>means employee can report to work but without strict time since he/she is supposedly on leave. <strong>WORK </strong>means a strict schedule the employee should follow.</p><p>We need some measures for us to be able to determine whether the employee is late or undertime and it is based on the differences of the actual time in or time out with respect to the scheduled time.</p><p>To get the difference of schedule time and actual time in minutes, we used the formula below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*8CeVN7vj464hi8xW9SgYhg.png" /></figure><p>But the above formula has limitations, since it will not consider the different types of schedule. That is why we create new column named “Strict Time” to filter only those whose schedule is “Work” and filter out tardiness and undertime when it is more than 2 hours or 120 minutes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*YSdqEUIiIsEYcA3o1q3P4A.png" /></figure><p>Now, to identify who is late and who left early, we add two columns to count for tardiness and undertime.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*N9-zwbKOEb64JfX1pvuBRA.png" /></figure><p>We need the total shifts/events that the tardiness or undertime has likely to happen for us get the percentages. Therefore, we calculate for total time ins and total time outs using these measures:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*7JamcDdxWe989TYv7uK7Xg.png" /></figure><p>Now, we can compute for the tardiness and undertime rate using the following expressions, make sure to convert the format to percentage:</p><p><strong>Tardiness Rate:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*mHWcioyuyzoesEnTpirLtQ.png" /></figure><p><strong>Undertime Rate:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*80NT6QUPA_NlrTI9-rVNvA.png" /></figure><p>On the other hand, we can compute for the Failure-to-Log Out Rate by getting the difference between the Log In and Log Out and dividing it by total Log Ins.</p><p><strong>Failure-to-Log Out Rate :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*BnfOEoMvYMRS5_9_TzciOQ.png" /></figure><p>Lastly, to identify who is absent, we add a calculated column using DAX. We applied certain conditions to determine the absent.</p><p>1. First, the schedule type must be <strong>“Work”</strong>. Leave and free schedules just like having no strict time in and time out, reporting to duty is not required.</p><p>2. Second, the attendance date must be <strong>“Null” </strong>signifying that if there is no record in the attendance but have one in schedule, the employee is absent.</p><p>3. Lastly and most important, the calculation for each employee will just start in the oldest date recorded in their attendance and will stop until the most recent date. The <strong>“MINX”</strong> filter signifies that the oldest date will be the employee’s first day and <strong>“MAXX” </strong>filter signifies that the most recent date will be the employees’ last day. We did this to remove all of the predetermined dates that is not covered during the days an employee actually works in the company.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*2ez5URDUGJb0Jv5V7Rs_XA.png" /></figure><p>Now to compute for the Absenteeism rate, we need to know the total shifts the employee should actually work. This can be done by adding the total shift (from the total Time Ins) and the total record of absences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*deOkviUPeMHMKWeGfq-oGg.png" /></figure><p>To compute the Absenteeism rate, divide the sum of the absences by the the total shifts. Always make sure to change the format to percentage.</p><p><strong>Absenteeism Rate:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*tVa3sVNQrs0js1sAdS29ng.png" /></figure><p><strong><em>We are not yet done. If you want the complete process of DAX analysis, you can view it here:</em></strong></p><p><a href="https://drive.google.com/file/d/1JPoVrc15dOmtAv7iKnV1-dEU8UA6qa1d/view?usp=sharing">DAX ANALYSIS.pdf</a></p><p><strong>DATA VISUALIZATION</strong></p><p>We can now proceed on to our data visualization after preparing and modeling the dataset and generating all necessary measurements for our analysis using DAX. Our dashboard construction is driven by our data analysis objectives. We developed a dashboard for each of the three tasks the CEO formulated in order to respond to them.</p><p><strong><em>Click here to view the full discussion of data visualization. It comprehensively discuss each charts and its uses for the analysis.</em></strong></p><p><a href="https://drive.google.com/file/d/1vBICyXADUL-3PK4gUKz1wqUU_dACgSGT/view?usp=sharing">DATA VISUALIZATION.pdf</a></p><p>Now we can proceed to our findings:</p><blockquote><strong>FINDINGS AND INSIGHTS</strong></blockquote><p>Based on the gathered data and developed dashboards, here are the findings and insights generated to answer the three main tasks:</p><p><strong><em>Task 1: Identify the most disciplined and undisciplined employees and division.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*icBUI9BPZYGxJwyJpEUX8A.png" /><figcaption><strong>“The most undisciplined employee and position are members of the most undisciplined department.”</strong></figcaption></figure><p><strong>FINDINGS:</strong></p><ul><li><strong>PBF </strong>is the most undisciplined department with the highest absenteeism, tardiness and undertime rate among other departments: <strong>31%</strong>, <strong>30%</strong> and <strong>9%</strong> respectively. On the other hand, <strong>Pharmacy</strong> is the most disciplined department having the lowest rates.</li><li><strong>Warehouse staffs </strong>are the most undisciplined of all the positions having 31% absenteeism rate, 15% tardiness rate, 6% undertime rate and 2% failure-to-log out rate. They are all members of PBF Department.</li><li>The table chart shows that there are various individuals at the top of each metric, but <strong>Employee 128325</strong> has the biggest impact on the performance of her department and the entire company, with rates of 34% absenteeism, 92% tardiness, 28% undertime, and 26% failure-to-log-out. Surprisingly, she works for the PBF Department. <strong>Employee 129675</strong>, <strong>84509, 84699, </strong>on the other side, are the most disciplined having no records in any of the metrics.</li></ul><p><strong>Additional Findings:</strong></p><p>· <strong>Male employees</strong> are more undisciplined compare to female employees with rates of 21% absenteeism and 7% tardiness.</p><p>· <strong>Mobile source</strong> causes 76% of overall employees’ tardiness.</p><p><strong><em>Task 2: Create a visualization with the analysis of weekdays and months when the most employees were late/absent (either for vacation or sick leave).</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*KnmjSugS59EMZ4PsqtuFZg.png" /><figcaption><strong><em>“Saturday is the day, September is the month when the most employees were absent.”</em></strong></figcaption></figure><p><strong>FINDINGS:</strong></p><p>· <strong>Saturday</strong> has the highest number of absences with a total of 224 and 53 tardiness. <strong>Thursday</strong> has the highest total of tardiness with 87 and 202 absences, followed by Friday with 78 and 201 absences. The day with the least number of absences is <strong>Sunday </strong>with a total of 164 and 39 tardiness.</p><p>· The month with the highest number of absences is <strong>September 2022 </strong>with 252 counts while <strong>July 2022</strong> is the month with the highest tardiness with 58 counts.</p><p>· The average number of employees with absences is <strong>10 per week</strong> and <strong>20 per month</strong>; <strong>14%</strong> and <strong>27%</strong> of the total employees respectively.</p><p><strong>Additional Findings.</strong></p><p>· Overall, <strong>82% (60/73)</strong> of the total employees has a record of absences.</p><p>· Most of the employees were late at <strong>8:00am</strong> shift while most of the recorded early outs were at <strong>3:00pm</strong>. It was find out that there were also high recorded late time ins during <strong>2nd shift at 3:00pm</strong>.</p><p><strong><em>Task 3: Which heads of departments tend to forgive employees for lack of discipline? Are there any favorites for any heads of departments (perhaps some employees are always forgiven for being late, given time off, etc.)?</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*_U85S5EIb2bGoL4LHX1TxA.png" /><figcaption><strong><em>“Medical Department approved highest number of leave requests, with second highest absenteeism rate yet their average gross pay remains unaffected.”</em></strong></figcaption></figure><p><strong>FINDINGS:</strong></p><p>· <strong>Medical Department </strong>has the highest average gross pay and the least deduction,<strong> </strong>whereas <strong>PBF</strong> has the largest salary deduction due to having the highest absenteeism rate.</p><p>· <strong>Employee 74049</strong> and<strong> 74044, </strong>both from <strong>Medical Department</strong>, has <strong>18</strong> approved leave requests with 9% absenteeism rate and <strong>2</strong> approved leave request with 26% absenteeism rate respectively, yet their gross pay remains unaffected.</p><p>· <strong>Head </strong>of the <strong>Medical Department</strong> approved 28 leave requests, highest among all departments. <strong>Employee 74049 (Medical) and 88357 (PBF) </strong>have the most granted leave requests (each has <strong>18</strong>), with 1 pending and 6 rejected request, respectively. <strong>Employee 74049</strong> has been granted 15 sick leave and 3 compensatory leave requests.</p><p><strong>Additional Findings:</strong></p><p>· <strong>90 leave requests</strong> have been filed, 33 of them are compensatory while 26 are sick leave requests. This is relatively smaller compared to the number of “leave-type” schedules.</p><blockquote><strong>RECOMMENDATIONS</strong></blockquote><p>Based on our findings, the group has made recommendations to the client in order to reduce the number of instances of undisciplined behavior committed by its employees, thereby lowering the absenteeism, tardiness, undertime and failure-to-log out rate.</p><p><strong><em>From Task 1:</em></strong></p><p>· Provide training or support for the most undisciplined department (PBF) and its employee to improve their attendance and punctuality. This includes coaching and counseling that will reevaluate their staffing and schedules to prevent future disruptions to the team’s workflow and productivity.</p><p>· Set specific limits for absenteeism and tardiness rate to identify when a certain area indicates a high level and when action is required to address that problem. Update each department on their performance on a regular basis, and alert those who are performing beyond the limit.</p><p>· Establish a centralized system or technology to automate the attendance and tardiness tracking process. Try Biometric machines instead of mobile or front end. This can improve accuracy and efficiency while also lowering the risk of errors.</p><p><strong><em>From Task 2:</em></strong></p><p>· Plan a month or week ahead to anticipate potential staffing shortages and proactively address them, such as by arranging for substitute workers or adjusting the schedule to better accommodate employee needs. Identify the reason behind high numbers of absenteeism on Saturdays and on September 2022.</p><p>· Incentivize employees who maintain good attendance and punctuality records. Offer paid time-off or bonuses to employees who consistently show up on time and who has perfect attendance in a quarter or in month.</p><p><strong><em>From Task 3:</em></strong></p><p>· Train managers and supervisors to recognize the importance of consistent and fair enforcement of attendance and punctuality policies. This can help to prevent resentment and mistrust among employees who may feel unfairly targeted or treated.</p><p><em>“In conclusion, cleaning up the dirtiest data I had ever seen was a challenging task. But with deep knowledge of Power BI and SQL, I was able to clean up the data and make it usable. By creating visualizations, I was able to provide insights that helped the HR department make informed decisions. As a data analyst, I take pride in cleaning up dirty data and making it useful for businesses.”</em></p><p>Here are the dashboards:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IDs5bZYaEDBIQKjki6YKAw.png" /><figcaption>Dashboard 1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pTYMMsIBDvri3VT_yG6e5A.png" /><figcaption>Dashboard 2</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o7GO4To4xy5Gysky2FNhpg.png" /><figcaption>Dashboard 3</figcaption></figure><p><em>Check out the interactive dashboard here:</em></p><p><a href="https://www.novypro.com/project/undisciplinedemployee">Undisciplined Employee Case Analysis</a></p><p>Watch the video presentation here:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F2b0vPlXC5vQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D2b0vPlXC5vQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F2b0vPlXC5vQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/591646bcbc5aee463e9c396d4e386545/href">https://medium.com/media/591646bcbc5aee463e9c396d4e386545/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f75ead4596d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Exploratory Analysis of Client Disputes Using Excel Functions and SQL Queries]]></title>
            <link>https://medium.com/@leonardbagos9/an-exploratory-analysis-of-client-disputes-using-excel-functions-and-sql-queries-5887baf2cc6?source=rss-9ea2e6706770------2</link>
            <guid isPermaLink="false">https://medium.com/p/5887baf2cc6</guid>
            <dc:creator><![CDATA[Leonard Bagos]]></dc:creator>
            <pubDate>Fri, 31 Mar 2023 06:26:00 GMT</pubDate>
            <atom:updated>2023-03-31T06:26:00.713Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*iUpjnTP13TOaE3MdWwGSnQ.png" /></figure><blockquote><strong>PROBLEM OVERVIEW:</strong></blockquote><p>Yellevate, a company that specializes in providing marketing services to mid-sized companies has been dealing with client disputes for several years. Clients who express dissatisfaction with the company’s services and refuse to pay for them are defined as having a dispute, according to Yellevate.</p><p>Disputes have resulted in a significant financial burden for the company. The statistics show that nearly<strong> 20% of disputes</strong> raised against Yellevate resulted in payment opt-outs, leading to a <strong>5% annual loss of revenue.</strong> Therefore, a thorough analysis will be of great importance to the company’s top executives, as it will be used to devise a plan to address the root causes of these disputes and minimize their impact on the company’s financial performance.</p><blockquote><strong>OBJECTIVES:</strong></blockquote><p>The primary objective of this analysis is to identify the root causes of these disputes and propose actionable strategies to resolve them. It involves thoroughly examining this data to identify patterns and trends that might be contributing to these disputes.</p><p>Executives at the company decided that we need to obtain the following information to identify the circumstances around the dispute problem:</p><p>· The processing time in which invoices are settled.</p><p>· The processing time for the company to settle disputes.</p><p>· Percentage of disputes received by the company that were lost.</p><p>· Percentage of revenue lost from disputes.</p><p>· The country where the company reached the highest losses from lost disputes.</p><blockquote><strong>METHODOLOGY:</strong></blockquote><p><strong>Data Collection:</strong></p><p>Data were obtained from the company. The database includes the following features: customer id, country, invoice number, invoice date, due date, invoice amount (in USD), disputed, disputed that were lost, settled date, number of days the invoices were settled, and the number of days the invoices were settled late. A total of 2466 observations were retrieved.</p><p>Create a new database and create a new table using CRUD operator and import the dataset in PostgreSQL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*kcdVBY6fG5xibVc-t8lfeg.png" /></figure><p><strong>Data Cleaning:</strong></p><p>After the data were collected; they were examined and processed from technical to understandable. When this table is provided to clients, they must understand what the numbers 0 and 1 signifies in ‘‘disputed’’ and ‘‘dispute lost’’ column.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*RfKBTSOL-PmqiEgxnAXGvQ.png" /></figure><p><strong>Data Analysis:</strong></p><p>The cleaned data were analyzed through a comparative approach using PostgreSQL queries and Excel function and pivot analysis. In order to investigate further the issue, the database was treated with various aggregate functions such as using count, sum, max/min, average, and round functions. Below is the comparison of the analysis using SQL and Excel based on the five main goals:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*p4tC4jT7RM35aaGSg_JM-A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*jAoQSyhuAWRgAJjKedMDdw.png" /></figure><blockquote><strong>FINDINGS:</strong></blockquote><p>Once the answers were finalized, pivot charts have been made to support the answer on our data analysis goals. We developed one visual for each of the five tasks that the executives have asked to solve the problem:</p><ol><li><strong>The processing time in which invoices are settled</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*3O0yRHyx2E3LaAldLQu6oQ.png" /></figure><p>This figure represents an average across the five countries that Yellevate served. <strong>Russia </strong>clearly leads all countries with an average settlement time of 29 days. On the other hand, <strong>China</strong> has the shortest average settlement time of <strong>23 days</strong>. Overall, as indicated by the red dashed line, it takes Yellevate <strong>26 days</strong> on average to settle the invoices. The processing time is settled <strong>4 days</strong> earlier than the due date (30 days). This means that most of the services rendered by Yellevate were successfully delivered and most customers are satisfied with them.</p><p><strong>2. The processing time for the company to settle disputes</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*LYbiwS_cYkIXwdzIfapL0w.png" /></figure><p>Yellevate takes an average of <strong>36 days</strong> to settle disputed invoices. It takes longer to process since both parties are compromised. The client can opt out their payment based on the result of the settlement. If the company wins, they are required to pay even if they are dissatisfied with the service. This means that if the client disagrees with the invoice, it will take the company an average of <strong>6 days longer</strong> than the due date (30 days) to resolve the dispute.</p><p><strong>3. Percentage of disputes received by the company that were lost</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*kr9GDDy4LmoELO0uxckJNg.png" /></figure><p>Yellevate was unable to successfully defend <strong>101 out of 571</strong> disputed invoices, resulting in payment opt-out, representing a loss rate of approximately <strong>17.69%</strong>. This is close to the problem overview’s estimated statistic of 20%.</p><p><strong>4. Percentage of revenue lost from disputes</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*ndmsu2YJQBmg5TWpIgImmQ.png" /></figure><p>Revenue of <strong>$690,167 </strong>was lost out of $14.8 million worth of total invoices. As a result, the revenue lost rate is <strong>4.67%.</strong> This is, once again, close to the estimated 5% annual revenue loss.</p><p><strong>5. The country where the company reached the highest losses from lost disputes (in USD)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*NF_I1zDqCJxCa1hfqFPYjg.png" /></figure><p>Here, we can see the individual countries’ revenue losses. <strong>France</strong> is highlighted in red, with the highest revenue loss from disputes amounting to <strong>$526,264</strong>. When compared to other countries’ losses, there is a significant difference.</p><p><strong>ADDITIONAL INSIGHTS</strong></p><p>Aside from the primary data analysis goals, additional insights have been generated to assist in the resolution of the disputes. Following an examination of revenue losses by country, the study delves deeper into revenue losses by client. The top ten clients to whom Yellevate lost are listed below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*45Mfr8RB-t3vvR4cwbhoIw.png" /></figure><p>Yellevate lost a total of <strong>11 disputes</strong> and with highest revenue loss of <strong>$88,124</strong> to customer 9725-EZTEJ.</p><p><strong>ADDITIONAL INSIGHTS</strong></p><p>One of the important measures to determine if the Yellevate is doing well with the invoices is the settlement rate. This comprises data about the count of delayed settlements versus total number of invoices telling if the company has an acceptable invoice settlement rate</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*oIBMedyXSCElDxEGRC0o2g.png" /></figure><p>Out of a total of <strong>2,466 invoices</strong>, <strong>877</strong> of them were delayed, resulting in an on-time settlement rate of approximately 64%.</p><p>Next is to determine if the company is doing well with the disputed invoices. One of the reasons why invoices were disputed and lost can be the late settlement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*KYuAxWdKYPXgr-XbYJmEvA.png" /></figure><p>Out of the 507 disputed invoices, <strong>67% of them (385)</strong> were settled late. This is a significant percentage that could lead to the company’s losses.</p><blockquote><strong>RECOMMENDATIONS:</strong></blockquote><p>Taking into consideration the findings and discussions, below are the probable recommendations and strategies to deal with disputes effectively.</p><p>· <strong>Accomplish invoices within 30-day deadline</strong></p><p>Ensure that the 30-day processing time will be strictly implemented. If possible, shortening of the processing time is beneficial. Make a log of invoices that were settled late and list down the reasons for not accomplishing the deadline. Provide ways to prevent missed deadlines on future invoices.</p><p>· <strong>Improve Customer Experience</strong></p><p>Give client a notification ahead of time whenever there will be a delay in the processing of their invoices. Invest in training its staff to better understand and handle clients’ needs and concerns, which can help prevent disputes from arising in the first place.</p><p>· <strong>Investigate Challenges in each Country</strong></p><p>Determine the reasons behind the highest number of disputes lost in France. Meanwhile, closely monitor and improve its service delivery in other four countries to prevent further disputes. Model China, the country that generates the highest revenue but minimal lost disputes.</p><p>· <strong>Identify Trends in Dispute Activity among Clients</strong></p><p>Recognize patterns in filing disputes among clients where the company lost the most invoices. Make a list of all the reasons for their disputes. Closely track their future activities and make sure the root causes listed don’t happen again. Devise a strategy to attract new clients.</p><p>· <strong>Review Contract and Terms of Agreement</strong></p><p>Make sure that everything is clear: pricing, discounts, payment terms, agreement on late payments and dispute resolution, among others. Hire a lawyer to check terms of agreement to ensure that there will be no loop hole that can be used by client to evade payment.</p><p>Here is the video recording presented by the group:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FK7h5dKnGj1c%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DK7h5dKnGj1c&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FK7h5dKnGj1c%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e95d25663e0fb64d61412f716388abc1/href">https://medium.com/media/e95d25663e0fb64d61412f716388abc1/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5887baf2cc6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Data Analysis Helped Me Reduce Rejection Rates in My Previous Company]]></title>
            <link>https://medium.com/@leonardbagos9/how-data-analysis-helped-me-reduce-rejection-rates-in-my-previous-company-67aca349de?source=rss-9ea2e6706770------2</link>
            <guid isPermaLink="false">https://medium.com/p/67aca349de</guid>
            <category><![CDATA[dashboard]]></category>
            <category><![CDATA[excel]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[rejection]]></category>
            <dc:creator><![CDATA[Leonard Bagos]]></dc:creator>
            <pubDate>Fri, 31 Mar 2023 03:06:20 GMT</pubDate>
            <atom:updated>2023-04-01T06:44:39.938Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Disclaimer</strong>: Certain information has been withheld or redacted due to privacy concerns and confidentiality. Using of codes for products and rejects are necessary since disclosure of such sensitive information is restricted by the law or the company’s policy.</p><p><strong><em>“Data analytics can reveal trends and patterns that may otherwise go unnoticed amongst the mass of information organizations hold.”</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*Ds_YhKKtdCeGFooL8Sazjg.png" /></figure><p>Around May of last year in my previous company, I encountered an unusual problem regarding high rejection of our products. As a quality analyst, I not only ensure that the products we produce meet the set standards, but I also assist production in minimizing defect rejection while increasing productivity. My role as an analyst is not limited to quality assurance; I also assist in process optimization by taking significant actions in response to a problem that may arise during production. Because of this, the issue of high rejection of our products did not escape my critical eye.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*mOVIkF0x_MalkW2Mn1IcMw.png" /></figure><p>Going back to the situation, we faced a high rejection of a certain product “TB” due to some defects and non-conformances. By that time, I am aware that it is unusual but I can’t provide numbers or data for my supervisor on how it was different from our past runs. This lack of information has made it difficult for my supervisor to understand the severity of the problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*5AOeqp1aFTZCZZIZuLlaKg.png" /></figure><p><strong>That is when my data-savvy attitude resurfaced and my journey into data analytics began.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*eHvIStDKZRE-rT6ss_8bLw.png" /></figure><p>My data analysis, like any other problem-solving method, began with gathering information about our current situation and collecting data from previous runs. I collect necessary data like total bottles inspected per month and the total bottles rejected during inspection. They were classified according to the type of reject and the production line from which they were produced. I included all the regular products for comparison of the rejection rates because I wanted to create a document that would be helpful for future analysis of all products.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*Rt81pmm4EO83VobmdGrdvQ.png" /><figcaption>The chart shows a significant increase in percent rejection from April to May.</figcaption></figure><p>Following data collection, I used an Excel formula to compute the percent reject and total rejects per types and product line. Now, I created a visualization showing the trends in overall percentage reject from January to May using pivot tables generated from the raw data. I discovered a rising trend for it, which peaked in May, the current scenario at the time. The percentage rejection increased from <strong>3.24%</strong> the previous month to <strong>4.12%</strong> overall. We can say that there is a significant difference and that something unusual occurred.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*hTUG0X24Tfknyv_FL3zvXQ.png" /></figure><p>However, the overall percentage rejection rate does not reveal which product or factor is driving the upward trend. That’s why I made a chart that compares the performance of each product over time. As can be seen, product “TB” also peaks in May at <strong>16%</strong>. It has also the highest rejection rates among all the products.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*FDvJTJhaPmwejnrTT4a2dQ.png" /><figcaption>Types and Top 10 rejects of product “TB” for the month of May</figcaption></figure><p>Thus, I focus on product “TB” and identify what type of rejects and which specific rejects are contributing to the sudden increase. We discover that <strong>“Label”</strong> rejects, specifically<strong> “T” and “WR”</strong> rejects contributed greatly compared to other kind of rejects. <strong>95%</strong> of the rejects were mainly due to label rejects. So, we closely monitor these rejects and make corrective actions to reduce it. We also made root cause analysis for this issue: Are there new labels introduced in the production? What is the quality of glue we are using, maybe it was expired? or Was there new machine parts that have been used? Those were just examples of how we troubleshoot the problem at that time. We also compared it to product <strong>“EBL”</strong> since they were both produced from the same line.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*PoUklnKNEip_zEaIuo5pxQ.png" /><figcaption>Comparison of TB and EBL, both produced from the same line.</figcaption></figure><p>We noticed that unlike “TB”, product <strong>“EBL”</strong> remarkably decrease its percent rejection during the month of May. That is why we focused only on product “TB” and conducted study on its variants. The graph below shows the<strong> 5 variants of TB </strong>and their percent rejection of the top 2 rejects. Comparing them let us determine which TB variant has a notably higher rate of rejection than the others.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*RlT1l69wo2sPX8OwQa_lHg.png" /><figcaption>Study on “TB” Variants</figcaption></figure><p>I conducted study into how these TB variants differ from one another, such as the characteristics of their packaging raw mats and machine handling parts, among other things. However, that is outside the scope of this blog. I simply use my findings from that study to achieve my main goal: to reduce rejects in the months following the May incident.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*IjeJ1-v_-6ENa4i_PBpnNQ.png" /></figure><p>To make the story short, like how I anticipated the patterns would be, there was a notable decrease after closely monitoring TB product and its variants following the May incident. Even during the peak season in the production from October to December, the analysis is useful and made a great contribution in the reduction of rejects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*uqEHuf25p_lpZb6642Xgew.png" /><figcaption>Overall rejection rate comparison of first half vs year end.</figcaption></figure><p>After using my analysis and determining which product should be closely monitor, the overall rejection rate fell from <strong>3.50% to 2.94% </strong>from the first half versus the second half of the year. This equates to a <strong>16%</strong> reduction in rejects. Meanwhile, product TB has a year-to-date average rejection rate of only <strong>8.16% </strong>from <strong>15.56%</strong> in May. From <strong>10.89%</strong> for the first half to <strong>5.43%</strong> on the second half. This was equivalent to <strong>50%</strong> reduction of rejects for TB products.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*Wsamm8_jwE9OeVyt0vuyPA.png" /></figure><p>Overall, there was a significant decrease on the overall rejection of our products at the end of the year. By using Excel to create a dashboard and analyze trends, I was able to reduce rejection rates and improve the overall quality of our products.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*ejUptykMThd4fbDi2jdnXA.png" /></figure><p>Data analysis proved to be an invaluable tool in my role as a quality analyst. With data analysis, I was able to identify patterns that caused higher rejection rates. By narrowing down the issue to one product, I was able to create targeted solutions to reduce the overall rejection rate. By creating a dashboard in Excel, I was able to spot trends quickly and adjust production accordingly. This allowed me to proactively address issues before they could cause major problems. By tracking the rejection rates over time, I was able to measure the effectiveness of my solutions. This allowed me to see the progress we were making in reducing rejection rates and adjust strategies accordingly.</p><p><strong>RECOMMENDATIONS:</strong></p><p>Although we made significant decrease in the rejection of “TB” products, we should also track the status of other products. For example, unlike TB and EBL from Line 1, other lines seem to have an increase in the percent rejection. To compare, <strong><em>Line 1 has a decrease of 40%, while line 2 and line 3 has an increase of 26% and 49% respectively.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*WoBB7IagFAcjP80f9Mxbkg.png" /></figure><p>Just like what we did for Line 1, we should identify which products are contributing to the increase of rejection for line 2 and 3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*pqJoYuLvXcLx81tSl-oapg.png" /></figure><p>Even though <strong>CMLJ </strong>(red line) shows a significant decrease, we can see that product<strong> SN </strong>and<strong> SM</strong> increase in percent rejection.</p><p>Ensure that all of the products follows the trend of TB. Monitor the percent rejection of all the products in the future. If there is an unusual increase of rejection for a certain line, narrow it down to a specific product and identify the causes of it. This will allow us to proactively address issues before they could cause major problems.</p><p>Here is the walkthrough in our dashboard:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FfQZRdidd12E%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfQZRdidd12E&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FfQZRdidd12E%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8a94fa4e8147bd08b4a8ac821a96d5dc/href">https://medium.com/media/8a94fa4e8147bd08b4a8ac821a96d5dc/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67aca349de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Calculating Business Metrics for Delivery Company Using DAX Measures]]></title>
            <link>https://medium.com/@leonardbagos9/calculating-business-metrics-for-delivery-company-using-dax-measures-7c22945af147?source=rss-9ea2e6706770------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c22945af147</guid>
            <category><![CDATA[business-metrics]]></category>
            <category><![CDATA[dax]]></category>
            <category><![CDATA[power-bi]]></category>
            <dc:creator><![CDATA[Leonard Bagos]]></dc:creator>
            <pubDate>Tue, 14 Mar 2023 09:57:16 GMT</pubDate>
            <atom:updated>2023-03-14T09:57:16.530Z</atom:updated>
            <content:encoded><![CDATA[<p>Calculating some business metrics such as average delivery time using dax measures in Power BI</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*0bxCT9pZI8G8mRLHn7Ca4A.png" /></figure><p>Interact with the dashboard here:<a href="https://www.novypro.com/project/indianfooddelivery">https://www.novypro.com/project/indianfooddelivery</a></p><p><strong>Task Description:</strong></p><p>You work as a data analyst in an Indian delivery company. Top managers want to expand the business to other countries in Asia, so they asked you to make a report about delivery time to compare the company’s performance with competitors. Data is presented in a .csv file, with fields such as time of delivery, order date, traffic, weather, location, and other information.</p><p><strong>Data Analysis Goals</strong></p><p>Build a dashboard showing how vehicle type, type of order, weather conditions, and road traffic affect the average time taken for delivery.</p><p>Calculate the following measures and add them to the dashboard:</p><p>a. The median time that is taken for delivery</p><p>b. Average time for delivery for sunny and stormy weather</p><p>c. Difference between the average delivery time of ordinary scooters and motorcycle</p><p><strong>Data Preparation</strong></p><p>The first column to clean is the <em>Weatherconditions</em> column. Just transform the column and then <strong>Extract using Text After Delimiter</strong> option. Next, extract the time in the <em>Time_taken(min)</em> column using Text after Delimiter as well. I also changed the <em>time_taken(min)</em> column to time data type.</p><p>The <em>Order_Date</em> and <em>Time_ordered</em> columns are in text data type so change them to date and time respectively. After changing the data type of <em>Time_ordered </em>column, there are a lot of errors due to null empty values. Select all cells and then right-click, then chose Remove Errors. For <em>type_of_vehicle</em> column, replace the values for <em>electric_scooter</em> to <em>electric scooter</em>.</p><p>Lastly, delete columns that are not relevant.</p><p><strong>Analysis</strong></p><p>Create the required measures using DAX analysis.</p><p>a. The median time that is taken for delivery</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*PkS6PLDIRr4WnxxyZKBe5g.png" /></figure><p>b. Average time for delivery for sunny and stormy weather</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*ipSJykgFWae_juCSvHc0SQ.png" /><figcaption>Average delivery time for Sunny</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*AgOZ7Wbm4Q4n6aYhmDBp1g.png" /><figcaption>Average delivery time for Stormy</figcaption></figure><p>c. Difference between the average delivery time of ordinary scooters and motorcycle</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*Xy1L_y-cqJRh0ZjsXWaLgg.png" /><figcaption>Average Delivery Time for Motorcycles</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*CnejYe7_GDTfo7MIru3s7w.png" /><figcaption>Average Delivery time for Scooter</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*4zQhCwMG5ax4YSkvJ-dCxw.png" /><figcaption>Difference between average delivery time for motor and scooter</figcaption></figure><p>After calculating the required measure, create your dashboard and add these measures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*0bxCT9pZI8G8mRLHn7Ca4A.png" /></figure><p>You can gain direct insights from the dashboard above. Try making your own.</p><p><strong>Recommendations:</strong></p><p><em>As a data analyst, what would you suggest to the delivery company so they can collect better data and get more precise results?</em></p><p>It is important to have well-defined data collection processes in place that specify what data should be collected, how it should be collected, and who is responsible for collecting it. This will ensure consistency in data collection and reduce errors and discrepancies.</p><p>Delivery companies should leverage technology to collect data, such as using GPS tracking devices, barcodes, and scanners to track deliveries and shipments. This will help to automate data collection, reduce manual errors, and increase accuracy.</p><p>Delivery companies should ensure that data is accurate, complete, and up-to-date. This involves regular data cleansing and validation processes to eliminate errors and inconsistencies. Data visualization tools can help delivery companies interpret complex data and communicate insights more effectively. This can enable decision-makers to make more informed decisions based on data-driven insights.</p><p>By implementing these suggestions, delivery companies can improve their data collection processes, obtain more precise results, and make more informed decisions based on data-driven insights.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c22945af147" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analysis of Big Financing Data for New Investment Using SQL]]></title>
            <link>https://medium.com/@leonardbagos9/analysis-of-big-financing-data-for-new-investment-using-sql-d2364847ee37?source=rss-9ea2e6706770------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2364847ee37</guid>
            <category><![CDATA[descriptive-analytics]]></category>
            <category><![CDATA[excel]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Leonard Bagos]]></dc:creator>
            <pubDate>Tue, 14 Mar 2023 08:48:07 GMT</pubDate>
            <atom:updated>2023-03-14T08:48:07.417Z</atom:updated>
            <content:encoded><![CDATA[<p>Cleaning and analysis of big data can be easily done using SQL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*enFpUPOcTyGrkZEt" /></figure><h3><strong>Task Description</strong></h3><p>You are a data analyst working for a company planning to venture into a new market involving financial services. In line with this, it is requesting insights on sources of financing companies tap into when entering the said industry.</p><p>Task 1. Provide descriptive analytics that presents the number of observations of companies operating in financial services and their average, minimum, and maximum seed funding.</p><h3>Data Preparation</h3><p>Prepare the dataset for the analysis by creating a new table selecting only the records where the market is <em>financial services</em>. Make sure to do this, before performing aggregate functions and conditional queries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*nojMp8Y3NAriFq8ZtaKi7w.png" /></figure><p>Replace the misspelled word such as ‘FincialServices’ by updating the table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*E01ucEQ07ppp35HrRHr6jw.png" /></figure><p>Some rows in specific columns have no values. Replace null values with “No Records”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*ghv_FzyGV6zY27gio_LA4Q.png" /></figure><p>After cleaning the data we can proceed to the analyis.</p><h3><strong>Data Analysis</strong></h3><p>To provide descriptive analytics that presents the number of observations of companies operating in financial services and their average, minimum, and maximum seed funding, we can also use sql queries through aggrege functions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*x1_au5LgMHerLBpHiQsjOw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*UnzNXU1nCWs4hNkwPpMuQA.png" /></figure><p>Output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*VGx0EFmb1BZOsHjpNs7zaw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*hecz7_FdS2J53H8k0PnYZg.png" /></figure><p>Analysis:</p><p>Based on analysis of the dataset using pgAdmin, we found that there are a total of <strong><em>49 markets</em></strong> operating in financial services that received seed funding. Among these, the average seed funding is <strong>$469,029</strong>, with a maximum seed funding of <strong>$4.4 million </strong>and a minimum <strong>of $7,500</strong>. These finding suggest that there is a wide range of funding levels for companies in the financial services industry, with some companies receiving significantly more seed funding than the others.</p><p><strong>Task 2. </strong>Aware of the reality that equity crowdfunding is a bit rare in financial services, determine whether or not there has been a previous instance where a startup offering financial services received equity crowdfunding. If there was, provide details of the company, such as the country it operates in, the year it was founded, its status (whether or not it is still operating), and the amount of equity crowdfunding it acquired.</p><p>Using SQL query again:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*wnkgx4GIauvyh9t6cTGtvA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*2gOsX-r22HhkEtosN7IvAQ.png" /></figure><p>Analysis:</p><p>Though equity crowdfunding is a bit rare in financial services, there is one startup offering financial services that received such kind of funding. This company acquired an amount of<strong> $398,097 </strong>which operates in France and founded in 2010.</p><p><strong>Task 3</strong>. Determine whether or not a significant outlier in terms of total funding (USD) exists among companies that offer financial services. Provide details about this outlier, such as its country, status, year founded, and total funding (USD).</p><p>Using the Order by function, we can determine the outlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*IMTs15-bXCFwfH-nU9fsVA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*VC6v2YuKt31sZkgCyo-mkg.png" /></figure><p>Analysis:</p><p>Based on the analysis of the dataset, we found that there is one company that received an exceptionally high amount of funding compared to others in the financial services industry. Upon checking, it acquired a total amount <strong>$725 million </strong>without any source of funding. The company operates in US.</p><p><strong>Task 4.</strong> Excluding the significant outlier, provide insights on the company regarding the usual financing sources for businesses that offer financial services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*PlqiLNC70kZCq3zVCdHRPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*96KzWRze-PGHpjkedvAdVQ.png" /></figure><p>Analysis:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VxbuRH55Xa7OGCtj7AoGcw.png" /></figure><p>As we can see from the graph, <strong>private equity </strong>has the highest average funds acquired with an average of $1.48 million, This is followed by dept financing, with an average of $699,347 and undisclosed sources, with an average of $320,310. Equity crowdfunding has the lowest average funds with $3,523 acquired, while no funds received from convertible notes.</p><p>Insights</p><p>These findings suggest that <strong><em>private equity is the most lucrative financing option </em></strong>for the markets operating in financial services while <strong><em>equity crowd funding and convertible notes are the least viable options</em></strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2364847ee37" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analysis of the Operating performance for E-commerce company]]></title>
            <link>https://medium.com/@leonardbagos9/analysis-of-the-operating-performance-for-e-commerce-company-142b3fc66417?source=rss-9ea2e6706770------2</link>
            <guid isPermaLink="false">https://medium.com/p/142b3fc66417</guid>
            <category><![CDATA[dashboard]]></category>
            <category><![CDATA[sales-dashboard]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[olist]]></category>
            <dc:creator><![CDATA[Leonard Bagos]]></dc:creator>
            <pubDate>Tue, 14 Mar 2023 03:25:47 GMT</pubDate>
            <atom:updated>2023-03-14T07:00:08.614Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the final task for the Power BI module at Refocus Digital Academy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*BlGRqAZFMDZQztrYJJj0Tg.png" /></figure><p>Interact with the dashboard here: <a href="https://www.novypro.com/project/olistperformance">https://www.novypro.com/project/olistperformance</a></p><p><strong>Introduction</strong></p><p>Olist, an e-commerce company from Brazil, has requested a complete analysis of their operating performance. They want a detailed report covering three main parts: general dashboard, delivery performance, and product quality.</p><p><strong>About the Dataset</strong></p><p>The dataset has information on 100,000 orders from 2016 to 2018 made at multiple marketplaces in Brazil. The orders include details such as order status, price, payment, freight performance to customer location, product attribute, and reviews written by customers. The geolocation data is associated to Brazilian zip codes with latitude and longitude coordinates.</p><p>This is real commercial data, it has been anonymized, and references to the companies and partners in the review text have been replaced.</p><p><strong>Data Analysis Goals</strong></p><ol><li>Explore the company’s product volume, sales, and customer satisfaction rating for products.</li><li>Analyze delivery performance.</li><li>Investigate product ratings and discover product categories that are prone to customer dissatisfaction.</li></ol><p><strong>Data Preparation</strong></p><p>The dataset includes 9 csv files imported to Power BI, it includes customer and sellers’ information, geolocation, items, purchases and reviews.</p><p>The dataset is loaded and transformed in Power Query Editor. Most of the dataset needed their headers to be promoted as Power Query wasn’t able to recognize those immediately. Most data also needed their data types to be changed. I went ahead and replaced jargons with proper terms for easy understanding especially the “product_category_name_translation” query. In sellers and customers tables, abbreviated name of each states with their full state names. I also computed some measures like number of bad reviews using DAX analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*I_HGrBnxVptNrs0idU-D7g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*BhhWq0-mUhrJ70JYNsvthg.png" /></figure><p>I also added calculated columns to show the average time/days in processing the orders, dispatching the orders and delivering it to the customers.</p><p><strong>Data Modelling</strong></p><p>For data modelling, I used the <em>star schema</em> having the “order_items” as the fact table since it stored most of the values that is related to the other tables such as product id, customer id, oder id and sellers id.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*RnAa2dIEytrrp4VcdhACgA.png" /><figcaption>Star Schema for Data Modelling</figcaption></figure><p>I did not establish a connection for “geolocation” because it will be having a many-to-many cardinality that will complicate the relationships. Instead, I used merge queries to add important columns like latitude and longitude from geolocation to seller and customer tables.</p><p><strong>Data Visualization</strong></p><p>After preparing and modelling our data, we can now create our dashboard to achieve our data analysis goals. Kindly watch this short walkthrough in our Power Bi Dashboard.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F1B99ZkSaU9k%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1B99ZkSaU9k&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F1B99ZkSaU9k%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/22f2673adeb45c894c221a10fd6ba8ec/href">https://medium.com/media/22f2673adeb45c894c221a10fd6ba8ec/href</a></iframe><blockquote><strong>SALES AND PRODUCTION VOLUME DASHBOARD</strong></blockquote><p>I created the first page of the dashboard showcasing information about the company’s total sales, total products sold, and average product rating using visualization cards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TU78fOq0Pt5n-xeax5vEdQ.png" /><figcaption>Sales and Production Volume Dashboard</figcaption></figure><p>Through this dashboard, we can view the total sales, the number of orders, the sales performance over the course of the months, the sum of the sales on a geographical map by states, and finally the top 10 most popular product categories across various years.</p><p>The business team using such a dashboard can quickly identify and evaluate any <em>anomaly in the sales performance</em>, such as a sudden drop and surge in order due to seasonality, for example. In addition, they can use the <em>geolocation map to decide to expand into cities of interest or to concentrate on a particular product category in each different city due to the fact that a particular product category has the highest sales at this particular city</em>.</p><blockquote><strong>DELIVERY PERFORMANCE DASHBOARD</strong></blockquote><p>Secondly, we need to create a dashboard for the analysis of our delivery performance for it is one of the main factors for sales growth and customer satisfaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VZRWju8xMcxNF-A57m932w.png" /><figcaption>Delivery Performance Dashboard</figcaption></figure><p>One of the most important KPI is the estimated delivery time that we promise our clients that we will deliver accordingly, due to the fact that giving a wrong estimated delivery time can result in canceled orders, bad reviews, and unfortunately, customers leaving our service. Hence it is really important to keep a dashboard to monitor such metrics.</p><p>We can see that in the first operational year (2016) in September we were maybe promising the wrong estimated delivery time, which translated as we see in a larger percentage of canceled deliveries, but on a positive note, we can see that in the following year (2017) we overcame this issue since we are providing an estimated time for our clients but we are delivering the orders much earlier on average, which again translated into way less canceled orders. <em>That is just one example on how to utilize this dashboard. You can surely made other insight out of it.</em></p><blockquote><strong>CUSTOMER SATISFACTION DASHBOARD</strong></blockquote><p>To improve our performance, we must value our customer by analyzing their feedbacks and satisfaction rating.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lnT3x1shqMfKkEOA4kP4Kg.png" /><figcaption>Customer Satisfaction Dashboard</figcaption></figure><p>Customer satisfaction review is very vital to improve a company’s performance. <em>You can check whether we get higher number of good reviews compared to bad reviews. You can also concentrate on products with good rating because it may contribute to higher sales. Lastly, you must consider checking products that are prone to customer dissatisfaction to improve it’s product quality.</em></p><p><strong>Insights</strong></p><p>The analysis’ findings indicate that Olist E-commerce gained a total of 99,440 orders. The business has a 90% delivery success rate after delivering roughly 89,940 items. Their product ratings range from 2.5 stars to 4.67 stars, with the average rating being 4.09 stars. In the order of review score distribution, 1 Star reviews are third, which suggests that there may be issues with product quality in specific product categories. Delivery efficiency could impact review ratings, and success rate could definitely be increased.</p><p><strong>Recommendations</strong></p><ol><li>Investigate delivery delays and undelivered orders. Analyzing geographic locations could bring insights about certain challenges with demographics, accessibility, and possible route optimization. Tracking fleet performance with the use of telematics can help identify issues before they become a problem.</li><li>Providing a proper shipment tracking system aids in having clear and concise communication between customers, sellers and couriers. Regular updates can set proper expectations among customers and specific delivery instructions of customers can be properly accommodated. By establishing trust and communication, both parties can work together to resolve any issues that may arise.</li><li>Regularly monitor and analyze customer reviews to gain insights in product quality and identify areas for improvement. Dashboards can be used to identify patterns in customer reviews. This will provide a data-driven approach to enhance customer experience.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=142b3fc66417" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring Amazon India Transactional Data]]></title>
            <link>https://medium.com/@leonardbagos9/exploring-amazon-india-transactional-data-76308c1a797?source=rss-9ea2e6706770------2</link>
            <guid isPermaLink="false">https://medium.com/p/76308c1a797</guid>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[excel]]></category>
            <category><![CDATA[data-analytics]]></category>
            <dc:creator><![CDATA[Leonard Bagos]]></dc:creator>
            <pubDate>Sat, 11 Mar 2023 06:24:13 GMT</pubDate>
            <atom:updated>2023-03-13T16:36:36.009Z</atom:updated>
            <content:encoded><![CDATA[<h3>Task Description:</h3><p>Amazon India is trying to analyze their transaction data regarding delivery information. As an analyst, you will help them explore the data extracted from the system by creating a report with data storytelling. This report will be shared with senior management, so the information should be clear and accurate</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*08UFUT_pghIqmrsCBDZkAQ.png" /></figure><h3>Questions:</h3><ol><li>Does the company have a stable transaction trend? Show the answer on a month to month basis.</li><li>What is the distribution of the order status?</li><li>Can you tell something on the shipping fee? Do you think shipping fee affects the number of orders?</li></ol><h3>Process:</h3><p>Before you start answering the questions, scan through the columns of raw data first and try to understand what kind of information they contain.</p><p>First, identify how we should answer this question. Should we show the trend in terms of months, days, or something else? The most important first step is to extract the actual date out of the given set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*8iTEOkj43TV-fPPUG7DmWg.png" /><figcaption>order_date column contains text instead of a date</figcaption></figure><p>There are multiple ways to extract the date. Since the order_date column contains text instead of a date, we need to covert this to the date format by extracting indvidual element first: one for day, one for month, and one for year. Then we combine them all again using the DATE Function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/222/1*7ts_mCAQXDcKjVahiPdFkQ.png" /><figcaption>Function to extract the day.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*l9UNJ-n6a6pMrnzdRAEJcw.png" /><figcaption>Function to get the Month.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*vwb4y-S5PwKnt8nYM70Pvw.png" /><figcaption>Function to get the Year</figcaption></figure><p>Now that we have extracted the day, month, and year, combine all 3 again to make an actual date using the DATE function: =DATE (year, month, day). Add a new column for this new date.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*oMaTq81gG4Qz4oUOC7cYMw.png" /><figcaption>Use CONCATENATE function to combine day, month and year. Then convert it to an actual date.</figcaption></figure><p>We can now create a pivot table showing the dates and the transaction counts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/342/1*D4GSoHfUh5a2d-LKIPkp-g.png" /><figcaption>Field list must contain these values</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*Z2sVWkEbrgAZ8tT5vjahNQ.png" /></figure><p>Now, we can answer question number 1 and 2.</p><ol><li><strong>Does the company have a stable transaction trend? Show the answer on a month to month basis.</strong></li><li><strong>What is the distribution of the order status?</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*LVLCwOAhBeDhzCl9TRuVzw.png" /></figure><p><strong>Answer on Q1:</strong> The graph shows an <em>increasing trend</em> from June to December 2021, followed by a <em>sharp decrease</em> from January to February 2022. The month of December records the <em>most transactions</em>, whilst June and July record the fewest. During the last quarter of the year is the business peak season, therefore they should check their marketing strategy during the lean season.</p><p><strong>Answer on Q2: </strong>The graph shows the distribution of order status per month with <em>December 2021</em> at peak, having <em>36 successful orders</em> and 1 returned order. During the month of October 2021 and January 2022, highest number of returned orders recorded.</p><p><strong>3. Can you tell something on the shipping fee? Do you think shipping fee affects the number of orders?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*F5b8ftNo9BzSGmpx2KLCeg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*JoAAAJuYcvR1oI7uc0_3CQ.png" /></figure><p><strong>Answer on Q3: </strong>Based from the graph, <em>southern region has the highest average shipping fee </em>while eastern has the lowest. T<em>he shipping fee has no effect on the number of orders</em> because, as shown, the southern region has the most transactions despite having the highest shipping rates. Therefore the company should check their marketing approach on Northeastern and Eastern region because despite having lower shipping fee, these regions have least transactions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76308c1a797" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Issues Log Data In a Logistics Company]]></title>
            <link>https://medium.com/@leonardbagos9/issues-log-data-in-a-logistics-company-e44130df1de1?source=rss-9ea2e6706770------2</link>
            <guid isPermaLink="false">https://medium.com/p/e44130df1de1</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[pivot]]></category>
            <category><![CDATA[logistics]]></category>
            <category><![CDATA[excel]]></category>
            <category><![CDATA[visualization]]></category>
            <dc:creator><![CDATA[Leonard Bagos]]></dc:creator>
            <pubDate>Sat, 11 Mar 2023 05:27:13 GMT</pubDate>
            <atom:updated>2023-03-11T05:46:06.739Z</atom:updated>
            <content:encoded><![CDATA[<h3>Task Description</h3><p>You are an analyst for a logistics company. Recently, many bad reviews have been posted on your website. Your task is to examine the data on the issues logged regarding delivery transactions in 2021.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*PtWQK1pRsgS0T2do3UFFSw.png" /></figure><h3>Questions:</h3><ol><li>When do we have the highest number of issues logged?</li><li>What are the issues logged? How many are there of each?</li><li>What actions were done? How many are there of each?</li><li>Show the turnaround time (in days) in attending to the issues. What possible action would you suggest to lessen the issues?</li></ol><h3>Process</h3><p>First, compute the turn around time (in days) by substracting returned date from action date. Then, proceed to making pivot tables for each questions.</p><ol><li>When do we have the highest number of issues logged?</li><li>What are the issues logged? How many are there of each?</li></ol><p>Here is the pivot table for question 1 and 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*LklufehZRaagHm1S96dkuw.png" /><figcaption>Based on the pivot table, A total of <strong>203 issue logs</strong> have been recorded.</figcaption></figure><p>Select the best chart that will represent your answer. For questions 1 and 2, we used stacked column chart to present two insights in one visualization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*94rdDKGP-UTH4YsBVe8ORw.png" /><figcaption>Top 3 Months with the highest no. of issue logs are April, August and November, then January. There are three issues that have been recorded: <strong>broken, undelivered, and wrong items. </strong>More than half of the issues encountered were due to broken item</figcaption></figure><p>3. What actions were done? How many are there of each?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*4T87YYO7_qCNKwW06pfi3g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*8uJ1kJiHzlf_C1r_YqTy7A.png" /><figcaption><strong>Refund, repair, and change items </strong>are the three distinct actions that are done for different issues. Almost three-quarters (74%) of the items have been refunded. The remaining items have been repaired or changed.</figcaption></figure><p>4. Show the turnaround time (in days) in attending to the issues. What possible action would you suggest to lessen the issues?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*DwioYrPB0UROPfWHjycDEQ.png" /><figcaption>The <strong>average turnaround time </strong>(no. of days to complete the action for each issues) is <strong>6.67 days</strong>.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*_a4GiCQG4FogCpsmpYjZIw.png" /><figcaption>The highest turnaround time recorded were during the month of <strong>September</strong> and <strong>October</strong>, it was when the slowest response or action have been taken.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*OP7is99dTjwebTN0vq2fRQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*Q9P4676Mj-bHdMnUexo6gg.png" /></figure><p>From scenarios stated here, we may track all returned transaction which were “CRITICALLY RATED”. And answer questions such as “What batch of production/ Purchase Order did it emanate?”, What kind of issues have we experienced from this dates to resolve this longer than average?</p><p>These questions will help to make us learn and prevent such highlighted data.</p><h3>Insights and Recommendations:</h3><ul><li>Based on the data, broken items accounted for more than half (56%) of the issues reported. <em>This implies that the company should take more precautions when transporting the items to ensure that they are not damaged.</em> They can also strictly monitor their couriers and advise them to deliver the items with extra care.</li><li>Meanwhile, <em>the company should review the actions taken for each issue they received</em> because, according to the data, refunding is the most common response to their customers. Refunded items have an impact on the supply chain by increasing holding costs due to the additional storage space and labor required to store these items. They could look into their repair section to reduce holding costs while increasing storage space for new products. These factors must be balanced by the logistics company.</li><li><em>The company should also keep track of the time it takes to resolve issues.</em> It took them nearly a week (6.67 days) on average to complete the action for each item. They have slower response when the issue is wrong item compared to broken item. Wrong item can easily be changed to the right one than to fix the issue regarding broken item. Furthermore, they also need to have a quicker refunding process because it took them longer than to change the item.</li><li>Taking into account the number of issues reported and the turnaround time per month. According to the data, although there are fewer complaints reported in September and October, same months also see the slowest response or action. <em>The company should make the most of their time responding to customers, especially during the month when there are fewer issues.</em></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e44130df1de1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Call Center Trend Analysis]]></title>
            <link>https://medium.com/@leonardbagos9/call-center-trend-analysis-b44d60e11e37?source=rss-9ea2e6706770------2</link>
            <guid isPermaLink="false">https://medium.com/p/b44d60e11e37</guid>
            <category><![CDATA[pwc]]></category>
            <category><![CDATA[call-center-trends]]></category>
            <dc:creator><![CDATA[Leonard Bagos]]></dc:creator>
            <pubDate>Fri, 10 Mar 2023 02:27:53 GMT</pubDate>
            <atom:updated>2023-03-13T17:18:40.841Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>A Case Study from PwC Switzerland: Power BI Virtual Experience</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*UoDuXrOeO8SzLUtTHfqWLg.png" /></figure><p>Interact with the dashboard here: <a href="https://www.novypro.com/project/pwccallcentertrend">https://www.novypro.com/project/pwccallcentertrend</a></p><p>The digital revolution and our fast-changing world requires a skills revolution. And it’s not just about the digital skills. The skills revolution is about helping people build their digital awareness, emotional intelligence and creativity to fully participate in the digital future workplace — and it needs to start now.</p><blockquote><strong>Task:</strong></blockquote><p>It’s omnipresent: telecom marketing. Better price here. Better service there. Best for small businesses here. Best for young urbanites there. But what do customers really want? Our client, a big telecom company needs to know. This email just arrived for you:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pic605yUKgnchwkF.png" /></figure><p>Create a dashboard in Power BI for Claire that reflects all relevant Key Performance Indicators (KPIs) and metrics in the dataset. Get creative!</p><p><strong>Possible KPIs include (to get you started, but not limited to):</strong></p><ul><li>Overall customer satisfaction</li><li>Overall calls answered/abandoned</li><li>Calls by time</li><li>Average speed of answer</li><li>Agent’s performance quadrant -&gt; average handle time (talk duration) vs calls answered</li></ul><blockquote><strong>Process:</strong></blockquote><p>First, import the data to Power BI. Before we load the data, we need to make sure that the data is clean. Click Transform Data.</p><p>I noticed that there are a lot of null values for the <em>speed of answer in the second’s </em>column, so I filtered to only show the null values and observed the data. As I can see in the filtered data, all calls were not answered therefore having null values for the average talk duration is valid. I didn’t change the null values to 0 because if the agent failed to answer the call, then there shouldn’t be any values for average talk duration and satisfaction rating. Making it zero will affect their KPI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Q9hyBtDRs-xaHZ79.png" /></figure><p>I noticed the <em>AvgTalkDuration</em> column is in Date/Time format which should be in duration. Change the data type to Time only, and then I added a new custom column and then subtracted the <em>AvgTalkDuration</em> column by 00:00:00.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*WQjfUrpGqCTg7aRV.png" /></figure><p>I renamed the new column to <em>Average Talk Duration</em> and changed the data type to duration and then show only seconds. The time column has date values in it, so I changed the data type to Time only.</p><blockquote>Analysis:</blockquote><p>I have created measures to answer the questions and provide different KPI or metrics. To summarize all the stats of the agents, I decided to insert a table that will show their total calls, answered calls, queue time, call time, % Answered Calls and overall satisfaction rating.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*yuc8GlGq7ONwcKEJom5Gmg.png" /></figure><p>Then, I created a column and bar chart that shows the total calls, answered calls and resolved calls. It shows that every Monday and Saturday, agents have higher resolved calls than the rest of the day of the week.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*BKiLlEUpyjLvPJoO7nG6Dw.png" /></figure><p>The last visualization is a doughnut chart showing all the call topics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/265/1*tEGeT1UEzx5UkLFjb8Yzfw.png" /></figure><p>Finally, I designed the dashboard and created the background using PowerPoint. Here is the final result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*UoDuXrOeO8SzLUtTHfqWLg.png" /></figure><blockquote>Insights:</blockquote><p>Based on the analysis, it appears that this call center has a relatively high rate of abandoned calls and a low overall satisfaction rating. This suggests that there may be issues with the call center’s ability to handle the volume of calls it receives, as well as potential problems with the quality of service provided to customers. Improving the call center’s answer rate and average response time, as well as increasing customer satisfaction, may be necessary to ensure the success of the business.</p><blockquote>Recommendations:</blockquote><ol><li>Identify and address the root cause of the high rate of abandoned calls. This could be due to a variety of factors, such as long wait times, complicated issues, or a lack of available agents. Once the underlying issue has been identified, steps can be taken to improve the call center’s performance.</li><li>Increase the number of available agents to handle the volume of calls. This could involve hiring additional agents, implementing a system for routing calls to multiple call centers, or utilizing technology such as virtual agents or chatbots to assist with customer inquiries.</li><li>Improve the call center’s average response time. This could be achieved through training and coaching for agents, implementing more efficient processes and technologies, or increasing the number of available agents to reduce wait times for customers.</li><li>Focus on increasing customer satisfaction. This could involve regularly surveying customers to gather feedback and identify areas for improvement, implementing customer service best practices, and providing ongoing training and support for call center agents.</li><li>Consider implementing a call-back system for abandoned calls. This could allow customers who are unable to wait on hold to leave their contact information and request a call back at a more convenient time. This could help to reduce the number of abandoned calls and improve the overall customer experience.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b44d60e11e37" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>