<?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 Olamidequzeem91 on Medium]]></title>
        <description><![CDATA[Stories by Olamidequzeem91 on Medium]]></description>
        <link>https://medium.com/@olamidequzeem91?source=rss-79cdc53b1c91------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4KEekdMeCI0ZgicEciSP2g.jpeg</url>
            <title>Stories by Olamidequzeem91 on Medium</title>
            <link>https://medium.com/@olamidequzeem91?source=rss-79cdc53b1c91------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 23:51:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@olamidequzeem91/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[Get Microsoft Certified for Free, 100% Discount on Exam Voucher!!!]]></title>
            <link>https://medium.com/@olamidequzeem91/get-microsoft-certified-for-free-100-discount-on-exam-voucher-9cf4e7053556?source=rss-79cdc53b1c91------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cf4e7053556</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Olamidequzeem91]]></dc:creator>
            <pubDate>Fri, 07 Nov 2025 09:19:50 GMT</pubDate>
            <atom:updated>2025-11-07T09:19:50.606Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8fzPo-eZ0dGHfIbf10OV-Q.png" /></figure><p>𝐇𝐚𝐯𝐞 𝐲𝐨𝐮 𝐛𝐞𝐞𝐧 𝐩𝐥𝐚𝐧𝐧𝐢𝐧𝐠 𝐭𝐨 𝐠𝐞𝐭 𝐌𝐢𝐜𝐫𝐨𝐬𝐨𝐟𝐭 𝐂𝐞𝐫𝐭𝐢𝐟𝐢𝐞𝐝? 𝐇𝐞𝐫𝐞’𝐬 𝐲𝐨𝐮𝐫 𝐜𝐡𝐚𝐧𝐜𝐞 𝐭𝐨 𝐝𝐨 𝐢𝐭 𝐟𝐨𝐫 𝐟𝐫𝐞𝐞!</p><p>Microsoft is running Fabric Data Days, a 50-day global learning event focused on Data &amp; AI, and they’re giving out 100% 𝐟𝐫𝐞𝐞 𝐞𝐱𝐚𝐦 𝐯𝐨𝐮𝐜𝐡𝐞𝐫𝐬 for:</p><p>🧠 𝐃𝐏-600: Fabric Analytics Engineer Associate<br>⚙️ 𝐃𝐏-700: Fabric Data Engineer Associate</p><h4>💡 𝐇𝐨𝐰 𝐢𝐭 𝐖𝐨𝐫𝐤𝐬:</h4><p>• Join the Fabric Community (simply sign in with your Microsoft account).</p><p>• Complete the DP-600/DP-700 Learning Path or watch any Fabric Data Days session (live or on-demand).</p><p>• Fill out the 100% Discount 𝐕𝐨𝐮𝐜𝐡𝐞𝐫 𝐑𝐞𝐪𝐮𝐞𝐬𝐭 𝐅𝐨𝐫𝐦.</p><p>• Voucher arrives within 2 weeks.</p><p>📅 Note: Offer valid for the first 10,000 𝗲𝗹𝗶𝗴𝗶𝗯𝗹𝗲 𝗮𝗽𝗽𝗹𝗶𝗰𝗮𝗻𝘁𝘀 who fill out the form by 𝗗𝗲𝗰𝗲𝗺𝗯𝗲𝗿 5, 2025, and plan to take the exam by 𝗗𝗲𝗰𝗲𝗺𝗯𝗲𝗿 31, 2025.</p><p>🔗 𝗥𝗲𝗮𝗱 𝘁𝗵𝗲 𝗧&amp;𝗖 𝗛𝗲𝗿𝗲: <a href="https://lnkd.in/d3DYDrYn">https://lnkd.in/d3DYDrYn</a><br> <br>🔗 𝐉𝐨𝐢𝐧 𝐭𝐡𝐞 𝐅𝐚𝐛𝐫𝐢𝐜 𝐂𝐨𝐦𝐦𝐮𝐧𝐢𝐭𝐲: <a href="https://lnkd.in/dhVRusJH">https://lnkd.in/dhVRusJH</a></p><p>🔗 𝗟𝗶𝗻𝗸 𝘁𝗼 𝗩𝗼𝘂𝗰𝗵𝗲𝗿 𝗥𝗲𝗾𝘂𝗲𝘀𝘁 𝗙𝗼𝗿𝗺: <a href="https://lnkd.in/d4Dq-BXt">https://lnkd.in/d4Dq-BXt</a></p><p>💬 𝗣𝗦: If you’re going for 𝐏𝐋-300 𝐨𝐫 𝐃𝐏-900, there’s also a 50% discount available!</p><p>This is a great opportunity to skill up, validate your expertise, and save up to <strong>$165 per exam, </strong>so don’t sleep on it!</p><p>You can follow me <a href="https://medium.com/@olamidequzeem91">here</a> and also connect with me on <a href="http://linkedin.com/in/olamidequzeem91">LinkedIn</a>. I look forward to sharing more enjoyable and insightful pieces with you soon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cf4e7053556" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Problem with the Power BI KPI Visual and a Quick Fix Using the New Visual Calculation Feature]]></title>
            <link>https://medium.com/@olamidequzeem91/the-problem-with-the-power-bi-kpi-visual-and-a-quick-fix-using-the-new-visual-calculation-feature-c7bfa0ae143e?source=rss-79cdc53b1c91------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7bfa0ae143e</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Olamidequzeem91]]></dc:creator>
            <pubDate>Wed, 22 Oct 2025 10:49:23 GMT</pubDate>
            <atom:updated>2025-10-22T11:41:08.113Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*4GCt_XnaW7y7d8JiApvWkA.png" /></figure><p>The <strong>KPI visual</strong> in Power BI is designed to track a metric against a benchmark; for example, <strong>revenue vs forecast</strong>, <strong>amount spent vs budget</strong>, or <strong>achieved sales vs target</strong>. This visual helps businesses understand exactly where they stand against predefined goals and, in turn, influences their decision-making going forward. However, a key limitation of this visual is that it <strong>displays data only for the latest date</strong>, rather than showing the <strong>cumulative or summarized value</strong>, as other card visuals do.</p><p>Below is a snapshot of the <strong>KPI visual</strong> in action, shown alongside two <strong>card visuals</strong> to better illustrate the problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*RuXXWOHcaq_QnaBoslr1Yw.png" /></figure><p>In the KPI visual above, the intention is to display <strong>Total Sales Achieved ($35.81M)</strong> against the <strong>Target ($37.91M), </strong>the same values reflected in the card visuals just above it. However, what’s actually being displayed are different values. Upon inspection (using <strong>Show as a Table</strong>), it becomes clear that the KPI visual is pulling the <strong>sales value and associated target for the latest date</strong> in the dataset, rather than the cumulative totals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*5OcqYcsJ7IGnVEuyVtm_hw.png" /></figure><p>Luckily, there’s a quick fix for this: enter the new <strong>Visual Calculation feature</strong>.</p><h4>New Visual Calculation Feature</h4><p>The <strong>New Visual Calculation</strong> feature allows DAX calculations to be defined and executed <strong>directly within a visual</strong>, without needing to modify the underlying data model or create separate measures.</p><p>In this case, we’ll be using the <strong>Running SUM </strong>template to fix this KPI visual issue, ensuring that it reflects the <strong>cumulative total</strong> rather than just the latest date’s value.</p><p>You can read more about this feature <a href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-visual-calculations-overview">here.</a></p><h4>Creating the Running Sum for <strong>Target</strong> and <strong>Sales Achieved</strong></h4><p>This is a pretty straightforward process, and we’ll do it in <strong>three steps</strong>:</p><ol><li><strong>Select the KPI visual</strong>, then click the <strong>three-dot icon</strong> (More options) in the top-right corner.</li><li>From the drop-down menu, click <strong>New visual calculation</strong> and select <strong>Running sum</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*Z8y5IVtG3jae0jxlD8iO1Q.png" /></figure><p>3. A prefilled formula will appear, and this is where the setup begins:</p><p>We start by creating the <strong>running sum for Total Sales</strong>. Rename the calculation from Running sum to something more descriptive, like cumulative sales , and replace the Field in the formula with Total Sales measures your KPI visual is referencing.</p><p>Next, repeat the process for Total Target , rename this new visual calculation as Cumulative Target (or simply <strong>Target</strong>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*j5mClZDdOXlTMcG1hT2M0A.png" /></figure><p>I’ve renamed my running sums as <strong>Sales</strong> and <strong>Targets</strong>, and you should have something similar to the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*OW4qGSk7FrATMHZD1JLWxA.png" /></figure><blockquote><strong>Tip</strong>💡<strong>:</strong> You can click the <strong>fx</strong> icon to add another visual calculation.</blockquote><p>At this point, the <strong>Fields</strong> pane under the visualization panel should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/292/1*rOLfbIefK_YGOs1dii0hDQ.png" /></figure><ul><li>First, <strong>drag the </strong>Target <strong>Running Sum</strong> to the Target<strong>field</strong>.</li><li>Next, <strong>toggle off the visibility</strong> for <em>Total Sales</em> and <em>Total Target</em>.</li><li>Then, <strong>enable</strong> the new visual calculations (the ones prefixed with the <em>fx</em> and column chart icon).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*nQ32IxQkZD1owHKKnPsG2g.png" /></figure><p>And the Field pane should look like the below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*rzU75oqr4w-dz3lkrKe14A.png" /></figure><p>Once that’s done, your KPI visual should now display the <strong>cumulative values</strong> as intended.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*g4evg62MUgcQbhkli9DNgQ.png" /></figure><blockquote>Note: The visual calculations created have zero impact on the data model</blockquote><p>With this fix, data analysts can better leverage the KPI visual to help businesses stay informed on how far they’ve come in achieving their set targets. The updated visual now responds seamlessly to any year or period slicers on the report, reflecting cumulative performance as expected. This not only makes the KPI visual more reliable for tracking progress but also reinforces its purpose in helping decision-makers stay aligned with their goals at a glance.</p><p>As an alternative approach, the N<strong>ew Card visual</strong> also allows you to reference another metric, which can serve a similar purpose. I might explore this in more detail in a future post.</p><blockquote><em>If you made it this far, thank you for reading! Feel free to drop a comment, leave a clap, or even a little dance 💃. You can follow me </em><a href="https://medium.com/@olamidequzeem91"><em>here</em></a><em> and also connect with me on </em><a href="http://linkedin.com/in/olamidequzeem91"><em>LinkedIn</em></a><em>. I look forward to sharing more enjoyable and insightful pieces with you soon!</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7bfa0ae143e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Power BI: Why AI Won’t Help you Land a Data Analytics Job]]></title>
            <link>https://medium.com/@olamidequzeem91/power-bi-why-ai-wont-help-you-land-a-data-analytics-job-0fe9d94f046f?source=rss-79cdc53b1c91------2</link>
            <guid isPermaLink="false">https://medium.com/p/0fe9d94f046f</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[power-bi]]></category>
            <dc:creator><![CDATA[Olamidequzeem91]]></dc:creator>
            <pubDate>Sat, 30 Aug 2025 10:34:09 GMT</pubDate>
            <atom:updated>2025-08-30T10:34:09.110Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WXDaZ9OiIv95iHyxpJhLLA.png" /></figure><p>While AI may help get your foot in the door, it’s your ability to work without it that will ultimately land you the job. During interviews, hiring managers consider many factors when evaluating candidates. These factors include how strong a candidate’s foundation is with the required tech stack and how easy they are to work with(in other words, how likable they find you).</p><p>In a Power BI practical interview, you’ll typically be given a dataset along with business questions to answer. What hiring managers are really looking for is how you think through problems, clean and transform data, and translate numbers into meaningful business insights, not how quickly you can prompt GPT to generate DAX formulas for a Calendar Table, Time Intelligence functions, or calculated columns. (And in many cases, AI might not even be allowed during the test.)</p><p>In this article, I’ll walk you through 5 must-know Power BI skills you should be able to handle without AI, the very skills that can help you land that Data Analytics job</p><h3>1. Data Cleaning &amp; Manipulation in Power Query</h3><p>Datasets provided in a Power BI interview will most likely come as flat files. Before loading them into Power BI, it’s crucial to transform them in<strong> Power Query.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*law2VvjMgiDxYZrJWjIDbg.png" /></figure><p>First, check that all columns have the correct data types. If a date column is in a numeric format (e.g., 20250928), you’ll need to transform it using a custom column with M language in Power Query or with formulas in Excel. The following will convert it to the correct date format:</p><pre>= Date.FromText(<br>        Text.Start([DateKey],4) &amp; &quot;-&quot; &amp; <br>        Text.Middle([Datekey],4,2) &amp; &quot;-&quot; &amp; <br>        Text.End([Datekey],2))</pre><p>Which is the equivalent of the below in Excel:</p><pre>= DATE(LEFT(A2, 4), MID(A2, 5,2), RIGHT(A2, 2))</pre><p>For columns identified as <strong>categorical variables</strong>, make sure to <strong>TRIM </strong>whitespace and enforce consistent capitalization across values.</p><blockquote><strong>Bonus Tip:</strong> By default, Power Query only profiles the first 1,000 rows. To get a more accurate understanding of your dataset, change this setting to profile the entire dataset.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*oveW54PebM0gLMpEEO29_g.png" /></figure><h3><strong>2. Date Table</strong></h3><p>A <strong>Date table</strong> is essential in Power BI because it enables accurate time-based reporting, serves as a single source of truth for all date-related data, and is a prerequisite for using <strong>Time Intelligence DAX functions</strong>.</p><p>You can create a Date table using either <strong>CALENDARAUTO</strong> or <strong>CALENDAR</strong>:</p><p>In Power BI Desktop, switch to the table view, and click on <strong>New table</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*tLE4Z1SUmxPvmdcIQNcABw.png" /></figure><h4>Date Table with CALENDARAUTO</h4><pre>Calendar = ADDCOLUMNS(CALENDARAUTO(),<br>                        &quot;Month No&quot;, MONTH([Date]),<br>                        &quot;Month&quot;, FORMAT([Date], &quot;MMMM&quot;),<br>                        &quot;Mnth&quot;, FORMAT([Date], &quot;mmm&quot;),<br>                        &quot;Year&quot;, YEAR([Date]),<br>                        &quot;Quarter&quot;, &quot;Q&quot; &amp; QUARTER([Date])<br>)</pre><p>The DAX expression is creating a <strong>Calendar table</strong> that serves as a proper Date Dimension for reporting.</p><ul><li><strong>CALENDARAUTO()</strong> scans the data model to detect the minimum and maximum dates across all tables and generates a continuous list of dates within that range.</li><li><strong>ADDCOLUMNS</strong> enriches each date with attributes like Month, Year, and Quarter for easier time-based reporting.</li></ul><h4><strong>Date Table with CALENDAR Function</strong></h4><pre>Calendar =<br>ADDCOLUMNS(<br>    CALENDAR(<br>        MIN(FactSales[datekey]),<br>        MAX(FactSales[datekey])<br>    ),<br>    &quot;Month No&quot;, MONTH([Date]),<br>    &quot;Month&quot;, FORMAT([Date], &quot;MMMM&quot;),<br>    &quot;Mnth&quot;, FORMAT([Date], &quot;mmm&quot;),<br>    &quot;Year&quot;, YEAR([Date]),<br>    &quot;Quarter&quot;, &quot;Q&quot; &amp; QUARTER([Date])<br>)</pre><ul><li><strong>CALENDAR()</strong> gives you explicit control to define the start and end dates.</li><li>This is particularly useful when a fact table has multiple date columns (e.g., OrderDate, ShipDate, InvoiceDate) since you can decide which column to base the calendar on.</li></ul><h4>Final Steps</h4><ul><li>The Calendar table’s Date column will default to <strong>DateTime format</strong> → convert it to <strong>Date</strong>.</li><li><strong>Mark as Date Table</strong> (Modeling tab → Mark as Date Table).</li><li>In <strong>Model View</strong>, create a relationship between the Date column in your fact table and the Date column in the Calendar table.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*XqThrgQpV_UDaWo-f8f0bw.png" /></figure><blockquote><strong>Bonus Tip:</strong> In the <strong>Table View</strong>, sort the <em>Month</em> column by <em>Month No</em> so that months appear in the correct order instead of alphabetically. Also, consider creating <strong>hierarchies</strong> (e.g., <em>Year → Quarter → Month → Date</em>) to make drilling down in visuals much easier and more intuitive.</blockquote><h3>3. CALCULATE Function</h3><p>The CALCULATE Function is one of the most important in Power BI because of its versatility. It allows you to modify the <strong>filter context</strong>, making it possible to perform complex calculations and tailor measures to specific scenarios. Think of it as the engine behind custom analysis, for example, creating a measure that returns total sales but only for a particular product or group of products. Simply put, CALCULATE is the core function that brings flexibility and power to your DAX expressions.</p><p>Below is the syntax:</p><pre>CALCULATE(&lt;expression&gt;[, &lt;filter1&gt; [, &lt;filter2&gt; [, …]]])</pre><p><strong>&lt;expression&gt;</strong><br> This is what you want to calculate, usually a measure (like [Total Sales]) or an aggregation (like SUM(Sales[Amount])).</p><p><strong>&lt;filter1&gt;, &lt;filter2&gt;, …</strong> <em>(optional)</em><br> These are one or more filter conditions you apply. Each filter <strong>modifies the context</strong> in which the expression is evaluated.<br> Filters can be:</p><ul><li>Boolean conditions (e.g., Region = &quot;West&quot;)</li><li>Table expressions (like FILTER(&#39;Calendar&#39;, &#39;Calendar&#39;[Year] = 2024))</li><li>Time-intelligence functions (like DATEADD or SAMEPERIODLASTYEAR)</li></ul><p>To read more about the CALCULATE function, click <a href="https://learn.microsoft.com/en-us/dax/calculate-function-dax">here</a>!</p><h3>4. Time Intelligence DAX Measures</h3><p>In almost every Power BI practical interview, you’ll likely be asked questions that involve showing trends over time, like monthly sales or device activations. This is where Time Intelligence functions in DAX shine. Often paired with CALCULATE, they allow you to handle a wide range of time-based analysis questions with ease</p><p>For instance:</p><ul><li>January → 500 renewals</li><li>February → 600 renewals</li><li>March → 400 renewals</li></ul><p>Here, Month-over-Month (MoM) will show:</p><ul><li><strong>February</strong> was <strong>up 20%</strong> compared to January.</li><li><strong>March</strong> was <strong>down 33%</strong> compared to February.</li></ul><p><strong>Step 1</strong>: Create a dedicated <em>Measures Table</em> (to keep measures organized):</p><p>To keep your workspace tidy, create a table that holds only your measures:</p><pre>_Measures = </pre><p>The underscore _ ensures this table stays at the top of your Fields list.</p><p>2. Create your <strong>MoM % Change measure</strong>:</p><pre>-- Measure to calculate Month-over-Month % Change in Total Sales (no VAR)<br>Total Sales MoM % Change =<br>DIVIDE(<br>    [Total Sales] - CALCULATE(                -- Current Month Sales - Previous Month Sales<br>        [Total Sales],                        <br>        DATEADD(&#39;Calendar&#39;[Date], -1, MONTH)  -- Shifts context back by 1 month<br>    ),<br>    CALCULATE(                                -- Denominator: Previous Month Sales<br>        [Total Sales],<br>        DATEADD(&#39;Calendar&#39;[Date], -1, MONTH)<br>    ),<br>    0                                         -- Returns 0 if denominator is blank/0<br>)</pre><blockquote>This can easily be adapted for Year-over-Year (YoY) or other time periods by switching out the interval in DATEADD.</blockquote><p>The DATEADD function <strong>returns a table of shifted dates</strong> based on three parameters:</p><ol><li><strong>Date column</strong> (must come from a proper date table, e.g., &#39;Calendar&#39;[Date]).</li><li><strong>Shift integer</strong> (positive → forward, negative → backward).</li><li><strong>Interval</strong> → YEAR, QUARTER, MONTH, or DAY.</li></ol><blockquote><strong>Bonus Tip</strong>: Don’t stop at DATEADD. Be sure to explore other <strong>Time Intelligence functions</strong> you’ll almost certainly encounter in practice: such as SAMEPERIODLASTYEAR, TOTALYTD, PREVIOUSMONTH, PARALLELPERIOD <a href="https://learn.microsoft.com/en-us/dax/time-intelligence-functions-dax">Microsoft Docs – Time Intelligence Functions</a></blockquote><h3>5. VARIABLES to Improve DAX Formula</h3><p>Certain calculations require complex expressions, and sometimes you need to <strong>reuse logic</strong> within the same measure (as seen in the MoM % Change example above).</p><p>By using <strong>variables (VAR)</strong> in DAX, you can:</p><ul><li>Improve performance (reduces repeated calculations)</li><li>Increase reliability</li><li>Make formulas more readable</li><li>Reduce complexity</li></ul><p>Here’s the <strong>MoM % Change</strong> measure rewritten with variables:</p><pre>Total Sales MoM % Change =<br>VAR _CurrentMonthSales =<br>    [Total Sales]<br>VAR _PreviousMonthSales =<br>    CALCULATE(<br>        [Total Sales],<br>        DATEADD(&#39;Calendar&#39;[Date], -1, MONTH)<br>    )<br>RETURN<br>    DIVIDE(<br>        _CurrentMonthSales - _PreviousMonthSales,<br>        _PreviousMonthSales,<br>        0<br>    )</pre><blockquote><strong>Bonus Tip</strong>: Start your variable names with an underscore (_). This ensures they <strong>appear first in IntelliSense</strong> (auto-suggestions) when calling them later, saving time compared to scrolling/searching through all names.</blockquote><p>Mastering these 5 areas, cleaning and preparing your data, building proper DATE tables, understanding how CALCULATEworks, applying time intelligence, and leveraging variables, will give you a strong edge in any Power BI interview. These are not just technical tricks but the building blocks of clear, impactful analysis that interviewers love to see.</p><p>Also, AI for you as a Data Analyst can be a leveler, helping you move from beginner to intermediate. But for hiring managers, it can also be an eye-opener, a sieve that separates those who truly understand the foundations of their stack from those who don’t.</p><p>As strange as it may sound, a major part of getting hired in an interview often comes down to how likable you seem, and that impression won’t be built by showing you can prompt ChatGPT to create a Calendar Table or basic Time Intelligence measures.</p><p>Getting shortlisted for interviews already proves you’re putting in the work and doing a lot of things right. But to actually get the job, you need to show that you can dig for insights with just a shovel, just as well as you could with an excavator. It might not be the perfect analogy, but I’m sure you get the gist.</p><blockquote>If you made it this far, thank you for reading! Feel free to drop a comment, leave a clap, or even a little dance 💃. You can follow me <a href="http://medium.com/@olamidequzeem91">here</a> and also connect with me on <a href="http://linkedin.com/in/olamidequzeem91">LinkedIn</a>. I look forward to sharing more enjoyable and insightful pieces with you soon.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0fe9d94f046f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Winsorization: An act of Accommodating Outliers]]></title>
            <link>https://medium.com/@olamidequzeem91/winsorization-an-act-of-accommodating-outliers-22ced87d03fb?source=rss-79cdc53b1c91------2</link>
            <guid isPermaLink="false">https://medium.com/p/22ced87d03fb</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[science]]></category>
            <dc:creator><![CDATA[Olamidequzeem91]]></dc:creator>
            <pubDate>Sat, 19 Apr 2025 12:27:35 GMT</pubDate>
            <atom:updated>2025-04-19T12:27:35.490Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*rnuE5XsnLzvdUuulniqXyg.jpeg" /></figure><p>Outliers are like the spice in data, they’re either the key insight or the distraction that ruins the dish. In data analysis, handling these extreme values is crucial for maintaining the integrity of statistical models and visualizations. In this article, I will discuss how this can be done with winsorization, explaining what it is, how to apply it (in Power BI and Python), and why it might just be a game-changer for you📊.</p><h3>What is Winsorization? 🙃</h3><p>Winsorization (also called <em>winsorizing</em>), in its simplest form, is the act of replacing extreme values in a dataset with values closer to the bulk of the data. Instead of removing outliers entirely, it pulls them inward, ensuring they don’t overly distort statistical measures.</p><p>Formally, it is a statistical technique that limits extreme values by capping them at specified percentiles. Values below a chosen lower bound (e.g., 5th percentile) are set to that bound, and values above an upper bound (e.g., 95th percentile) are set to that upper limit. This method retains all data points while reducing the influence of potentially spurious outliers.</p><p><strong>Fun fact</strong>💡: The technique is named after<em> Charles P. Winsor</em> (1895–1951), an engineer-turned-biostatistician who promoted robust alternatives to traditional statistical methods.</p><h3>Why Winsorize? 🤷</h3><p>If outliers in a dataset are due to errors, it’s only natural to have them excluded or corrected. But when they represent genuine data, they should be incorporated into the analysis, just not in a way that heavily skews statistical measures like the mean and standard deviation. Winsorization helps achieve this by reducing the influence of outliers, making these measures more robust and reliable.</p><h3>How It Works: ✂️</h3><p>First, outliers (extreme values) need to be identified. This is commonly done using the <strong>Interquartile Range (IQR)</strong> method.</p><pre>Lower bound= Q1​ − (1.5 * IQR)<br>Upper bound= Q3 + (1.5 * IQR)<br><br>where; <br><br>IQR= Q3 - Q1<br><br>Q1 = first quartile (25th percentile)<br><br>Q3 = Third quartile (75th percentile)<br><br>A value is said to be an outlier when;<br><br>value &lt; lower bound or value &gt; upper bound</pre><p>Once identified:</p><ul><li>Lower extreme values (e.g., below the 5th percentile) are replaced with the value at that percentile.</li><li>Upper extreme values (e.g., above the 95th percentile) are capped at that percentile.</li></ul><p>The specific percentile cut-offs can vary depending on domain expertise or business context 💡.</p><h3>Winsorizing in Power BI (DAX)</h3><p>In Power BI, we can winsorize a column by capping values at the 5th and 95th percentiles using DAX. This helps reduce the influence of extreme outliers without removing them from the dataset.</p><p>Let’s say the column Expense is from a table called Finance. Here’s how we can create a new calculated column called UpdatedExpense:</p><h3>DAX Code: 🧮</h3><pre>UpdatedExpense = <br>VAR p5 = PERCENTILE.INC(Finance[Expense], 0.05)<br>VAR p95 = PERCENTILE.INC(Finance[Expense], 0.95)<br>VAR CurrentValue = Finance[Expense]<br><br>RETURN<br>    IF(<br>        CurrentValue &lt; p5,<br>        p5,<br>        IF(<br>            CurrentValue &gt; p95,<br>            p95,<br>            CurrentValue<br>        )<br>    )</pre><h4>🧠Use Case: Visual Impact of Winsorization</h4><p>Once created, this column can be used in visualizations to make histograms and scatter plots more interpretable, no more tiny bars because of one massive value!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*czfTupZzD_i_rMucHOBb-w.png" /></figure><h3>Winsorizing in Python</h3><p>Python makes this just as simple, especially with pandas.</p><h4>Code Example: 🐍</h4><pre>import pandas as pd<br><br># Sample DataFrame (replace this with your actual data)<br>df= pd.read_csv(&quot;finance.csv&quot;)<br><br># Calculate the 5th and 95th percentiles<br>p5 = df[&#39;Expense&#39;].quantile(0.05)<br>p95 = df[&#39;Expense&#39;].quantile(0.95)<br><br># Winsorize the Expense column<br>df[&#39;UpdatedExpense&#39;] = df[&#39;Expense&#39;].apply(<br>    lambda x: p5 if x &lt; p5 else p95 if x &gt; p95 else x<br>)</pre><h4>When to Winsorize? 💭</h4><p>Extreme outliers can make plots, like histograms or boxplots, misleading. For instance, in a histogram, a few extreme values can cause the bars to be stretched, making it hard to discern the true distribution of the data. By winsorizing the outliers, the distribution becomes clearer and more representative of the majority of the data.</p><h4>When NOT to Winsorize 🚫</h4><p>Avoid winsorizing if:</p><ul><li>Outliers are meaningful (e.g., in fraud or anomaly detection).</li><li>Data integrity must remain untouched (e.g., audits or transactional logs).</li><li>Your models are robust to outliers (e.g., median-based algorithms).</li></ul><h3>Conclusion ✨</h3><p>Outliers can’t be ignored, but they don’t always have to be erased. <strong>Winsorization</strong> gives you a smooth, flexible middle ground, respecting your data while taming its extremes. Whether you’re building visual dashboards in Power BI or prepping data for machine learning in Python, winsorizing keeps your outputs stable, interpretable, and clean.</p><p>Next time your histogram looks broken or your mean is all over the place, winsorize, don’t agonize. 😉</p><p>Thanks for staying till the end!!!🙌</p><p>I wrote about outliers <a href="https://medium.com/@olamidequzeem91/outliers-what-are-they-and-how-to-spot-and-treat-them-9e375dc9a832">here</a>; do well to give it a read.</p><p>💬 Let me know in the comments how <em>you</em> treat outliers in your dataset. Do you winsorize, remove them, or just let them be? I’d love to hear your thoughts!</p><p>Kindly check out my other work, and you can connect with me here on <a href="https://linkedin.com/in/olamidequzeem91">LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22ced87d03fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Import 600k+ Excel Rows to MySQL: No Data Compromised in Under a Minute with Zero Data Loss]]></title>
            <link>https://medium.com/@olamidequzeem91/import-600k-excel-rows-to-mysql-no-data-compromised-in-under-a-minute-with-zero-data-loss-12bf32cc2540?source=rss-79cdc53b1c91------2</link>
            <guid isPermaLink="false">https://medium.com/p/12bf32cc2540</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Olamidequzeem91]]></dc:creator>
            <pubDate>Fri, 03 Jan 2025 12:37:43 GMT</pubDate>
            <atom:updated>2025-01-03T12:37:43.804Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*kYzgV05_AD7WtgDm_KO3wQ.png" /></figure><h4><strong>Why Efficient Data Import Matters?</strong></h4><p>Importing large datasets — whether in CSV or TXT format — into a database is an essential skill for data practitioners. Whether you’re a data analyst, engineer, or scientist, the ability to efficiently and accurately transfer data becomes increasingly critical as datasets grow larger and more complex. Without the right approach, importing hundreds of thousands of rows — like 600K+ — can quickly turn into a slow, error-prone process, leading to frustration and potential data loss.</p><p>In this guide, I’ll show you how to overcome these challenges by importing a massive Excel dataset into MySQL in under a minute. By using an optimized workflow, we’ll achieve both speed and precision, ensuring zero data compromise. Whether you’re working with production data or tackling a personal project, this method will save you time and help maintain the integrity of your data at every step. Let’s get started!</p><h3>Preparing the Data for Import</h3><p>In this step, we’ll focus on preparing the dataset for a smooth transition from Excel to MySQL, ensuring the process is efficient and error-free. For this guide, we’ll use the <a href="https://www.kaggle.com/datasets/kiva/data-science-for-good-kiva-crowdfunding/data"><strong>Kiva</strong></a><strong> Loan dataset</strong>, which consists of over <strong>670,000 rows</strong> and several columns with varying data types, including text, numbers, and dates. Here’s how I prepared the dataset:</p><h4>Cleaning Steps in Excel</h4><p>Before importing into MySQL, the dataset underwent a series of preprocessing steps to ensure compatibility and data integrity:</p><ul><li><strong>Date and Time Formatting:</strong><br>MySQL requires dates to follow the format yyyy-mm-dd HH:mm:ss. Any datetime-related columns in the dataset were carefully reformatted to align with this standard using Excel&#39;s custom format option.</li><li><strong>Checking Character Length:</strong><br>Each text column was scrutinized to determine the maximum character length. This is essential for defining column data types (e.g., VARCHAR) and avoiding truncation issues during the import.</li><li><strong>Handling Null Values:</strong><br>Null values were either replaced with placeholders (e.g., “Unknown” for categorical data) or left empty to maintain the dataset’s accuracy.</li><li><strong>Removing Inconsistencies:</strong><br>Columns with inconsistent data entries (e.g., extra spaces or mismatched formats) were cleaned to ensure uniformity.</li></ul><p>To help you follow along, here’s the <a href="https://drive.google.com/file/d/1vvcvC8d2_B_0MWMVBoefgjkk3dA3nhkF/view?usp=sharing">link to the cleaned dataset </a>and for reproducibility, here’s the <a href="https://docs.google.com/document/d/1y62B00UQGHPAPTWj97wmnqRV6iCbU5CdjMweo4xGkok/edit?usp=sharing">detailed cleaning guide</a> in this Google Doc. It outlines every step taken to prepare the Kiva Loan dataset for import, ensuring transparency and ease of replication.</p><h3>Creating the Schema and Skeleton Table in MySQL</h3><p>To efficiently manage and import the cleaned Kiva Loans dataset, we begin by creating a dedicated schema and a skeleton table in MySQL. The following SQL script outlines the steps:</p><h4>SQL Script for Schema and Skeleton Table</h4><pre>-- Drop schema if it already exists<br>DROP SCHEMA IF EXISTS kiva;<br><br>-- Create a new schema named &#39;kiva&#39;<br>CREATE SCHEMA `kiva`;<br><br>-- Switch to the &#39;kiva&#39; schema<br>USE kiva;<br><br>-- Create the &#39;kiva_loans&#39; table<br>CREATE TABLE kiva_loans (<br>  `loan_id` VARCHAR(7) NOT NULL, <br>  `funded_amount` INT,<br>  `loan_amount` INT,<br>  `activity` VARCHAR(32),<br>  `sector` VARCHAR(18),<br>  `use` VARCHAR(255) NULL,<br>  `country_code` VARCHAR(2),<br>  `country` VARCHAR(36),<br>  `region` VARCHAR(255), <br>  `currency` VARCHAR(3),<br>  `partner_id` VARCHAR(3) NULL,<br>  `posted_time` TIMESTAMP NULL,<br>  `disbursed_time` TIMESTAMP NULL,<br>  `funded_time` TIMESTAMP NULL,<br>  `term_in_months` INT,<br>  `lender_count` INT,<br>  `tags` VARCHAR(255) NULL, <br>  `borrower_genders` VARCHAR(255), <br>  `repayment_interval` VARCHAR(10),<br>  `date` DATE,<br>  PRIMARY KEY (`loan_id`) -- Set loan_id as the primary key<br>);</pre><p>Creating the schema and defining the skeleton table for import ensures that the database structure aligns perfectly with the cleaned dataset. This minimizes import errors, maintains data integrity, and lays the groundwork for efficient query execution in later stages.</p><h3>Setting Up for Data Import</h3><p>Successful data imports require proper set up. Before proceeding, ensure the following prerequisites are met:</p><ul><li><strong>Enable </strong><strong>local_infile in MySQL:</strong> This setting allows MySQL to read data from local files.</li><li><strong>Establish a supported MySQL folder path for uploads:</strong> Choose a suitable directory on your server for storing the Excel file.</li><li><strong>Verify the data path in </strong><strong>my.ini:</strong> Verify and note how the upload file path is formatted in the my.ini configuration file.</li></ul><p>follow these steps to prepare your system and successfully import the dataset:</p><h4>Step 1: Enable local_infile</h4><p>To allow loading data from a local file into the database, you need to ensure the local_infile option is enabled:</p><ol><li>From MySQL Workbenchntype:</li></ol><pre>SHOW VARIABLES LIKE &quot;local_infile&quot;;</pre><p>If you see the following result, local_infile is currently disabled:</p><pre>+---------------+-------+<br>| Variable_name | Value |<br>+---------------+-------+<br>| local_infile  | OFF   |<br>+---------------+-------+</pre><p>To enable it, run:</p><pre>SET GLOBAL local_infile = 1;</pre><h4>Step 2: Verify secure_file_priv Path</h4><p>MySQL restricts the file paths from which data can be loaded. To find the allowed path:</p><ol><li>Run the following in MySQL workbench:</li></ol><pre>SHOW VARIABLES LIKE &quot;secure_file_priv&quot;;</pre><p>You should see an output similar to this:</p><pre>+------------------+---------------------------------------------+<br>| Variable_name    | Value                                       |<br>+------------------+---------------------------------------------+<br>| secure_file_priv | C:\ProgramData\MySQL\MySQL Server 8.0\Uploads\ |<br>+------------------+---------------------------------------------+</pre><p>2. Ensure your CSV file (kiva_loans.csv) is moved to this folder.</p><h4>Step 3: Move the Dataset to the Secured File Folder</h4><p>The ProgramData folder, which contains the target upload directory, is hidden by default. To make it visible and move your dataset:</p><p><strong>Enable Hidden Items in File Explorer:</strong></p><ol><li>Open File Explorer.</li><li>Click on the <strong>View</strong> tab in the toolbar.</li><li>Check the <strong>Hidden Items</strong> box ( This will make theProgramData . folder visbile</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6-O5Mj7_8WnFxpACw5me8A.png" /></figure><p><strong>Moving the Dataset to the Secured Folder:</strong><br>Once the folder is visible, navigate to the appropriate directory (e.g., C:\ProgramData\MySQL\MySQL Server 8.0\Uploads) and move the dataset file (e.g., kiva_loans.csv) to this location</p><h3>Step 4: Check Path Formatting in my.ini</h3><p>After moving the dataset, we confirm the path formatting in the my.ini file to ensure consistency during the import process. Here&#39;s how:</p><p><strong>Accessing the </strong><strong>my.ini File:</strong></p><ol><li>Navigate to the same ProgramData folder:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*6sHNff5hL3HzozPYLTQ_pA.png" /></figure><p>2. Open the my.ini file with a text editor like Notepad.</p><ul><li>Scroll through the file to find the secure_file_priv variable.</li><li>Check whether the path uses forward slashes (/) or backslashes (\).</li><li>Use the same format in your LOAD DATA INFILE command.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*J7x_PMw_VE_pcNycmVf0kw.png" /></figure><h3>Step 5: Import the Dataset</h3><p>With the file in the correct folder and the path verified, proceed with the import process using the LOAD DATA INFILE command.</p><pre>USE kiva;<br><br>-- Importing Data into the kiva loan table <br>LOAD DATA INFILE &#39;C:/ProgramData/MySQL/MySQL Server 8.0/Uploads/kiva_loans.csv&#39; -- Path to the input CSV file<br>INTO TABLE kiva_loans -- Target table where data will be imported<br>FIELDS TERMINATED BY &#39;,&#39; -- Fields in the file are separated by commas<br>ENCLOSED BY &#39;&quot;&#39; -- Fields are enclosed within double quotes<br>LINES TERMINATED BY &#39;\n&#39; -- Each line (record) ends with a newline character<br>IGNORE 1 LINES; -- Skip the first line as it contains column headers</pre><p>Took about 30 Seconds</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AI7eFF7b6jVnNRoN9Kmwrg.png" /></figure><p>670,813 rows were successfully imported</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BQ-L1zShlZl9iLT8snRt3A.png" /></figure><p>While MySQL Workbench’s Table Data Import Wizard provides a user-friendly way to load datasets, it is not the most efficient option for handling large datasets like the 670K+ rows in the Kiva Loan dataset. The wizard often struggles with speed and scalability, taking significantly longer to complete and running the risk of data truncation or other inconsistencies.</p><p>In contrast, the approach outlined in this guide leverages the <strong>LOAD DATA INFILE</strong> command, ensuring not only rapid import times but also complete control over data formatting and integrity. This method eliminates the bottlenecks associated with graphical tools, enabling a seamless, lossless transfer in under a minute.</p><p>By mastering this optimized workflow, you gain the ability to handle large-scale data imports with precision and efficiency, skills that are invaluable for any data professional.</p><p><strong>To learn more and access the complete project repository, visit:</strong> <a href="https://github.com/quzeem91/Kiva-Loan-Part-1-Database-Set-Up-Normalization">Link</a></p><p>Thanks for staying till the end!!!!</p><p>Kindly check out my other posts <a href="https://medium.com/@olamidequzeem91">here</a>, and you can also connect with me on <a href="https://linkedin.com/in/olamidequzeem91">Linkedin</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12bf32cc2540" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL: An Introduction to Stored Procedures]]></title>
            <link>https://medium.com/@olamidequzeem91/sql-an-introduction-to-stored-procedures-da3ab659d4ad?source=rss-79cdc53b1c91------2</link>
            <guid isPermaLink="false">https://medium.com/p/da3ab659d4ad</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Olamidequzeem91]]></dc:creator>
            <pubDate>Wed, 11 Dec 2024 08:43:35 GMT</pubDate>
            <atom:updated>2024-12-22T10:20:21.165Z</atom:updated>
            <content:encoded><![CDATA[<h3>SQL: How to Create Stored Procedures</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*a7zLbMkE_i-TQgsDVcANHw.jpeg" /></figure><p>As data professionals working with databases, we often find ourselves repeatedly rewriting groups of SQL statements — whether simple or complex — for ad hoc analyses or recurring weekly reports. This process can become tedious over time. However, one effective way to streamline this workflow is by using Stored Procedures. Stored procedures are precompiled SQL scripts that can accept parameters when needed, allowing them to not only automate repetitive tasks but also enhance performance and maintain consistency across workflows.</p><h3><strong>What are Stored Procedures?</strong></h3><p>In their simplest form, stored procedures are a collection of SQL queries that can be <strong>saved </strong>and <strong>reused multiple times</strong>. They are created and stored in the database to promote <strong>reusability</strong> and <strong>efficiency</strong>. Stored procedures can accept input parameters, allowing different users to execute them with varying input data. Additionally, any updates made to the stored procedure are automatically reflected wherever it is used, ensuring consistency across workflows.</p><h3>Why Stored Procedures?</h3><p>Stored procedures are an essential tool for efficient database management, offering numerous advantages for data professionals. They promote reusability by allowing one to write a query once and reuse it multiple times, saving time and ensuring consistency. Since stored procedures are precompiled and stored in the database, they significantly enhance performance, especially for complex operations or large datasets. Additionally, they improve security by encapsulating SQL logic, which helps prevent direct table access and mitigates <a href="https://www.w3schools.com/sql/sql_injection.asp">SQL injection attacks</a>.</p><p>They also help simplify maintenance, as any updates to business logic can be made within the procedure without affecting applications using it. Their ability to accept input parameters makes them flexible, allowing for dynamic conditions in queries.</p><h3>How to Create Stored Procedures?</h3><p>The syntax and keywords for writing stored procedures vary slightly across different DBMS platforms. In this guide, I’ll demonstrate how to create stored procedures in Microsoft SQL Server and MySQL, highlighting their unique syntax and providing practical examples for each.</p><h4>Stored Procedures in Microsoft SQL Server</h4><p>Syntax:</p><pre>CREATE PROCEDURE procedure_name <br>    @parameter_name datatype = default_value, -- Optional parameters<br>AS<br>BEGIN<br>    -- SQL statements<br>END;</pre><p>Above is the basic syntax for creating a stored procedure in Microsoft SQL Server. It begins with the CREATE keyword, followed by the name of the procedure. It is advisable to use a descriptive name for clarity and maintainability. Parameters are optional, but if required, the parameter name must be prefixed with an @ (no spaces), followed by the data type as defined in the database.</p><h4>Example 1: Simple Procedure Without Parameters</h4><p>This procedure fetches all records from the Employees table.</p><pre>CREATE PROCEDURE GetAllEmployees<br>AS<br>BEGIN<br>    SELECT * <br>    FROM Employees;<br>END;</pre><p><strong>Execution</strong>:</p><p>Once the SQL code to create the stored procedure has been run, we use the EXEC keyword to invoke the created procedure for use, which then return all data from the Employees Table.</p><pre>EXEC GetAllEmployees;</pre><h4>Example 2: Procedure With Input Parameters</h4><p>This procedure fetches data from the Employee Table based on the Department_ID parameter upon execution.</p><pre>CREATE PROCEDURE GetEmployeesByDepartment<br>    @Department_ID INT<br>AS<br>BEGIN<br>    SELECT * <br>    FROM Employees <br>    WHERE Department_ID= @Department_ID;<br>END;</pre><p><strong>Execution</strong>:</p><pre>EXEC GetEmployeeByID @Department_ID = 1;</pre><h4>Stored Procedures in MySQL</h4><p>Syntax:</p><pre>DELIMITER //<br><br>CREATE PROCEDURE procedure_name (IN|OUT|INOUT parameter_name datatype)<br>BEGIN<br>    -- SQL statements<br>END //<br><br>DELIMITER ;</pre><p>Above is the basic syntax for creating a stored procedure in MySQL. It begins with the CREATE PROCEDURE keyword, followed by the name of the procedure. It is advisable to use a descriptive name for clarity and maintainability. Parameters are optional, and when required, they are specified with a mode (IN, OUT, or INOUT), followed by the parameter name and its data type.</p><h4>Example 1: Simple Procedure Without Parameters</h4><p>This procedure fetches all records from the Employees table.</p><pre>DELIMITER //<br><br>CREATE PROCEDURE GetAllEmployees()<br>BEGIN<br>    SELECT * <br>    FROM Employees;<br>END //<br><br>DELIMITER ;</pre><p><strong>Execution</strong>:<br>Once the SQL code to create the stored procedure has been run, we use the CALL keyword to invoke the created procedure. This will return all data from the Employees table.</p><pre>CALL GetAllEmployees();</pre><h4>Example 2: Procedure With Input Parameters</h4><p>This procedure fetches data from the Employees table based on the Department_ID parameter provided upon execution.</p><pre>DELIMITER //<br><br>CREATE PROCEDURE GetEmployeesByDepartment(IN Department_ID INT)<br>BEGIN<br>    SELECT * <br>    FROM Employees <br>    WHERE Department_ID = Department_ID;<br>END //<br><br>DELIMITER ;</pre><p><strong>Execution</strong>:<br>To execute the procedure and fetch employees for a specific department, we use the CALL keyword with the parameter:</p><pre>CALL GetEmployeesByDepartment(1);</pre><p>In MySQL, the CALL statement is used to invoke a stored procedure, making it distinct from SQL Server&#39;s EXEC keyword. Additionally, MySQL requires the use of delimiters to manage procedures effectively, especially when they contain multiple statements.</p><h3>Understanding the DELIMITER</h3><p>The DELIMITER command in MySQL is crucial when defining stored procedures, functions, or triggers. By default, MySQL uses the semicolon (;) to signify the end of a statement. However, stored procedures often consist of <strong>multiple SQL statements</strong>, which can lead MySQL to <strong>misinterpret</strong> a semicolon within the procedure as the end of the entire definition.</p><h4>Why Change the Delimiter?</h4><p>To avoid such confusion, the DELIMITER command allows you to temporarily change the statement terminator while defining the procedure. This ensures that the semicolons within the procedure body are correctly treated as part of the SQL statements rather than prematurely ending the definition.</p><p>Once the procedure is complete, the delimiter can be reset to its default (;).</p><h4>Flexible Delimiters</h4><p>While // is commonly used as an alternative delimiter, other symbols such as a double dollar sign ($$) can also be employed. The choice of delimiter depends on user preference or environment requirements, as long as it doesn’t conflict with any character used in the procedure body.</p><p>In conclusion, stored procedures can help streamline workflows, enhance database performance, and offer a secure and maintainable approach to handling repetitive and complex tasks, making them indispensable for data professionals.</p><p>Thanks for staying till the end!!!!</p><p>Kindly check out my other posts <a href="http://medium.com/@olamidequzeem91">here</a>, and you can connect with me here on <a href="https://linkedin.com/in/olamidequzeem91">Linkedin</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da3ab659d4ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Ace Your Microsoft Power BI Data Analyst Exam in 2 Weeks.]]></title>
            <link>https://medium.com/@olamidequzeem91/ace-your-microsoft-power-bi-data-analyst-exam-in-2-weeks-b0731e991cda?source=rss-79cdc53b1c91------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0731e991cda</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[microsoft]]></category>
            <dc:creator><![CDATA[Olamidequzeem91]]></dc:creator>
            <pubDate>Tue, 24 Sep 2024 12:31:48 GMT</pubDate>
            <atom:updated>2025-01-06T12:38:02.281Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*H-rMCcSW9sPwH9872msYdw.jpeg" /></figure><p>In this article, I’ll be sharing how I prepared for the PL-300 exam and passed with a score of 850/1000. I’ll cover my preparation strategy, the exam experience, choosing a test center, and provide useful tips. My PL-300 exam voucher arrived a month before I was posted to Obubra, Cross River, for my National Youth Service Corps (NYSC) programme. Since there was no Pearson VUE center in Calabar, I had to take the exam before leaving Lagos for my service year.</p><h3><strong>Preparation:</strong></h3><p>I started my preparation by enrolling in the PL-300T00-A: Microsoft Power BI Data Analyst course (link shared below) and embarked on self-directed learning.</p><p>The course is structured into five learning paths, starting with “Getting Started with Power BI” and ending with “Manage Workspace &amp; Datasets in Power BI,” which were crucial during the exam. Each learning path consists of multiple modules. While Microsoft suggests completing the PL-300 course in two days, I extended my study period to ten days to thoroughly digest the content and complete the labs included in the modules.</p><p>At the end of each day during the 10-day learning period, I took the practice assessment, which consisted of 50 multiple-choice questions (MCQs) spanning all the learning path modules. These assessments helped gauge my progress, and with each attempt, I gained a deeper understanding of the concepts. The practice assessments also provided explanations and correct answers for any missed questions, which was incredibly enlightening.</p><p>Microsoft advises taking the exam after achieving 80% or higher on multiple practice assessment attempts. However, it’s important not to rely solely on this benchmark. While completing the course and scoring 80% on the practice assessments is an important step, it’s only part of the preparation process. The practice assessments consist solely of MCQs, whereas the actual exam includes MCQs, drag-and-drop questions, and case studies.</p><h3><strong>PL-300 Exam Dumps:</strong></h3><p>After completing the PL-300 learning path and consistently scoring above 80% on the practice assessments, I dedicated three days to reviewing PL-300 exam dumps on ExamTopics. This helped me familiarize myself with the different types of questions — MCQs, drag-and-drop, and case studies — bridging the gap between practice and the real exam format.</p><p>It’s worth noting that some of the dump questions may have incorrect answers. Be sure to read the community notes attached to each question, as these often clarify the correct answers and include helpful links to Microsoft Learn resources for further explanation.</p><h3><strong>About the Exam:</strong></h3><p>The PL-300 exam consists of 40–60 questions, with over 100 minutes to complete them. The questions include multiple-choice, drag-and-drop, yes/no, and case study formats. It’s important to note that case study questions cannot be reviewed after submission. Once you answer and move to the next page, you cannot revisit them, and case studies may appear early in the exam, so be prepared for that.</p><p>The exam is structured around four objective domains:</p><ol><li>Prepare the Data</li><li>Model the Data</li><li>Visualize &amp; Analyze the Data</li><li>Deploy &amp; Maintain Assets</li></ol><p><strong>Prepare the Data:</strong></p><p>In this section, I was tested on my ability to connect data from different sources, including Dataflows. You’ll likely encounter questions about changing data source settings and credentials, selecting the appropriate storage mode (DirectQuery, Import, or Dual), and understanding their impact. Another key area I was tested on was resolving data import errors and working within the Power Query Editor. Specifically, you may be asked questions pertaining to data transformations like appending, merging queries, pivoting, and unpivoting. Power Query Editor’s data profiling, such as analyzing column distribution and statistics, also came up during the exam, so make sure you’re comfortable with these topics as you’ll likely be tested on them as well.</p><p><strong>Model the Data:</strong></p><p>This section accounted for a significant portion of my exam, and it focused on designing and implementing a semantic model. One key area I was tested on was Row-Level Security (RLS), including when to apply Dynamic RLS versus Static RLS. While you won’t be required to write DAX during the exam, it’s important to understand popular DAX functions such as <strong>CALCULATE</strong>, <strong>FILTER,</strong> <strong>TOTALYTD</strong>, <strong>PARALLELPERIOD,</strong> and <strong>SAMEPERIODLASTYEAR</strong>. You might be tested on interpreting DAX functions and how to apply them in drag-and-drop questions. Another thing to prepare for is understanding how DAX can be used to override active relationships.</p><p>Additionally, optimizing model performance is essential. This includes using the Performance Analyzer and clearing the cache to enhance efficiency.</p><p><strong>Visualize &amp; Analyze the Data:</strong></p><p>This is my favorite objective domain, accounting for 25–30% of the exam questions. It’s crucial to understand how to create reports. Be able to Identify and Implement the appropriate visualizations based on data types and the objectives set out to be achieved is key. For example, knowing when to use a KPI visual or a decomposition tree as well as other visuals.</p><p>Additionally, having a strong grasp of the AI visuals available in Power BI Service, such as the Decomposition Tree, Key Influencers, and Q&amp;A visuals, and understanding the scenarios where each is best applied is important. It’s also essential to be aware of which visuals and DAX functions are restricted when DirectQuery storage mode is used. Finally, knowing how to apply reference lines (such as constant or average lines), configure visual interactions, and step to syncing slicers is critical for passing this section.</p><p><strong>Deploy &amp; Maintain Assets</strong>:</p><p>This is the final objective domain, accounting for 15–20% of the total exam questions, and you should expect to be tested on when and why to create a dashboard, as well as how it differs from a report. Understanding tiles, pinning visuals, and using Q&amp;A to create visuals was crucial for my exam, and you’ll likely encounter similar questions.</p><p>Security and permissions are also critical in this section. I was tested on the principle of least privilege when assigning workspace roles, and this is something you’ll want to grasp fully. Additionally, I had questions on configuring alerts and subscriptions, promoting and certifying datasets, and managing Role-Level Security (RLS) group memberships, all of which are important to understand.</p><p><strong>Picking a Center:</strong></p><p>Choose a center close to you and arrive at least 30 minutes before your exam time for documentation. Be sure to bring the correct ID. One advantage I had was that Microsoft’s system was down when I went to take my exam, so my voucher was extended for two months. Note that you can also take the exam online, but you must meet Microsoft’s outlined requirements.</p><p><strong>Final Tips:</strong></p><ul><li>Do well to know the steps involved in doing things in Power BI across all four objective domains e.g. Data transformation in power query, Making Bookmarks, etc.</li><li>Pay close attention to the context provided in case study questions.</li><li>Make use of Microsoft’s exam sandbox to familiarize yourself with the exam environment.</li><li>While you won’t be writing DAX, it’s important to understand and interpret the common functions.</li></ul><p>PL-300 Course: <a href="https://learn.microsoft.com/en-us/training/courses/pl-300t00">Link</a></p><p>Exam Topics: <a href="https://www.examtopics.com/exams/microsoft/pl-300/view/">Link</a></p><p>Exam Sandbox: <a href="https://go.microsoft.com/fwlink/?linkid=2226877">Link</a></p><p>My Report Score Card: <a href="https://drive.google.com/drive/folders/1qdjxF4d-jfrNxGLf-HjB94ypWhA5QN38?usp=sharing">Link</a></p><p>Thanks for staying to the end! Feel free to connect with me on <a href="https://linkedin.com/in/olamidequzeem91">LinkedIn.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0731e991cda" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Outliers: What are they, and how to spot and treat them?]]></title>
            <link>https://medium.com/@olamidequzeem91/outliers-what-are-they-and-how-to-spot-and-treat-them-9e375dc9a832?source=rss-79cdc53b1c91------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e375dc9a832</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Olamidequzeem91]]></dc:creator>
            <pubDate>Wed, 09 Aug 2023 17:23:29 GMT</pubDate>
            <atom:updated>2023-08-09T17:23:29.499Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*qqatUnt_gqt1RtjjgqngNw.jpeg" /><figcaption>image source: imgflip.com</figcaption></figure><p>As data professionals, it’s quite imperative for us to spot and mitigate outliers during our analysis, as they are always ever-present in datasets and can also affect the reliability and validity of one’s analysis and machine learning model. In this post, I will be discussing what outliers are, why they matter, how they can be spotted, and how to treat them. 💉</p><h4><strong>What are Outliers 🙃?</strong></h4><p>Outliers are data points that significantly deviate from the rest of the data in a dataset. They are also regarded as observations that lie far away from other observations and appear to be inconsistent or unusual when compared to the majority of the data points. 🌟🧮</p><h4>Why they matter 💡</h4><p>While outliers can arise due to various reasons, including measurement errors, data entry mistakes, natural variability, or genuine extreme events, their significance lies in their ability to substantially impact the results of statistical analyses, such as the mean and standard deviation. Consequently, they can skew interpretations and conclusions drawn from the data.</p><h4>How to Spot Outliers 🕵️‍♂️🔍</h4><p>Among numerous methods to detect outliers, such as standardized residuals, modified z-score, and Interquartile Range (IQR), the best way, in my belief, to detect them is through the visualization of the data points in our dataset. Utilizing visualizations like scatter plots, box plots, and histograms, one can easily identify data points that stand out from the main cluster. For categorical variables, one can employ the usage of a bar chart, as in the case of user birth month registration, where an average user goes with the default date of Jan 1999. With these visualizations, outliers such as this can be readily spotted. 📉</p><h4>Treating Outliers 🚑</h4><p>Various methods exist for treating outliers, each heavily dependent on how the outlier arises. Below are a few treatment approaches:</p><p><strong>Data Removal: </strong>Outlier data points that arise due to measurement errors or anomalies can be Deleted or excluded from the dataset. This is one of the most popular ways employed in treating outliers. 🗑️</p><p><strong>Imputation: </strong>Outlier values can be replaced with reasonable estimates, using statistical measures like the mean, median, or a predictive model. ✏️️</p><p><strong>Transformation:</strong> Applying mathematical transformations (e.g., logarithmic, square root) to the data to reduce the impact of outliers while preserving the overall data distribution.📏</p><p><strong>Binning:</strong> Grouping data into bins or intervals, can help reduce the impact of individual outlier values.📊📦</p><p><strong>Segregation: </strong>Data points that are considered extreme can be segregated from the dataset and analyzed separately. 📉</p><p>Other methods for treating outliers include capping, data smoothing, relying on domain knowledge, ensemble methods, etc.</p><p>In conclusion, recognizing and managing outliers is a vital aspect of data analysis. By acknowledging their potential impact and employing effective detection and treatment methods, we ensure the integrity of our insights and models. Outliers are not just data anomalies; they offer unique perspectives that can refine our understanding. As we harness these insights, we empower ourselves to make informed decisions and drive meaningful insights.🚀</p><p>Thanks for staying till the end!!!🙌</p><p>Kindly check out my other work and you can connect with me here on <a href="https://linkedin.com/in/olamidequzeem91">LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e375dc9a832" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transforming Axis in Data Analytics]]></title>
            <link>https://medium.com/@olamidequzeem91/transforming-axis-in-data-analytics-55978aa68360?source=rss-79cdc53b1c91------2</link>
            <guid isPermaLink="false">https://medium.com/p/55978aa68360</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Olamidequzeem91]]></dc:creator>
            <pubDate>Tue, 25 Jul 2023 15:59:47 GMT</pubDate>
            <atom:updated>2023-07-25T16:05:27.767Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*jy3kTZjVkoEQRqBdW2YCZA.gif" /><figcaption>image source: mathbench.umd.edu</figcaption></figure><p>Axis transformation is a fundamental technique used in data analysis and visualization to enhance the interpretation and insights derived from the data. In various data scenarios, raw data may exhibit challenging characteristics, such as wide-ranging values, skewed distributions, or violations of statistical assumptions. In such cases, axis transformation becomes a powerful tool to alter the scales or representations of the axes in data visualizations and statistical models. By applying axis transformations, data analysts can reveal hidden patterns, and improve visual clarity, ultimately leading to more accurate and meaningful analyses. Here in this post, I will be talking about what axis transformation is, why we transform axis, and the common types of axis transformations used in data analytics.</p><h4><strong>What is Axis Transformation???</strong></h4><p>Axis transformation refers to the process of altering the scale or representation of the axes in a data visualization(scatter plot, line graph, or histogram) or a statistical model.</p><h4><strong>Why do we transform axis???</strong></h4><p>Below are a few reasons why axis might be transformed in data analytics:</p><p><strong>Data Scaling:</strong> Axis transformation is often employed to scale data and bring it to a more manageable range. For example, if the data has a wide range of values, it can be difficult to see patterns or relationships in a plot. By transforming the axis using techniques like logarithmic scaling, the data can be compressed, making patterns more apparent.</p><p><strong>Data Distribution:</strong> Axis transformation can be used to explore the distribution of data. For instance, in skewed datasets, transforming the axis (e.g., using a logarithmic scale) can reveal the underlying patterns and provide better insights into the data distribution.</p><p><strong>Visual Clarity:</strong> In data visualizations, axis transformation can enhance clarity by reducing clutter or overlapping data points. This is especially useful when dealing with dense datasets or data that cover a large range.</p><p><strong>Outlier Detection:</strong> Axis transformation can be used to identify outliers more effectively by spreading out the data points and making extreme values more apparent.</p><h4><strong>Types of Axis Transformation</strong></h4><p>Below are some common types of axis transformations frequently used in data analysis:</p><p><strong>Logarithmic Transformation:</strong> This transformation is used when data spans a wide range of values and has a skewed distribution. By using a logarithmic scale on one or both axes, the data can be compressed, making patterns and relationships more apparent.</p><p><strong>Square Root Transformation:</strong> Similar to logarithmic transformation, the square root transformation is applied to data with a skewed distribution to make it more symmetric and easier to analyze.</p><p><strong>Inverse Transformation:</strong> The inverse transformation, often used in economics and finance, is the reciprocal of the original data. It is useful when the original data is expressed as rates or ratios, and transforming it allows for linear relationships in the data.</p><p>In conclusion, It’s important to note that axis transformation should be done carefully, as it can distort the interpretation of data if not applied correctly. Data analysts should consider the context of the data and the goals of the analysis when deciding whether and how to transform the axes. Additionally, it’s essential to communicate any transformations made in the visualizations or analyses to maintain transparency and ensure accurate interpretations of the results.</p><p>Thanks for staying till the end!!!!</p><p>Kindly check out my other <a href="https://medium.com/@olamidequzeem91">posts</a>, and you can connect with me here on <a href="https://linkedin.com/in/olamidequzeem91">Linkedin</a>.</p><p>And also, feel free to explore this Data Analysis project of mine, where I effectively employed axis transformations and set axis limits to unlock valuable insights. Click <a href="https://github.com/quzeem91/Communicate_Data_Findings-Prosper-Loan-Dataset-Exploration/blob/main/Part_I_exploration_template1%20(1).ipynb">here</a> for the project link.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55978aa68360" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[  .  ]]></title>
            <link>https://medium.com/@olamidequzeem91/-808f0401958a?source=rss-79cdc53b1c91------2</link>
            <guid isPermaLink="false">https://medium.com/p/808f0401958a</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Olamidequzeem91]]></dc:creator>
            <pubDate>Thu, 20 Jul 2023 18:41:53 GMT</pubDate>
            <atom:updated>2023-07-20T18:41:53.765Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MlkmNGbLuU_2o8BzdaNDXA.jpeg" /><figcaption>image source: <a href="https://www.vecteezy.com/">https://www.vecteezy.com/</a></figcaption></figure><p>Data cleaning and data transformation are two important steps in the data preparation process to ensure that data is suitable for analysis and modeling. While they are related, they serve different purposes and involve different activities.</p><p>Data Cleaning, as the name implies, is the act of cleaning our data; it is the process of identifying and correcting errors, inconsistencies, and inaccuracies in the dataset. The primary goal of data cleaning is to improve the quality of the data, making it more reliable and accurate for analysis. Common tasks involved in data cleaning include: removing duplicate records, handling missing values, correcting errors, standardizing formats, and handling outliers.</p><p>On the other hand, data transformation involves converting data, often already cleaned, into a more suitable form for analysis or modeling. Data transformation tasks depend heavily on clean data; hence, it can be said that data cleaning is a prerequisite to data transformation. Common data transformation tasks include: encoding categorical variables, feature engineering, scaling and normalization, grouping, and aggregation.</p><p>While data cleaning and data transformation have different activities related to them, I consider data transformation to be a universal set to which data cleaning belongs.</p><p>In conclusion, data cleaning and data transformation are essential processes for preparing data for analysis and modeling. Data cleaning ensures data accuracy, while data transformation enhances its suitability for various analytical techniques.</p><p>I’d love to hear your thoughts on this topic! 🗣️ Kindly share your opinions and experiences in the comments below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=808f0401958a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>