<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: willie wathagana</title>
    <description>The latest articles on Forem by willie wathagana (@willie_wathagana_cbbfc3fa).</description>
    <link>https://forem.com/willie_wathagana_cbbfc3fa</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3709631%2F406070c0-36bb-47cd-9199-2e0442517ce3.png</url>
      <title>Forem: willie wathagana</title>
      <link>https://forem.com/willie_wathagana_cbbfc3fa</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/willie_wathagana_cbbfc3fa"/>
    <language>en</language>
    <item>
      <title>A Newbie's Guide to Git (Git Bash)</title>
      <dc:creator>willie wathagana</dc:creator>
      <pubDate>Mon, 09 Feb 2026 19:47:30 +0000</pubDate>
      <link>https://forem.com/willie_wathagana_cbbfc3fa/a-newbies-guide-to-git-git-bash-2mm</link>
      <guid>https://forem.com/willie_wathagana_cbbfc3fa/a-newbies-guide-to-git-git-bash-2mm</guid>
      <description>&lt;h2&gt;
  
  
  A Newbie's Guide to Git (Git Bash)
&lt;/h2&gt;

&lt;p&gt;Are you a newbie to Git like I once was? Don't worry! This guide will help you get started with Git using Git Bash on a Windows PC. We'll cover installation, configuration, connecting to GitHub, and some essential commands. By the end, you'll be ready to version control your projects confidently.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is GitHub?
&lt;/h2&gt;

&lt;p&gt;GitHub is a cloud-based platform where you can create, store, manage, and share your code. It allows collaboration with others, tracks changes, and hosts repositories (repos) for your projects. Think of it as a virtual storage for your code with superpowers for teamwork.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Git/Git Bash?
&lt;/h2&gt;

&lt;p&gt;Git is a version control system that helps you track changes in your code over time. Git Bash is the command-line interface (CLI) that comes with Git on Windows, providing a Unix-like shell to run Git commands. It's your tool to interact with GitHub from your PC without needing a browser every time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fun Fact
&lt;/h2&gt;

&lt;p&gt;Git uses cryptographic hashing (like SHA-1 or SHA-256) to uniquely identify each commit. This ensures your code's integrity and makes it tamper-proof!&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a Commit?
&lt;/h2&gt;

&lt;p&gt;A commit is like a snapshot of your project at a specific point. It's a permanent record of changes, including who made them and when. Once committed, you can always revert to that state if needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setting Up Your GitHub Account
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Go to &lt;a href="https://github.com/" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; in your browser.&lt;/li&gt;
&lt;li&gt;Click "Sign up" and follow the prompts to create an account with your email.&lt;/li&gt;
&lt;li&gt;Verify your email and set up your profile: add a username, bio, and profile picture for a professional touch.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Once done, you're ready to connect your local Git to GitHub.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installing Git/Git Bash on Windows
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open your browser and search for "Git download" or go directly to &lt;a href="https://git-scm.com/downloads" rel="noopener noreferrer"&gt;git-scm.com&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Select "Windows" as your OS.&lt;/li&gt;
&lt;li&gt;Download the installer (it's free!).&lt;/li&gt;
&lt;li&gt;Run the .exe file and follow the setup wizard. Accept defaults unless you know what you're changing.&lt;/li&gt;
&lt;li&gt;During installation, choose "Use Visual Studio Code as Git's default editor" if you have VS Code installed, it's beginner-friendly.&lt;/li&gt;
&lt;li&gt;Complete the installation; Git Bash should now be in your Start menu.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here's what the download page looks like:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbaac2hva6bx9468j7tyh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbaac2hva6bx9468j7tyh.png" alt="Screenshot of Git download page for Windows" width="800" height="617"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Official Git downloads page, click on Windows to get the installer.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;After installation, search for "Git Bash" in your Start menu and open it. It should look something like this (though this image shows settings integration):&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmkrz4d54xuy41zsvedq0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmkrz4d54xuy41zsvedq0.png" alt="Git Bash setup in Windows Terminal" width="800" height="444"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Integrating Git Bash into Windows Terminal for a better experience (optional).&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Connecting Git/Git Bash to GitHub Using Commands
&lt;/h2&gt;

&lt;p&gt;Now, let's configure Git and set up SSH for secure connection.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open Git Bash.&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Check Git version:&lt;br&gt;
git --version&lt;br&gt;
(It should show something like git version 2.x.x)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Set your username (replace with your GitHub username):&lt;br&gt;
git config --global user.name "Your Username"&lt;br&gt;
text4. Set your email (must match your GitHub email):&lt;br&gt;
git config --global user.email "&lt;a href="mailto:your.email@example.com"&gt;your.email@example.com&lt;/a&gt;"&lt;br&gt;
text5. Verify configurations:&lt;br&gt;
git config --list&lt;br&gt;
text6. Generate an SSH key:&lt;br&gt;
ssh-keygen -t ed25519 -C "&lt;a href="mailto:your.email@example.com"&gt;your.email@example.com&lt;/a&gt;"&lt;br&gt;
textPress Enter for defaults (no passphrase for beginners).&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm68whi5loyit85d9fjrr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm68whi5loyit85d9fjrr.png" alt="Generating SSH key in Git Bash" width="800" height="433"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Running ssh-keygen in Git Bash-enter a passphrase or leave blank.&lt;/em&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Start the SSH agent:&lt;br&gt;
eval "$(ssh-agent -s)"&lt;br&gt;
text8. Add your SSH key to the agent:&lt;br&gt;
ssh-add ~/.ssh/id_ed25519&lt;br&gt;
text9. Display your public key:&lt;br&gt;
cat ~/.ssh/id_ed25519.pub&lt;br&gt;
textCopy the output (starts with ssh-ed25519...).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Go to GitHub: Settings &amp;gt; SSH and GPG keys &amp;gt; New SSH key.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Title: Something like "My Windows PC".&lt;/li&gt;
&lt;li&gt;Paste the key and add it.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp4e2blw2z2ll3d7bcyla.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp4e2blw2z2ll3d7bcyla.png" alt="Adding SSH key to GitHub settings" width="800" height="458"&gt;&lt;/a&gt;&lt;br&gt;
 &lt;em&gt;GitHub SSH keys page, paste your public key here.&lt;/em&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Test the connection:
ssh -T &lt;a href="mailto:git@github.com"&gt;git@github.com&lt;/a&gt;
textIt should say: "Hi username! You've successfully authenticated..."&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Congrats! Your Git Bash is now connected to GitHub.&lt;/p&gt;

&lt;h2&gt;
  
  
  Basic Git Commands and Concepts
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Version Control with Git
&lt;/h3&gt;

&lt;p&gt;Git tracks changes by taking snapshots (commits). It provides an audit trail: who changed what and when. You can revert to any previous version easily.&lt;/p&gt;

&lt;h3&gt;
  
  
  Push and Pull
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Push&lt;/strong&gt;: Upload your local changes to GitHub.
Example workflow:
git add .  # Stage all changes
git commit -m "Your commit message"  # Commit them
git push origin main  # Push to the main branch
text- &lt;strong&gt;Pull&lt;/strong&gt;: Download changes from GitHub to your local repo.
git pull origin main
text(Use --rebase if you want a linear history: &lt;code&gt;git pull --rebase origin main&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Tracking Code Changes
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;git status&lt;/code&gt;: Shows what's changed, staged, or untracked.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Far5g677zajmnusm12tix.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Far5g677zajmnusm12tix.png" alt="Example of git status output" width="800" height="647"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Git status showing uncommitted changes.&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;git diff&lt;/code&gt;: Views differences in unstaged changes.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git diff --staged&lt;/code&gt;: Views staged changes.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git log&lt;/code&gt;: Shows commit history.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git log --oneline&lt;/code&gt;: Condensed history.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git log -- filename&lt;/code&gt;: History for a specific file.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git show commit-hash&lt;/code&gt;: Details of a specific commit.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft4oj7urg63e0dgxk3fwe.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft4oj7urg63e0dgxk3fwe.jpg" alt="Git log command output" width="800" height="458"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Git log displaying recent commits with details.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;You've now got the basics of Git and Git Bash on Windows! Practice by creating a repo on GitHub, cloning it locally (&lt;code&gt;git clone repo-url&lt;/code&gt;), making changes, and pushing them back.&lt;/p&gt;

&lt;p&gt;If you run into issues, common fixes include ensuring your email matches and regenerating SSH keys if needed. Drop a comment below with questions or feedback.&lt;/p&gt;

</description>
      <category>git</category>
      <category>beginners</category>
      <category>windows</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>A Beginner's Guide to MS Excel for Data Analytics</title>
      <dc:creator>willie wathagana</dc:creator>
      <pubDate>Mon, 09 Feb 2026 19:27:53 +0000</pubDate>
      <link>https://forem.com/willie_wathagana_cbbfc3fa/a-beginners-guide-to-ms-excel-for-data-analytics-26lb</link>
      <guid>https://forem.com/willie_wathagana_cbbfc3fa/a-beginners-guide-to-ms-excel-for-data-analytics-26lb</guid>
      <description>&lt;h1&gt;
  
  
  A Beginner's Guide to MS Excel for Data Analytics
&lt;/h1&gt;

&lt;p&gt;Microsoft Excel remains one of the most powerful and accessible tools for &lt;strong&gt;data analytics&lt;/strong&gt;, especially for beginners. It's user-friendly, widely available, and doesn't require coding knowledge to get meaningful insights from data.&lt;/p&gt;

&lt;p&gt;In this beginner-friendly guide, we'll walk through the essentials: from understanding the interface to creating pivot tables and visualizations. By the end, you'll be ready to tackle real-world data tasks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This guide is based on recent versions of Excel (2016, 2019, 2021, or Microsoft 365). Some features may vary slightly in Excel Online or older versions.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Understanding the Excel Interface
&lt;/h2&gt;

&lt;p&gt;When you launch Excel, you see a &lt;strong&gt;workbook&lt;/strong&gt; with one or more &lt;strong&gt;worksheets&lt;/strong&gt;. The key parts include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ribbon&lt;/strong&gt; - the top toolbar with tabs (Home, Insert, Data, etc.)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Formula Bar&lt;/strong&gt; - displays and edits cell contents&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Grid&lt;/strong&gt; - rows (numbers) and columns (letters); each box is a &lt;strong&gt;cell&lt;/strong&gt; (e.g., A1)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Status Bar&lt;/strong&gt; - shows quick calculations (sum, average, count) for selected cells&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Take a moment to explore:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0ictimxc393u6kos4spa.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0ictimxc393u6kos4spa.jpeg" alt="Excel main interface with labeled ribbon, formula bar, grid, and status bar" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Excel interface overview - Ribbon, Formula Bar, Workspace, and more&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Another clear labeled view:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm0rgb0s4f3bunkwnvq64.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm0rgb0s4f3bunkwnvq64.png" alt="Detailed Excel window components including Quick Access Toolbar, Ribbon, and grid" width="800" height="596"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Annotated Excel window showing all major parts&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Entering and Formatting Data
&lt;/h2&gt;

&lt;p&gt;Good analytics starts with clean, well-organized data.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click a cell and type (text, numbers, dates).&lt;/li&gt;
&lt;li&gt;Use the first row for &lt;strong&gt;headers&lt;/strong&gt; (e.g., Name, Sales, Date).&lt;/li&gt;
&lt;li&gt;Format cells: Select cells → &lt;strong&gt;Home&lt;/strong&gt; tab → Number group (currency, date, percentage, etc.).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Pro tip: Convert your data range into an &lt;strong&gt;Excel Table&lt;/strong&gt; (Ctrl + T or Insert → Table) for automatic formatting and easier referencing.&lt;/p&gt;

&lt;p&gt;Example of formatted data:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxxverqdejkrj0r4rngzl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxxverqdejkrj0r4rngzl.png" alt="Excel table with formatted headers, dates, and currency" width="800" height="440"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Formatted Excel table ready for analysis&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Basic Formulas and Functions
&lt;/h2&gt;

&lt;p&gt;Formulas start with &lt;code&gt;=&lt;/code&gt; and live in cells. Excel auto-calculates them.&lt;/p&gt;

&lt;p&gt;Essential functions for analytics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;=SUM(A2:A100)&lt;/code&gt; - total&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;=AVERAGE(B2:B100)&lt;/code&gt; - mean&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;=COUNT(C2:C100)&lt;/code&gt; - count of numbers&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;=MIN()&lt;/code&gt; / &lt;code&gt;=MAX()&lt;/code&gt; - smallest/largest value&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Use &lt;strong&gt;AutoFill&lt;/strong&gt; (drag the small square in the cell corner) to copy formulas down.&lt;/p&gt;

&lt;p&gt;Simple example with SUM and AVERAGE:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fme43dps1jre77ih8sttw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fme43dps1jre77ih8sttw.png" alt="Excel showing SUM and AVERAGE formulas on student marks data" width="800" height="466"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Basic SUM formula example in action&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Another clean AVERAGE demo:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fit5iycqaje8cq56ua6lt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fit5iycqaje8cq56ua6lt.png" alt="Excel AVERAGE function calculating monthly values" width="800" height="659"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Using AVERAGE across a column of numbers&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Sorting and Filtering Data
&lt;/h2&gt;

&lt;p&gt;Quickly organize and focus on subsets:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sort&lt;/strong&gt;: Select data → &lt;strong&gt;Data&lt;/strong&gt; tab → Sort (by column, A-Z, smallest to largest)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Filter&lt;/strong&gt;: &lt;strong&gt;Data&lt;/strong&gt; → Filter (adds dropdown arrows to headers - filter by value, text, color, etc.)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These two features let you spot patterns and outliers instantly.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Creating Charts and Visualizations
&lt;/h2&gt;

&lt;p&gt;Charts turn numbers into stories.&lt;/p&gt;

&lt;p&gt;Steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Select your data (including headers).&lt;/li&gt;
&lt;li&gt;Go to &lt;strong&gt;Insert&lt;/strong&gt; → Recommended Charts (or pick Column, Bar, Line, Pie, etc.).&lt;/li&gt;
&lt;li&gt;Customize title, labels, colors via Chart Tools (Design &amp;amp; Format tabs).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Example bar/column chart:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdgjs6vygzw7zog4c7j5j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdgjs6vygzw7zog4c7j5j.png" alt="Clustered column chart showing quarterly sales by region" width="799" height="449"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Clustered column chart - great for comparing categories&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Pivot Tables - The Real Analytics Powerhouse
&lt;/h2&gt;

&lt;p&gt;Pivot tables summarize, group, and analyze large datasets without writing complex formulas.&lt;/p&gt;

&lt;p&gt;Quick start:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Select your data range.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Insert&lt;/strong&gt; → &lt;strong&gt;PivotTable&lt;/strong&gt; → OK (new or existing sheet).&lt;/li&gt;
&lt;li&gt;Drag fields to: &lt;strong&gt;Rows&lt;/strong&gt;, &lt;strong&gt;Columns&lt;/strong&gt;, &lt;strong&gt;Values&lt;/strong&gt; (usually Sum or Count), &lt;strong&gt;Filters&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You can instantly see totals by category, trends over time, percentages, etc.&lt;/p&gt;

&lt;p&gt;Powerful pivot table example:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fega0m6035cswi5wfldwh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fega0m6035cswi5wfldwh.png" alt="PivotTable summarizing sales with percentage of total calculations" width="800" height="428"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Pivot table showing regional sales and % of grand total&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Another real-world pivot + chart combo:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fewwcxnhdbdaon8vydzun.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fewwcxnhdbdaon8vydzun.jpg" alt="Pivot chart and slicers for sales analysis by year and category" width="732" height="560"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Sales dashboard built with pivot table and chart&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Quick Data Cleaning Tips
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Remove duplicates → &lt;strong&gt;Data&lt;/strong&gt; → Remove Duplicates&lt;/li&gt;
&lt;li&gt;Trim extra spaces → &lt;code&gt;=TRIM(A1)&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Change case → &lt;code&gt;=PROPER()&lt;/code&gt;, &lt;code&gt;=UPPER()&lt;/code&gt;, &lt;code&gt;=LOWER()&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Find &amp;amp; Replace (Ctrl + H) for fixing typos&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Always duplicate your original sheet before cleaning!&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Next Steps - Slightly More Advanced
&lt;/h2&gt;

&lt;p&gt;Once comfortable, explore:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;VLOOKUP&lt;/code&gt; / &lt;code&gt;XLOOKUP&lt;/code&gt; - lookup values across tables&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;IF&lt;/code&gt; — conditional logic (&lt;code&gt;=IF(A2&amp;gt;1000, "High", "Low")&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;COUNTIF&lt;/code&gt; / &lt;code&gt;SUMIF&lt;/code&gt; - conditional counting/summing&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then move to &lt;strong&gt;Power Query&lt;/strong&gt; (Data → Get &amp;amp; Transform) for advanced cleaning and &lt;strong&gt;Power Pivot&lt;/strong&gt; for larger datasets.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Excel is still a top choice for beginner-to-intermediate data analytics. Start small:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Import or enter data&lt;/li&gt;
&lt;li&gt;Clean and format it&lt;/li&gt;
&lt;li&gt;Use basic formulas&lt;/li&gt;
&lt;li&gt;Build a chart&lt;/li&gt;
&lt;li&gt;Create your first pivot table&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Practice with free sample datasets (search "Excel sample sales data CSV"). The more you experiment, the faster you'll improve.&lt;/p&gt;

&lt;p&gt;Have questions or want to share your first pivot table? Drop a comment below!&lt;/p&gt;

&lt;p&gt;Happy analyzing!&lt;/p&gt;

</description>
      <category>excel</category>
      <category>dataanalytics</category>
      <category>begginers</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Getting Started with Power BI Data Modeling and Schemas: A Beginner's Guide</title>
      <dc:creator>willie wathagana</dc:creator>
      <pubDate>Mon, 09 Feb 2026 19:13:30 +0000</pubDate>
      <link>https://forem.com/willie_wathagana_cbbfc3fa/getting-started-with-power-bi-data-modeling-and-schemas-a-beginners-guide-ee0</link>
      <guid>https://forem.com/willie_wathagana_cbbfc3fa/getting-started-with-power-bi-data-modeling-and-schemas-a-beginners-guide-ee0</guid>
      <description>&lt;p&gt;Hey there! If you're new to Power BI, you've probably heard about data modeling and schemas, but they might sound a bit intimidating. Don't worry this article will break it down step by step in simple terms. We'll cover what data modeling is, why schemas matter, common types like star and snowflake schemas, and how to get started in Power BI. By the end, you'll feel confident building your first model. Let's dive in!&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Data Modeling in Power BI?
&lt;/h2&gt;

&lt;p&gt;Data modeling is like organizing your closet: you group similar items together and make sure everything is easy to find. In Power BI, it means structuring your data so you can create insightful reports and visuals without hassle.&lt;br&gt;
Power BI has three main views: Report, Data, and Model. The Model view is where the magic happens. It's where you connect tables, define relationships, and shape your data for analysis.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdb2e9d9j84i1m2d8stt7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdb2e9d9j84i1m2d8stt7.png" alt="Use Model view in Power BI Desktop" width="800" height="407"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Why Bother with Data Modeling?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Efficiency&lt;/strong&gt; - Well modeled data loads faster and performs better.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Accuracy&lt;/strong&gt; - Reduces errors in calculations and filters.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scalability&lt;/strong&gt; - Easier to add more data later.
Without good modeling, your reports might show wrong insights or take forever to refresh.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Understanding Schemas: The Blueprint of Your Data
&lt;/h2&gt;

&lt;p&gt;A schema is a design pattern for how your tables relate to each other. Think of it as the architecture of your data house. In Power BI, we often use dimensional modeling schemas borrowed from data warehousing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Star Schema: Simple and Star-Shaped
&lt;/h2&gt;

&lt;p&gt;The star schema is the most beginner-friendly. It has one central "fact" table (like sales data with numbers) surrounded by "dimension" tables (like products, customers, or dates with descriptions).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fact table: Contains measurable data (e.g., sales amount, quantity).&lt;/li&gt;
&lt;li&gt;Dimension tables: Provide context (e.g., product name, customer region).
The name "star" comes from how it looks like a star with the fact table in the middle.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fve7dex9boxlbrq9yj9jj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fve7dex9boxlbrq9yj9jj.png" alt="Star Schema in Data Modeling" width="800" height="546"&gt;&lt;/a&gt;&lt;br&gt;
As shown in the diagram, the fact table (FactResellerSales) connects to multiple dimension tables. This setup makes queries fast because joins are simple.&lt;br&gt;
&lt;strong&gt;Pros&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Easy to understand and query.&lt;/li&gt;
&lt;li&gt;Great for performance in Power BI.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Cons&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Can lead to data redundancy if not managed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Snowflake Schema: More Normalized but Complex
&lt;/h2&gt;

&lt;p&gt;The snowflake schema is like a star schema but with extra layers. Dimension tables are "normalized" by breaking them into sub-tables to reduce redundancy.&lt;br&gt;
For example, a product dimension might split into product, category, and subcategory tables.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6tmpzmkta1bsii1xj9pg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6tmpzmkta1bsii1xj9pg.png" alt="Snowflake schema" width="800" height="483"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this diagram, you see the fact table connected to dimensions, and some dimensions branch out further like a snowflake.&lt;br&gt;
&lt;strong&gt;Pros&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Saves storage by avoiding duplicates.&lt;/li&gt;
&lt;li&gt;Better for complex hierarchies.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Cons&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;More joins can slow down queries.&lt;/li&gt;
&lt;li&gt;Harder for beginners to set up.
In Power BI, star schemas are recommended for most cases because they're simpler and perform well with the tool's engine.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Building Your First Model in Power BI
&lt;/h2&gt;

&lt;p&gt;Ready to try it? Here's a step-by-step guide assuming you have Power BI Desktop installed (it's free!).&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Import Data:&lt;/strong&gt; Go to "Get Data" and load your sources (e.g., Excel, SQL). Clean up in Power Query if needed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Switch to Model View:&lt;/strong&gt; Click the Model icon on the left pane.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Create Relationships:&lt;/strong&gt; Drag a column from one table to a matching column in another. Power BI often auto-detects them.
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fprs8ue3t5au388l1an8l.png" alt="Create and Manage Relationships in Power BI Desktop" width="800" height="434"&gt;
The example above shows relationships as lines between tables. Double-click a line to edit cardinality (one-to-many, many-to-many, etc.).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Define Measures:&lt;/strong&gt; Use DAX (Data Analysis Expressions) for calculations, like Total Sales = SUM(Sales[Amount]).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test It:&lt;/strong&gt; Go back to Report view and build a visual. If filters work across tables, you're good!&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Common tip: Use unique keys (like IDs) for relationships to avoid ambiguity.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Best Practices for Beginners
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Start Small-Begin with 2-3 tables to practice.&lt;/li&gt;
&lt;li&gt;Use Star Schema-Unless you have a good reason, stick to it for simplicity.&lt;/li&gt;
&lt;li&gt;Avoid Bi-Directional Relationships-They can cause loops; use single direction unless needed.&lt;/li&gt;
&lt;li&gt;Hide Unused Columns-In Model view, right-click and hide to keep things clean.&lt;/li&gt;
&lt;li&gt;Document Your Model-Add descriptions to tables and columns for future you.
Remember, modeling is iterative build, test, refine.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wrapping Up
&lt;/h2&gt;

&lt;p&gt;Congratulations! You've got the basics of Power BI data modeling and schemas. Start with a simple dataset, like sample sales data from Microsoft, and experiment. As you practice, you'll see how powerful (pun intended) this can be for turning raw data into stories.&lt;br&gt;
If you have questions or want to share your first model, drop a comment below. Happy modeling!&lt;/p&gt;

</description>
      <category>powerbi</category>
      <category>begginer</category>
      <category>dataanalyst</category>
    </item>
    <item>
      <title>How Analysts Translate Messy Data, DAX, and Dashboards into Action Using Power BI</title>
      <dc:creator>willie wathagana</dc:creator>
      <pubDate>Mon, 09 Feb 2026 18:39:49 +0000</pubDate>
      <link>https://forem.com/willie_wathagana_cbbfc3fa/how-analysts-translate-messy-data-dax-and-dashboards-into-action-using-power-bi-g3a</link>
      <guid>https://forem.com/willie_wathagana_cbbfc3fa/how-analysts-translate-messy-data-dax-and-dashboards-into-action-using-power-bi-g3a</guid>
      <description>&lt;h1&gt;
  
  
  From Messy Hospital Spreadsheets to Life-Saving Decisions – Power BI in Action
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;(Using Realistic Hospital &amp;amp; Pharmacy Mock Data)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In the real world, data is rarely clean, complete, or well-structured. Analysts are often handed spreadsheets exported from multiple systems, each with its own logic and inconsistencies. Power BI becomes powerful not because it creates charts, but because it helps analysts turn disorder into decisions.&lt;/p&gt;

&lt;p&gt;Using a mock hospital and pharmacy dataset, this article demonstrates how analysts translate messy data, DAX, and dashboards into real-world action using Power BI.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Starting with the Business Question (Analytics Mindset)
&lt;/h2&gt;

&lt;p&gt;Before opening Power BI, analysts must understand why the analysis exists.&lt;/p&gt;

&lt;h3&gt;
  
  
  Mock Business Questions
&lt;/h3&gt;

&lt;p&gt;Using a hospital and pharmacy dataset, stakeholders might ask:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which hospitals have the highest patient volumes?&lt;/li&gt;
&lt;li&gt;Are some pharmacies experiencing frequent stock-outs?&lt;/li&gt;
&lt;li&gt;Which departments are driving higher treatment costs?&lt;/li&gt;
&lt;li&gt;Are patient wait times increasing over time?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Without these questions, even the best dashboard becomes noise.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Messy Data Reality: What Analysts Actually Receive
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Mock Raw Data Snapshot
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Hospital Admissions&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Patient_ID&lt;/th&gt;
&lt;th&gt;Hospital&lt;/th&gt;
&lt;th&gt;Admit_Date&lt;/th&gt;
&lt;th&gt;Dept&lt;/th&gt;
&lt;th&gt;Wait_Time&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;P-001&lt;/td&gt;
&lt;td&gt;KNH&lt;/td&gt;
&lt;td&gt;12/01/24&lt;/td&gt;
&lt;td&gt;ER&lt;/td&gt;
&lt;td&gt;45&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;P-002&lt;/td&gt;
&lt;td&gt;knh&lt;/td&gt;
&lt;td&gt;13-01-2024&lt;/td&gt;
&lt;td&gt;Emergency&lt;/td&gt;
&lt;td&gt;NULL&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;P-003&lt;/td&gt;
&lt;td&gt;MTRH&lt;/td&gt;
&lt;td&gt;14/1/24&lt;/td&gt;
&lt;td&gt;OPD&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Pharmacy Transactions&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Drug_Name&lt;/th&gt;
&lt;th&gt;Qty&lt;/th&gt;
&lt;th&gt;Cost&lt;/th&gt;
&lt;th&gt;Facility&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Paracetamol&lt;/td&gt;
&lt;td&gt;100&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;KNH&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;paracetamol&lt;/td&gt;
&lt;td&gt;-5&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;KNH&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Amoxicillin&lt;/td&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;MTRH&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Issues immediately visible:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Inconsistent naming (KNH vs knh)&lt;/li&gt;
&lt;li&gt;Different date formats&lt;/li&gt;
&lt;li&gt;Missing values&lt;/li&gt;
&lt;li&gt;Negative quantities&lt;/li&gt;
&lt;li&gt;Unstandardized department names&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is where &lt;strong&gt;Power Query&lt;/strong&gt; becomes essential.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Cleaning and Shaping Data with Power Query
&lt;/h2&gt;

&lt;p&gt;Using Power Query, analysts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Standardize hospital names (KNH, knh → Kenyatta National Hospital)&lt;/li&gt;
&lt;li&gt;Replace null wait times with averages&lt;/li&gt;
&lt;li&gt;Remove negative quantities&lt;/li&gt;
&lt;li&gt;Convert dates into a consistent format&lt;/li&gt;
&lt;li&gt;Split and rename columns for clarity&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Example Transformation
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgzmcyyrc9j8a1wz1wwvu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgzmcyyrc9j8a1wz1wwvu.png" alt="Example Transformation" width="421" height="58"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Building Relationships: Connecting Hospital &amp;amp; Pharmacy Data
&lt;/h2&gt;

&lt;p&gt;A star star schema is used to build the relationship on the pharmacy and hospital data &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5yhtnvxu4hysizfraku9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5yhtnvxu4hysizfraku9.png" alt="star schema pharmacy and hospital data  " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Schema ensures:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Correct aggregation of costs and admissions&lt;/li&gt;
&lt;li&gt;Accurate filtering across hospitals and time&lt;/li&gt;
&lt;li&gt;Faster report performance&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. Translating Numbers into Meaning with DAX
&lt;/h2&gt;

&lt;p&gt;Raw totals don’t drive decisions. &lt;strong&gt;Measures do.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Mock DAX Measures
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Total Patients&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Total Patients = COUNT(Fact_Admissions[Patient_ID])

**Average Waiting Time**
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
dax&lt;br&gt;
Total Pharmacy Cost = SUMX(&lt;br&gt;
    Fact_Pharmacy,&lt;br&gt;
    Fact_Pharmacy[Qty] * Fact_Pharmacy[Cost]&lt;br&gt;
)&lt;/p&gt;

&lt;p&gt;Now stakeholders can finally answer key business questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which hospitals have the longest waits?&lt;/li&gt;
&lt;li&gt;Where is pharmacy spending highest?&lt;/li&gt;
&lt;li&gt;How does performance change month to month?&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  6. Designing Dashboards That Drive Decisions
&lt;/h2&gt;

&lt;p&gt;Mock Dashboard Layout&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftf5d6fhb7ydiidc0gg7v.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftf5d6fhb7ydiidc0gg7v.jpg" alt="Sample Dashboard" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Turning Insights into Action
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Mock Insight → Action Flow
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Key Insights Identified&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Hospital A has the highest patient load but below-average staffing&lt;/li&gt;
&lt;li&gt;Pharmacy stock-outs spike every end of month&lt;/li&gt;
&lt;li&gt;Emergency department wait times exceed 60 minutes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Actions Triggered&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reallocate staff during peak hours&lt;/li&gt;
&lt;li&gt;Adjust procurement schedules to prevent end-of-month shortages&lt;/li&gt;
&lt;li&gt;Introduce triage optimization in Emergency units&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is the true value of Power BI: &lt;strong&gt;evidence-backed decisions&lt;/strong&gt; that directly improve hospital operations and patient care.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Why This Matters in the Real World
&lt;/h2&gt;

&lt;p&gt;In healthcare, poor decisions have real, sometimes life-altering consequences. Power BI empowers analysts and decision-makers to achieve:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Faster response to operational risks&lt;/li&gt;
&lt;li&gt;Better resource allocation across facilities and departments&lt;/li&gt;
&lt;li&gt;Improved patient outcomes through timely interventions&lt;/li&gt;
&lt;li&gt;Accountability through transparent, data-driven reporting&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For analysts, mastering Power BI means evolving from someone who simply builds reports into a &lt;strong&gt;true problem-solver&lt;/strong&gt; who influences real-world outcomes and contributes to better healthcare delivery.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Messy data is not a barrier - &lt;strong&gt;it’s the starting point&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;By cleaning data with &lt;strong&gt;Power Query&lt;/strong&gt;, modeling it correctly, writing purposeful &lt;strong&gt;DAX&lt;/strong&gt;, and designing decision-focused dashboards, analysts transform raw hospital and pharmacy data into meaningful, actionable insight.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Power BI is not about charts.&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
It’s about turning complexity into clarity and clarity into &lt;strong&gt;impact&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>powerbi</category>
      <category>dataanalysis</category>
      <category>businessintelligence</category>
    </item>
  </channel>
</rss>
