<?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 giwa fuad on Medium]]></title>
        <description><![CDATA[Stories by giwa fuad on Medium]]></description>
        <link>https://medium.com/@raulboy4luv?source=rss-0519edbae9a0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*9TTZCxJwpMvWLOu_</url>
            <title>Stories by giwa fuad on Medium</title>
            <link>https://medium.com/@raulboy4luv?source=rss-0519edbae9a0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 11:32:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@raulboy4luv/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[Data Preparation in Power BI: Cleaning, Transforming, and Loading Data]]></title>
            <link>https://medium.com/@raulboy4luv/data-preparation-in-power-bi-cleaning-transforming-and-loading-data-fb20611de5db?source=rss-0519edbae9a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb20611de5db</guid>
            <category><![CDATA[data-preparation]]></category>
            <category><![CDATA[handling-missing-values]]></category>
            <category><![CDATA[microsoft-power-query]]></category>
            <category><![CDATA[data-profiling]]></category>
            <category><![CDATA[data-cleaning]]></category>
            <dc:creator><![CDATA[giwa fuad]]></dc:creator>
            <pubDate>Wed, 06 May 2026 11:59:40 GMT</pubDate>
            <atom:updated>2026-05-06T11:59:40.011Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong></p><p>Data preparation is one of the most critical stages in any data analytics workflow. In <strong>Power BI</strong>, this process is handled primarily through the <strong>Power Query Editor</strong>, where raw, messy data is transformed into a clean, structured format suitable for analysis and visualization.</p><p>This article walks through the essential data preparation techniques in Power BI, focusing on practical steps, real-world scenarios, and best practices.</p><h3><strong>1. Working with Power Query Editor</strong></h3><p>The <strong>Power Query Editor</strong> is Power BI’s data transformation engine. It allows you to: Clean messy datasets, Transform columns and rows, Combine multiple data sources and Automate repetitive data preparation tasks.</p><p><strong>How to Access It</strong></p><p>Open Power BI Desktop</p><p>Click <strong>Home → Transform Data</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BaASn6TxaP1urwgUVVVSZQ.png" /><figcaption><strong>how to open a power query editor</strong></figcaption></figure><p>This opens the Power Query Editor, where:</p><ul><li>Each transformation step is recorded in the <strong>Applied Steps pane </strong>which is at the right side of the power query editor</li><li>Changes are repeatable and refreshable</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*giChA5LpYqDO5mK5TM0qPA.png" /><figcaption><strong>image of a power query editor</strong></figcaption></figure><h3><strong>2. Creating Index Columns</strong></h3><p>An <strong>Index Column</strong> adds a unique number to each row, which is useful for:</p><p>i. Creating unique identifiers; ii. Sorting data; iii. Tracking row order</p><p><strong>How to Create</strong></p><ul><li>Go to <strong>Add Column → Index Column</strong></li><li>Choose:</li><li>From 0</li><li>From 1</li><li>Custom</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BErt238mahpPoNg5Z1Stlg.png" /><figcaption><strong>image of index column in power query</strong></figcaption></figure><p><strong>Advantage of using index column</strong></p><p>If you have a sales dataset without IDs, adding an index helps uniquely identify each transaction.</p><h3><strong>3. Conditional Columns and Logic</strong></h3><p>Conditional columns allow you to create logic similar to Excel’s IF statements.</p><p><strong>How to Create</strong></p><ul><li>Go to <strong>Add Column → Conditional Column</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ODB-uGRB0sSd7ShxXuJfRw.png" /><figcaption><strong>Conditional Column in power query editor</strong></figcaption></figure><p><strong>Example</strong></p><p>Categorizing sales:</p><ul><li>If Sales &gt; 1000 → “High”</li><li>If Sales between 500–1000 → “Medium”</li><li>Else → “Low”</li></ul><p>This is useful for: Customer segmentation, Risk classification and KPI grouping.</p><h3><strong>4. Column from Examples</strong></h3><p>This is one of Power Query’s smartest features.</p><p><strong>What It Does</strong></p><p>You provide a few examples, and Power BI automatically detects the pattern.</p><p><strong>How to Use</strong></p><ul><li>Go to <strong>Add Column → Column from Examples</strong></li></ul><p><strong>Example</strong></p><p>Full Name column → extract First Name<br> Type: “John Doe” → “John”</p><p>Power BI generates the transformation logic automatically.</p><h3><strong>5. Grouping and Aggregation</strong></h3><p>Grouping helps summarize data for analysis.</p><p><strong>How to Use</strong></p><ul><li>Select a column</li><li>Go to <strong>Transform → Group By</strong></li></ul><p><strong>Aggregation Options: </strong>Sum, Count, Average, Min/Max</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wkzoBTqO3AF1RrBv-by6kQ.png" /><figcaption><strong>Aggregation in power query editor</strong></figcaption></figure><p><strong>Example</strong></p><p>Group sales by Region: Total Sales per Region, Number of Transactions</p><h3><strong>6. Pivoting and Unpivoting Columns</strong></h3><p><strong>Pivoting</strong></p><p>Converts row values into columns.</p><p><strong>Example:</strong><br> | Month | Sales |<br> → Pivot →<br> | Jan | Feb | Mar |</p><p><strong>Unpivoting </strong>Converts columns into rows (very important for normalization).</p><p><strong>How to Use</strong></p><ul><li>Select columns</li><li>Click <strong>Transform → Pivot/Unpivot</strong></li></ul><p><strong>Use Case</strong></p><p>Unpivoting is essential when preparing data for Time series analysis or Proper data modeling.</p><h3><strong>7. Merging and Appending Queries</strong></h3><p><strong>Merging Queries (JOIN) </strong>Combines tables based on a common column (like SQL JOIN).</p><p><strong>How:</strong></p><ul><li>Home → Merge Queries</li><li>Choose join type:</li><li>Inner</li><li>Left Outer</li><li>Right Outer</li></ul><p><strong>Example:</strong><br> Sales table + Customer table → combine customer details</p><p><strong>Appending Queries (UNION)</strong></p><p>Stacks tables vertically.</p><p><strong>How:</strong></p><ul><li>Home → Append Queries</li></ul><p><strong>Example:</strong><br> Combine:</p><ul><li>January sales</li><li>February sales</li><li>March sales</li></ul><h3><strong>8. Date and Time Transformations</strong></h3><p>Power BI provides powerful date transformation tools.</p><p><strong>Common Transformations</strong></p><ul><li>Extract Year, Month, Day</li><li>Calculate Age</li><li>Format Date</li><li>Create custom date columns</li></ul><p><strong>How</strong></p><ul><li>Select date column → Transform tab</li></ul><p><strong>Example</strong></p><p>From Date:</p><ul><li>Extract Month Name → “January”</li><li>Extract Year → 2024</li></ul><p>It is Used for Time-based analysis and Trend reporting.</p><h3><strong>9. Data Profiling Techniques</strong></h3><p>Power Query provides built-in data profiling tools:</p><p><strong>1. Column Quality </strong>shows: Valid values, Errors, Empty values</p><p><strong>2. Column Distribution </strong>displays: Distinct values, Frequency</p><p><strong>3. Column Profile </strong>gives detailed statistics: Min, Max, Average and Count</p><p><strong>How to Enable</strong></p><ul><li>Go to <strong>View Tab</strong></li><li>Check:</li><li>Column Quality</li><li>Column Distribution</li><li>Column Profile</li></ul><p>These tools help quickly identify: Data inconsistencies, Outliers and Missing values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Umh3DXRpkgw-tB2J-G1EA.png" /><figcaption><strong>image of a data profile in power query editor</strong></figcaption></figure><h3><strong>10. Handling Missing or Null Values</strong></h3><p>Data often contains missing or duplicate values that must be handled.</p><p><strong>1. Removing Duplicates</strong></p><ul><li>Select column</li><li>Click <strong>Remove Rows → Remove Duplicates</strong></li></ul><p><strong>2. Replacing Null Values</strong></p><ul><li>Right-click column → Replace Values</li><li>Replace null with:</li><li>0</li><li>“Unknown”</li><li>Average value</li></ul><p><strong>3. Filtering Nulls</strong></p><ul><li>Use filter dropdown to exclude null values</li></ul><p><strong>4. Filling Values</strong></p><p>Fill Down or Fill Up</p><p><strong>Example</strong></p><p>Replace missing sales values with 0 to avoid calculation errors.</p><h3><strong>These are the best Practices for Data Preparation</strong></h3><ul><li>Always <strong>profile your data first</strong></li><li>Keep transformations <strong>simple and readable</strong></li><li>Rename steps clearly in Applied Steps</li><li>Avoid unnecessary columns</li><li>Use <strong>data types correctly</strong></li><li>Document complex logic</li></ul><h3><strong>Conclusion</strong></h3><p>Data preparation in Power BI is a foundational step that determines the quality of your insights. Using the <strong>Power Query Editor</strong>, you can efficiently clean, transform, and structure your data for accurate reporting.</p><p>Mastering techniques like: Conditional logic, Merging and appending, Pivoting/unpivoting &amp; Data profiling will significantly improve your ability to build reliable and insightful dashboards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E7wgwGYwP2StVgprOpuwoA.png" /><figcaption><strong>This image is the shortcut of all the write up above</strong></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb20611de5db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Data from Different Sources in Power BI]]></title>
            <link>https://medium.com/@raulboy4luv/getting-data-from-different-sources-in-power-bi-9ac267cd51ad?source=rss-0519edbae9a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ac267cd51ad</guid>
            <category><![CDATA[data-cleaning]]></category>
            <category><![CDATA[power-query]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-modelling]]></category>
            <dc:creator><![CDATA[giwa fuad]]></dc:creator>
            <pubDate>Wed, 01 Apr 2026 13:55:45 GMT</pubDate>
            <atom:updated>2026-04-01T13:55:45.279Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A Practical, End-to-End Guide for Data Analysts</em></p><p><strong>Introduction</strong></p><p>One of the most powerful capabilities of Microsoft Power BI is its ability to connect to <strong>multiple data sources</strong>, transform them, and combine them into a unified data model for analysis and visualization.</p><p>In real-world scenarios, your data rarely lives in one place. You might have:</p><ul><li>Sales data in Excel</li><li>Customer data in a SQL database</li><li>Marketing data from a web API</li><li>Operational data stored in SharePoint or cloud platforms</li></ul><p>This blog walks you through:</p><ul><li>Types of data sources in Power BI</li><li>Step-by-step methods to connect to each</li><li>Data transformation using Power Query</li><li>Combining multiple sources into one model</li></ul><p><strong>1. Types of Data Sources in Power BI</strong></p><p>Power BI supports a wide range of connectors, grouped into major categories:</p><p><strong>1.1 File-Based Sources</strong></p><ul><li>Excel (.xlsx)</li><li>CSV / Text files</li><li>XML / JSON</li><li>PDF</li></ul><p><strong>Use case:</strong> Offline or manually exported datasets</p><p><strong>1.2 Database Sources</strong></p><ul><li>SQL Server</li><li>MySQL</li><li>PostgreSQL</li><li>Oracle</li></ul><p><strong>Use case:</strong> Enterprise systems and structured data</p><p><strong>1.3 Online Services</strong></p><ul><li>SharePoint Online</li><li>Google Analytics</li><li>Salesforce</li><li>Azure services</li></ul><p><strong>Use case:</strong> Cloud-hosted applications</p><p><strong>1.4 Other Sources</strong></p><ul><li>Web APIs</li><li>OData feeds</li><li>Blank query (custom scripts)</li></ul><p><strong>Use case:</strong> Dynamic or external integrations</p><p><strong>2. Connecting to Data in Power BI (Step-by-Step)</strong></p><p><strong>Step 1: Open Power BI Desktop</strong></p><ul><li>Launch Power BI Desktop</li><li>Click <strong>Home → Get Data</strong></li></ul><p><strong>Step 2: Choose Your Data Source</strong></p><p>You’ll see a list of connectors. For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BJWGs-Xjq8m4y02ROmnncQ.png" /></figure><p><strong>Example A: Connecting to Excel</strong></p><ol><li>Click <strong>Excel Workbook</strong></li><li>Browse and select your file</li><li>Choose the sheet/table</li><li>Click <strong>Load</strong> or <strong>Transform Data</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2TTR7URJ3PssE3StRkcnZA.png" /></figure><p><strong>Example B: Connecting to SQL Server</strong></p><ol><li>Click <strong>SQL Server</strong></li><li>Enter:</li></ol><ul><li>Server name</li><li>Database name (optional)</li></ul><p>3. Choose:</p><ul><li>Import (faster, cached data)</li><li>DirectQuery (real-time connection)</li></ul><p>4. Authenticate and load data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wqucuccBDkPTcgLZVi_gPQ.png" /></figure><p><strong>Example C: Connecting to Web API</strong></p><ol><li>Click <strong>Web</strong></li><li>Enter the API URL</li><li>If required, add headers or authentication</li><li>Transform JSON data in Power Query</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ylWaUc8TCR1sSFBzhr0nQ.png" /></figure><p><strong>3. Transforming Data Using Power Query</strong></p><p>Once data is loaded, Power BI opens the <strong>Power Query Editor</strong> — this is where data cleaning happens.</p><p><strong>Common Transformations:</strong></p><ul><li>Remove null values</li><li>Rename columns</li><li>Change data types</li><li>Filter rows</li><li>Split/merge columns</li><li>Create calculated columns</li></ul><p>This is how power query editor looks like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2NkX_KATjW1XQEWVVaeQ_A.png" /></figure><p><strong>Example: Cleaning Sales Data</strong></p><p>Suppose you imported an Excel file with messy data:</p><p><strong>Date Sales Amount Region</strong></p><p>01/01/2025 1000 Lagos</p><p>NULL 500 Abuja</p><p><strong>Steps:</strong></p><ol><li>Remove rows with NULL dates</li><li>Ensure “Sales Amount” is numeric</li><li>Standardize region names</li></ol><p><strong>Behind the Scenes: M Language</strong></p><p>Power Query uses <strong>M language</strong>. Example:</p><p>= Table.SelectRows(Source, each [Date] &lt;&gt; null)</p><p>This means you’re applying transformations programmatically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IGvj-IxA-xSnx3EVRKzWsw.png" /></figure><p><strong>4. Combining Data from Multiple Sources</strong></p><p>This is where Power BI becomes truly powerful.</p><p><strong>4.1 Append Queries (Stacking Data)</strong></p><p>Used when tables have similar structure</p><p>Example:</p><ul><li>January Sales (Excel)</li><li>February Sales (CSV)</li></ul><p>Steps:</p><ol><li>Go to Power Query</li><li>Click <strong>Append Queries</strong></li></ol><p>Select both tables</p><p><strong>4.2 Merge Queries (Joining Data)</strong></p><p>Used like SQL JOIN</p><p>Example:</p><ul><li>Sales table</li><li>Customer table</li></ul><p>Steps:</p><ol><li>Select Sales table</li><li>Click <strong>Merge Queries</strong></li><li>Match using a key (e.g., CustomerID)</li><li>Choose join type (Inner, Left, Right, Full)</li></ol><p><strong>Join Types Explained:</strong></p><ul><li><strong>Inner Join:</strong> Matching records only</li><li><strong>Left Join:</strong> All from left + matches</li><li><strong>Full Join:</strong> All records</li></ul><p><strong>5. Data Modeling After Import</strong></p><p>After loading data, move to <strong>Model View</strong>.</p><p><strong>Create Relationships:</strong></p><ul><li>Drag and drop between tables</li><li>Define:</li><li>One-to-many relationships</li><li>Cross-filter direction</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jU49sKH5zS0O5VJ4PCBncg.png" /></figure><p><strong>10. Best Practices</strong></p><ul><li>Use <strong>star schema</strong> for modeling</li><li>Keep transformations in Power Query</li><li>Avoid loading unnecessary columns</li><li>Document your data sources</li><li>Use meaningful table and column names</li></ul><h3><strong>Conclusion</strong></h3><p>Getting data from different sources in Power BI is not just about connecting — it’s about <strong>integrating, transforming, and modeling data into a single source of truth</strong>.</p><p>By mastering:</p><ul><li>Data connections</li><li>Power Query transformations</li><li>Data modeling</li><li>Multi-source integration</li></ul><p>— you can build scalable, high-performance dashboards that deliver real business value.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ac267cd51ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>