<?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: Mathew Leshan</title>
    <description>The latest articles on Forem by Mathew Leshan (@mathew_leshan_0f6642142b2).</description>
    <link>https://forem.com/mathew_leshan_0f6642142b2</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%2F3708674%2Fa92bb230-5265-4b5c-a493-4e6d6e6601ae.jpg</url>
      <title>Forem: Mathew Leshan</title>
      <link>https://forem.com/mathew_leshan_0f6642142b2</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mathew_leshan_0f6642142b2"/>
    <language>en</language>
    <item>
      <title>Using PowerBI toTranslate Messy Data DAX and Dashboards-into Actionable Insights</title>
      <dc:creator>Mathew Leshan</dc:creator>
      <pubDate>Mon, 09 Feb 2026 16:25:22 +0000</pubDate>
      <link>https://forem.com/mathew_leshan_0f6642142b2/how-analysts-translate-messy-data-dax-and-dashboards-into-action-using-power-bi-4e3c</link>
      <guid>https://forem.com/mathew_leshan_0f6642142b2/how-analysts-translate-messy-data-dax-and-dashboards-into-action-using-power-bi-4e3c</guid>
      <description>&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%2Fmedia.licdn.com%2Fdms%2Fimage%2Fv2%2FD4D12AQEtf34au2Y9iw%2Farticle-cover_image-shrink_720_1280%2FB4DZd_Kjc9H4AM-%2F0%2F1750185169728%3Fe%3D2147483647%26v%3Dbeta%26t%3DKeptVTqwsnWfFYeuGdfdFjaQsGbuY4khN_OaJsOYvOs" 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%2Fmedia.licdn.com%2Fdms%2Fimage%2Fv2%2FD4D12AQEtf34au2Y9iw%2Farticle-cover_image-shrink_720_1280%2FB4DZd_Kjc9H4AM-%2F0%2F1750185169728%3Fe%3D2147483647%26v%3Dbeta%26t%3DKeptVTqwsnWfFYeuGdfdFjaQsGbuY4khN_OaJsOYvOs" alt="Data" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
Raw data is loud.&lt;/p&gt;

&lt;p&gt;It’s full of missing values, strange formats, duplicated rows, and numbers that don’t seem to agree with each other. On its own, raw data doesn’t tell a story..&lt;/p&gt;

&lt;p&gt;This is where analysts come in.&lt;/p&gt;

&lt;p&gt;Using &lt;strong&gt;Power BI&lt;/strong&gt;, analysts act as translators turning messy data, complex DAX calculations, and dashboards into &lt;strong&gt;clear, actionable decisions&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This article walks through &lt;em&gt;how that translation actually happens&lt;/em&gt; in the real world.&lt;/p&gt;


&lt;h2&gt;
  
  
  Step 1: Starting with Messy Data
&lt;/h2&gt;

&lt;p&gt;Let’s be honest, clean data is rare.&lt;/p&gt;

&lt;p&gt;Typical datasets (hospital records, sales logs, crop yields, surveys) usually come with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Null or missing dates&lt;/li&gt;
&lt;li&gt;Inconsistent naming (&lt;code&gt;Nairobi&lt;/code&gt;, &lt;code&gt;NRB&lt;/code&gt;, &lt;code&gt;Nairobi County&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Mixed data types&lt;/li&gt;
&lt;li&gt;Duplicates&lt;/li&gt;
&lt;li&gt;Columns are doing too many jobs&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Power BI doesn’t magically fix this.&lt;/p&gt;



&lt;p&gt;Power Query is an inbuilt softwarein PowerBI where Analysts Clean and standardise data&lt;/p&gt;

&lt;p&gt;Power Query is the first layer of translation.&lt;/p&gt;
&lt;h3&gt;
  
  
  What Analysts Do Here:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Remove duplicates&lt;/li&gt;
&lt;li&gt;Replace or flag null values&lt;/li&gt;
&lt;li&gt;Standardize text and date formats&lt;/li&gt;
&lt;li&gt;Split columns into usable fields&lt;/li&gt;
&lt;li&gt;Filter out irrelevant records&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Messy CSV&lt;br&gt;
↓&lt;br&gt;
Power Query&lt;br&gt;
↓&lt;br&gt;
Structured, trusted tables&lt;/p&gt;
&lt;h2&gt;
  
  
  Step 2: Modeling the Data Like the Real World Works
&lt;/h2&gt;

&lt;p&gt;Once data is clean, analysts don’t jump straight to visuals.&lt;/p&gt;

&lt;p&gt;They model relationships.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A patient can have many visits&lt;/li&gt;
&lt;li&gt;A farmer can grow multiple crops&lt;/li&gt;
&lt;li&gt;A customer can make many purchases&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One → Many relationships&lt;/p&gt;
&lt;h3&gt;
  
  
  Why This Matters:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Prevents incorrect totals&lt;/li&gt;
&lt;li&gt;Ensures filters work properly&lt;/li&gt;
&lt;li&gt;Makes calculations accurate&lt;/li&gt;
&lt;li&gt;Reflects real-world logic&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Bad relationships = misleading insights.&lt;/p&gt;


&lt;h2&gt;
  
  
  Step 3: DAX
&lt;/h2&gt;

&lt;p&gt;DAX (Data Analysis Expressions) is where Power BI becomes powerful.&lt;/p&gt;

&lt;p&gt;Not because it’s complex — but because it’s &lt;strong&gt;context-aware&lt;/strong&gt;.&lt;/p&gt;
&lt;h3&gt;
  
  
  Analysts Use DAX to Answer Questions Like:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;What is the &lt;em&gt;average cost per visit&lt;/em&gt;, not just total cost?&lt;/li&gt;
&lt;li&gt;How do yields change &lt;em&gt;over time&lt;/em&gt;?&lt;/li&gt;
&lt;li&gt;What happens when we filter by region, date, or category?&lt;/li&gt;
&lt;/ul&gt;


&lt;h3&gt;
  
  
  Measures vs Columns (A Critical Distinction)
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Calculated Columns&lt;/th&gt;
&lt;th&gt;Measures&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Row-level&lt;/td&gt;
&lt;td&gt;Aggregated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stored in table&lt;/td&gt;
&lt;td&gt;Calculated on demand&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Heavy&lt;/td&gt;
&lt;td&gt;Efficient&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Analysts favor &lt;strong&gt;measures&lt;/strong&gt; because:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;They respond to filters&lt;/li&gt;
&lt;li&gt;They keep models lean&lt;/li&gt;
&lt;li&gt;They reflect real-time context&lt;/li&gt;
&lt;/ul&gt;


&lt;h3&gt;
  
  
  Iterator Functions: Thinking Row by Row
&lt;/h3&gt;

&lt;p&gt;Functions like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;SUMX&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;AVERAGEX&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;MINX&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;MAXX&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;br&gt;
DAX&lt;br&gt;
AVERAGEX(Visits, Visits[Cost] * Visits[Discount])&lt;br&gt;
This is how analysts move from simple totals to business logic.&lt;/p&gt;

&lt;p&gt;Step 4: Dashboards That Answer Questions &lt;/p&gt;

&lt;p&gt;A good dashboard answers:&lt;/p&gt;

&lt;p&gt;What’s happening?&lt;/p&gt;

&lt;p&gt;Why is it happening?&lt;/p&gt;

&lt;p&gt;What should we do next?&lt;/p&gt;

&lt;p&gt;A bad dashboard just shows everything.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;What Analysts Focus On:
Clear KPIs

Trends over time

Comparisons (before vs after)

Interactive filters (slicers)

Minimal but meaningful visuals

Data → Insight → Decision
If a visual doesn’t support a decision, it doesn’t belong there.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Turning Dashboards into Action
&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%2Fggc2qwb9iuybziqyf8wi.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%2Fggc2qwb9iuybziqyf8wi.png" alt="Dasboarding" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
This is the most important part and the most misunderstood.&lt;/p&gt;

&lt;p&gt;Example Actions:&lt;br&gt;
A hospital reallocates staff based on patient load&lt;/p&gt;

&lt;p&gt;A county adjusts crop support based on yield trends&lt;/p&gt;

&lt;p&gt;A business cuts costs after identifying inefficiencies&lt;/p&gt;

&lt;p&gt;Power BI doesn’t make decisions.&lt;/p&gt;

&lt;p&gt;People do using insights Power BI reveals.&lt;/p&gt;

&lt;p&gt;Common Translation Mistakes Analysts do;&lt;br&gt;
 -Cleaning data in DAX instead of Power Query&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ignoring data relationships&lt;/li&gt;
&lt;li&gt;Overusing calculated columns&lt;/li&gt;
&lt;li&gt;Building dashboards with no clear question&lt;/li&gt;
&lt;li&gt;Treating Power BI like Excel with better charts&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Analysts:&lt;/p&gt;

&lt;p&gt;Clean it&lt;/p&gt;

&lt;p&gt;Structure it&lt;/p&gt;

&lt;p&gt;Calculate it&lt;/p&gt;

&lt;p&gt;Visualize it&lt;/p&gt;

&lt;p&gt;Explain it&lt;/p&gt;

&lt;p&gt;Power BI is just the tool.&lt;/p&gt;

&lt;p&gt;The real value lies in the translation — turning chaos into clarity, and clarity into action.&lt;/p&gt;

&lt;p&gt;If you can do that, you’re not just building dashboards.&lt;/p&gt;

&lt;p&gt;Your driving decisions.&lt;/p&gt;

&lt;p&gt;If you’re learning Power BI:&lt;/p&gt;

&lt;p&gt;Master Power Query first&lt;/p&gt;

&lt;p&gt;Understand relationships deeply&lt;/p&gt;

&lt;p&gt;Learn DAX with context, not memorisation&lt;/p&gt;

&lt;p&gt;Design dashboards with intent&lt;/p&gt;

&lt;p&gt;Because the goal isn’t prettier charts, but better decision-making.&lt;/p&gt;

</description>
      <category>datascience</category>
      <category>ai</category>
      <category>analytics</category>
    </item>
    <item>
      <title>Power BI Data Modelling Demystified ⭐</title>
      <dc:creator>Mathew Leshan</dc:creator>
      <pubDate>Wed, 04 Feb 2026 05:52:33 +0000</pubDate>
      <link>https://forem.com/mathew_leshan_0f6642142b2/power-bi-data-modelling-demystified-4a91</link>
      <guid>https://forem.com/mathew_leshan_0f6642142b2/power-bi-data-modelling-demystified-4a91</guid>
      <description>&lt;h2&gt;
  
  
  Introduction: Where Dashboards Go to Live… or Die
&lt;/h2&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%2Fav8qzhfzr2e0gpqsxr1f.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%2Fav8qzhfzr2e0gpqsxr1f.jpg" alt="Power BI" width="800" height="445"&gt;&lt;/a&gt;&lt;br&gt;
You can clean your data perfectly.&lt;br&gt;&lt;br&gt;
You can build flashy visuals.&lt;br&gt;&lt;br&gt;
You can even write clever DAX.&lt;/p&gt;

&lt;p&gt;And yet… your Power BI report is &lt;strong&gt;slow&lt;/strong&gt;, &lt;strong&gt;confusing&lt;/strong&gt;, or worse — &lt;strong&gt;wrong&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Why?&lt;/p&gt;

&lt;p&gt;Because behind every great Power BI dashboard is an unsung hero (or villain):&lt;br&gt;&lt;br&gt;
👉 &lt;strong&gt;the data model&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Think of data modelling as the &lt;strong&gt;plumbing of Power BI&lt;/strong&gt;. When it’s done right, everything flows smoothly. When it’s done badly, nothing works the way you expect. This article breaks down Power BI data modelling in plain language, covering schemas, fact and dimension tables, relationships, and why good modelling is critical for performance and accurate reporting — especially when working with real-world datasets like hospital records or Kenya Crops data.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Is Data Modelling in Power BI?
&lt;/h2&gt;

&lt;p&gt;Data modelling is how you &lt;strong&gt;structure tables and define how they connect&lt;/strong&gt; inside Power BI.&lt;/p&gt;

&lt;p&gt;A good model determines:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How filters move across tables&lt;/li&gt;
&lt;li&gt;How measures calculate values&lt;/li&gt;
&lt;li&gt;How fast your report runs&lt;/li&gt;
&lt;li&gt;Whether your numbers can be trusted&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Fact Tables vs Dimension Tables
&lt;/h2&gt;

&lt;p&gt;At the heart of Power BI modelling are two table types.&lt;/p&gt;




&lt;h3&gt;
  
  
  Fact Tables 📊
&lt;/h3&gt;

&lt;p&gt;Fact tables store &lt;strong&gt;events and measurements&lt;/strong&gt; things you want to analyse.&lt;/p&gt;

&lt;p&gt;Examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Hospital admissions&lt;/li&gt;
&lt;li&gt;Crop harvest volumes&lt;/li&gt;
&lt;li&gt;Patient visits&lt;/li&gt;
&lt;li&gt;Sales transactions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Typical characteristics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Many rows&lt;/li&gt;
&lt;li&gt;Numeric values (counts, totals, averages)&lt;/li&gt;
&lt;li&gt;Foreign keys linking to dimensions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;FACT_Admissions&lt;br&gt;
AdmissionID&lt;br&gt;
PatientID&lt;br&gt;
DepartmentID&lt;br&gt;
DateID&lt;br&gt;
LengthOfStay&lt;br&gt;
Cost&lt;/p&gt;




&lt;h3&gt;
  
  
  Dimension Tables 🧭
&lt;/h3&gt;

&lt;p&gt;Dimension tables add &lt;strong&gt;context and meaning&lt;/strong&gt; to facts.&lt;/p&gt;

&lt;p&gt;Examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Date&lt;/li&gt;
&lt;li&gt;Department&lt;/li&gt;
&lt;li&gt;Crop type&lt;/li&gt;
&lt;li&gt;Region&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Typical characteristics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fewer rows&lt;/li&gt;
&lt;li&gt;Descriptive columns&lt;/li&gt;
&lt;li&gt;One unique key per row&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;DIM_Department&lt;br&gt;
DepartmentID&lt;br&gt;
DepartmentName&lt;br&gt;
HospitalWing&lt;/p&gt;




&lt;h2&gt;
  
  
  Star Schema ⭐ (Power BI’s Best Friend)
&lt;/h2&gt;

&lt;p&gt;The &lt;strong&gt;star schema&lt;/strong&gt; is the gold standard for Power BI.&lt;/p&gt;

&lt;h3&gt;
  
  
  Structure
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;One central &lt;strong&gt;fact table&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Multiple &lt;strong&gt;dimension tables&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;All dimensions connect directly to the fact table&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DIM_Date
   |
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;DIM_Patient — FACT_Admissions — DIM_Department&lt;br&gt;
|&lt;br&gt;
DIM_Doctor&lt;br&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%2Fj2en1z7ypxxt6i33wh3n.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%2Fj2en1z7ypxxt6i33wh3n.png" alt="Power BI Star Schemer" width="800" height="546"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Why Star Schema Works So Well
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Faster performance&lt;/li&gt;
&lt;li&gt;Simple relationships&lt;/li&gt;
&lt;li&gt;Cleaner filter flow&lt;/li&gt;
&lt;li&gt;Easier DAX calculations&lt;/li&gt;
&lt;li&gt;Easy to understand and maintain&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Snowflake Schema ❄️ (Looks Fancy, Works Harder)
&lt;/h2&gt;

&lt;p&gt;Snowflake schema is a &lt;strong&gt;normalised&lt;/strong&gt; version of the star schema.&lt;/p&gt;

&lt;h3&gt;
  
  
  Structure
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Dimension tables are split into multiple related tables&lt;/li&gt;
&lt;li&gt;Creates extra joins and relationship chains&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;FACT_Admissions&lt;br&gt;
|&lt;br&gt;
DIM_Department&lt;br&gt;
|&lt;br&gt;
DIM_HospitalWing&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcommunity.fabric.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F42556iCD0D3F9E98807DA6%3Fv%3Dv2" 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%2Fcommunity.fabric.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F42556iCD0D3F9E98807DA6%3Fv%3Dv2" alt="snowf flakes schemer" width="913" height="565"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Pros
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Reduces data duplication&lt;/li&gt;
&lt;li&gt;Can save storage&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Cons (in Power BI)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Slower performance&lt;/li&gt;
&lt;li&gt;More complex relationships&lt;/li&gt;
&lt;li&gt;Harder DAX&lt;/li&gt;
&lt;li&gt;Filters can behave unexpectedly&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;📌&lt;br&gt;
Snowflake schemas belong in databases — &lt;strong&gt;star schemas belong in Power BI&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Relationships in Power BI 🔗
&lt;/h2&gt;

&lt;p&gt;Relationships define &lt;strong&gt;how tables talk to each other&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Best Practice Relationship Setup
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;One-to-many (1:*)&lt;/li&gt;
&lt;li&gt;Many to one&lt;/li&gt;
&lt;li&gt;Many to many&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  What Can Go Wrong?
&lt;/h3&gt;

&lt;p&gt;Bad relationships can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Inflate totals&lt;/li&gt;
&lt;li&gt;Break slicers&lt;/li&gt;
&lt;li&gt;Cause ambiguous paths&lt;/li&gt;
&lt;li&gt;Slow down reports&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why Good Data Modelling Is Critical 🚨
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Performance
&lt;/h3&gt;

&lt;p&gt;Star schemas reduce joins and memory usage, making reports faster.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Accuracy
&lt;/h3&gt;

&lt;p&gt;Correct relationships ensure filters behave logically.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Simpler DAX
&lt;/h3&gt;

&lt;p&gt;Good models reduce the need for complex CALCULATE and FILTER logic.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Scalability
&lt;/h3&gt;

&lt;p&gt;Adding new KPIs or dimensions becomes easy instead of painful.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Trust
&lt;/h3&gt;

&lt;p&gt;Decision-makers rely on reports — wrong numbers destroy confidence.&lt;/p&gt;




&lt;h2&gt;
  
  
  Power BI Data Modelling Best Practices ✅
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Use &lt;strong&gt;star schema whenever possible&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Keep fact tables narrow&lt;/li&gt;
&lt;li&gt;Create a proper &lt;strong&gt;Date table&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Use numeric surrogate keys&lt;/li&gt;
&lt;li&gt;Avoid many-to-many relationships&lt;/li&gt;
&lt;li&gt;Avoid bi-directional filters&lt;/li&gt;
&lt;li&gt;Clean data in &lt;strong&gt;Power Query&lt;/strong&gt;, not DAX&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Conclusion: Model First, Visualise Second 🎯
&lt;/h2&gt;

&lt;p&gt;Data modelling is not optional in Power BI — it’s foundational. A well-designed model ensures performance, accuracy, and clarity, turning raw datasets into reliable insights.&lt;/p&gt;

&lt;p&gt;Before adding visuals or writing DAX, always ask:&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Does my model make sense?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Because in Power BI, great dashboards don’t start with charts —&lt;br&gt;&lt;br&gt;
&lt;strong&gt;They start with the model.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>analytics</category>
      <category>beginners</category>
      <category>dataengineering</category>
      <category>microsoft</category>
    </item>
    <item>
      <title>📊 Excel-ently Done: Turning Everyday Numbers into Powerful Insights with Microsoft Excel</title>
      <dc:creator>Mathew Leshan</dc:creator>
      <pubDate>Sun, 25 Jan 2026 20:58:17 +0000</pubDate>
      <link>https://forem.com/mathew_leshan_0f6642142b2/excel-ently-done-turning-everyday-numbers-into-powerful-insights-with-microsoft-excel-1a25</link>
      <guid>https://forem.com/mathew_leshan_0f6642142b2/excel-ently-done-turning-everyday-numbers-into-powerful-insights-with-microsoft-excel-1a25</guid>
      <description>&lt;h1&gt;
  
  
  Introduction to Excel
&lt;/h1&gt;

&lt;p&gt;Let’s be honest, when most people hear “Microsoft Excel,” they imagine endless rows, tiny boxes, and numbers that make their eyes glaze over. Not very exciting, right?&lt;/p&gt;

&lt;p&gt;But what if I told you that behind those neat little cells lies a powerful data analytics tool capable of turning raw, messy numbers into clear stories and smart decisions?&lt;/p&gt;

&lt;p&gt;Whether you’re analysing sales, tracking performance, or just trying to make sense of data without writing a single line of code, Excel is often the first best friend of every data analyst. In this article, we’ll explore how Microsoft Excel can be used for basic data analysis, using simple language that even a complete beginner can understand.&lt;/p&gt;

&lt;p&gt;What is Microsoft Excel?&lt;/p&gt;

&lt;p&gt;Microsoft Excel is a spreadsheet application used to store, organise, analyse, and visualise data. It works by arranging data into rows and columns, making it easy to read, edit, and analyse information.&lt;br&gt;
&lt;a href="https://excel.cloud.microsoft/" rel="noopener noreferrer"&gt;Excel&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Excel is widely used because:&lt;/p&gt;

&lt;p&gt;It is easy to learn&lt;/p&gt;

&lt;p&gt;It requires no programming knowledge&lt;/p&gt;

&lt;p&gt;It is available in many organisations&lt;/p&gt;

&lt;p&gt;It handles both small and large datasets&lt;/p&gt;

&lt;p&gt;For beginners in data analytics, Excel is usually the starting point before moving on to advanced tools such as SQL, Power BI, or Python.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fencrypted-tbn0.gstatic.com%2Fimages%3Fq%3Dtbn%3AANd9GcSngP3hjXbpTVyM1c4_CxbxvDZutNKFT-MivtplB2D1UsGo_xmGUZhaFkU%26s" 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%2Fencrypted-tbn0.gstatic.com%2Fimages%3Fq%3Dtbn%3AANd9GcSngP3hjXbpTVyM1c4_CxbxvDZutNKFT-MivtplB2D1UsGo_xmGUZhaFkU%26s" alt="Excel workbook" width="270" height="148"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Understanding Rows, Columns, and Cells
&lt;/h3&gt;

&lt;p&gt;Excel data is organised in a grid format:&lt;/p&gt;

&lt;p&gt;Rows run horizontally and are numbered (1, 2, 3…)&lt;/p&gt;

&lt;p&gt;Columns run vertically and are labelled with letters (A, B, C…)&lt;/p&gt;

&lt;p&gt;A cell is where a row and column meet (e.g., A1)&lt;/p&gt;

&lt;p&gt;Each cell can contain text, numbers, dates, or formulas. This structure makes Excel ideal for organising datasets such as student records, sales reports, or survey results.&lt;br&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%2Fjq1viyise0btggmviclr.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%2Fjq1viyise0btggmviclr.png" alt="rows and columns " width="800" height="470"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Entering and Cleaning Data in Excel
&lt;/h3&gt;

&lt;p&gt;Before analysing data, it must be clean and well-organised. Dirty data can lead to incorrect results.&lt;/p&gt;

&lt;p&gt;Excel provides several tools for data cleaning, such as:&lt;/p&gt;

&lt;p&gt;Remove Duplicates to eliminate repeated entries&lt;/p&gt;

&lt;p&gt;Find and Replace to correct spelling or formatting errors&lt;/p&gt;

&lt;p&gt;Formatting options to standardise dates and numbers&lt;/p&gt;

&lt;p&gt;These features help ensure that the data is accurate and ready 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%2Fukszr0ixkzmcrgxzm6of.webp" 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%2Fukszr0ixkzmcrgxzm6of.webp" alt="data tab-remoce duplicates" width="593" height="416"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Using Basic Excel Formulas for Analysis
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Addition: =A1+B1
Subtraction: =A1-B1
Multiplication: =A1*B1
Division: =A1/B1
Percentage: =A1*10%
Sum a Range: =SUM(A1:A10)
Average a Range: =AVERAGE(A1:A10)
Count Cells: =COUNT(A1:A10) (counts numbers)
Maximum: =MAX(A1:A10)
Minimum: =MIN(A1:A10) 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One of Excel’s greatest strengths is its ability to perform automatic calculations using formulas.&lt;/p&gt;

&lt;p&gt;Some basic formulas used in data analysis include:&lt;/p&gt;

&lt;p&gt;SUM – adds values&lt;/p&gt;

&lt;p&gt;=SUM(B2:B10)&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fencrypted-tbn0.gstatic.com%2Fimages%3Fq%3Dtbn%3AANd9GcQdHo_zXOcMPsCCHHLMC7ex6kK-Mk_TYXunvg%26s" 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%2Fencrypted-tbn0.gstatic.com%2Fimages%3Fq%3Dtbn%3AANd9GcQdHo_zXOcMPsCCHHLMC7ex6kK-Mk_TYXunvg%26s" alt="Sum" width="264" height="191"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;AVERAGE – finds the mean&lt;/p&gt;

&lt;p&gt;=AVERAGE(B2:B10)&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%2Fencrypted-tbn0.gstatic.com%2Fimages%3Fq%3Dtbn%3AANd9GcTL89XVGmh2NApfcvdD-d8g6_mlz1jDAvpe0A%26s" 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%2Fencrypted-tbn0.gstatic.com%2Fimages%3Fq%3Dtbn%3AANd9GcTL89XVGmh2NApfcvdD-d8g6_mlz1jDAvpe0A%26s" alt="average" width="297" height="170"&gt;&lt;/a&gt;&lt;br&gt;
COUNT – counts numeric entries&lt;/p&gt;

&lt;p&gt;IF – applies logical conditions&lt;/p&gt;

&lt;p&gt;=IF(C2&amp;gt;=50,"Pass","Fail")&lt;br&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%2Fanap6th21v1gwohhzyeq.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%2Fanap6th21v1gwohhzyeq.png" alt="If  function" width="715" height="357"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;These formulas allow users to analyse data quickly and efficiently without manual calculations.&lt;/p&gt;

&lt;h3&gt;
  
  
  Sorting and Filtering Data
&lt;/h3&gt;

&lt;p&gt;When working with large datasets, sorting and filtering become essential.&lt;/p&gt;

&lt;p&gt;Sorting arranges data in ascending or descending order (e.g., highest to lowest scores)&lt;/p&gt;

&lt;p&gt;Filtering displays only selected data based on conditions (e.g., scores above 70)&lt;/p&gt;

&lt;p&gt;This helps users focus on specific information and identify patterns easily.&lt;/p&gt;

&lt;h3&gt;
  
  
  Visualising Data with Charts
&lt;/h3&gt;

&lt;p&gt;Numbers alone can be hard to interpret. Charts help turn data into visual insights.&lt;/p&gt;

&lt;p&gt;Excel allows users to create:&lt;/p&gt;

&lt;p&gt;Bar charts&lt;/p&gt;

&lt;p&gt;Line charts&lt;/p&gt;

&lt;p&gt;Pie charts&lt;/p&gt;

&lt;p&gt;Column charts&lt;/p&gt;

&lt;p&gt;For example, a pie chart can show percentage distribution, while a bar chart can compare values across categories.&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%2Fencrypted-tbn0.gstatic.com%2Fimages%3Fq%3Dtbn%3AANd9GcRLl962Z9tBNV32CSuOpNf1psWk_874U6MbQw%26s" 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%2Fencrypted-tbn0.gstatic.com%2Fimages%3Fq%3Dtbn%3AANd9GcRLl962Z9tBNV32CSuOpNf1psWk_874U6MbQw%26s" alt="Bar charts" width="272" height="185"&gt;&lt;/a&gt;&lt;br&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%2Fe2h7y8f3gp3kti4w6w0r.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%2Fe2h7y8f3gp3kti4w6w0r.png" width="800" height="318"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;em&gt;Why Excel is a Must-Have Skill for Data Analysts&lt;/em&gt;
&lt;/h3&gt;

&lt;p&gt;Excel remains relevant in data analytics because:&lt;/p&gt;

&lt;p&gt;It is widely used across industries&lt;/p&gt;

&lt;p&gt;It supports quick analysis and reporting&lt;/p&gt;

&lt;p&gt;It builds a strong foundation for advanced analytics tools&lt;/p&gt;

&lt;p&gt;It helps develop analytical thinking&lt;/p&gt;

&lt;p&gt;For beginners, mastering Excel is like learning the alphabet of data analytics.&lt;/p&gt;

&lt;p&gt;Conclusion: Small Cells, Big Power 💡&lt;/p&gt;

&lt;p&gt;Microsoft Excel may look simple, but it is a powerful tool for basic data analysis. From organising and cleaning data to performing calculations and creating charts, Excel helps transform raw data into meaningful insights. For anyone starting their data analytics journey, Excel is not just usefult’s essential.&lt;/p&gt;

</description>
      <category>data</category>
      <category>datascience</category>
    </item>
    <item>
      <title>Delving into data science</title>
      <dc:creator>Mathew Leshan</dc:creator>
      <pubDate>Sat, 17 Jan 2026 05:02:08 +0000</pubDate>
      <link>https://forem.com/mathew_leshan_0f6642142b2/my-first-week-at-lux-c33</link>
      <guid>https://forem.com/mathew_leshan_0f6642142b2/my-first-week-at-lux-c33</guid>
      <description>&lt;h2&gt;
  
  
  &lt;em&gt;Understanding Git, GitHub, push, pull and version control&lt;/em&gt;
&lt;/h2&gt;

&lt;p&gt;This article will help you understand Git and GitHub, terms like push, pull, tracking changes, and version control&lt;/p&gt;

&lt;p&gt;Git Bash is a tool that allows you to interact with Git using simple commands. It is basically a channel through which you can communicate with GitHub.&lt;/p&gt;

&lt;p&gt;To install your Git Bash, visit &lt;a href="https://git-scm.com/install/" rel="noopener noreferrer"&gt;GITBASH&lt;/a&gt;. Once installed, you can open Git Bash from your application and you will be directed to a black window where you will begin.&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%2F5sivpxji3tzean69fw2o.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%2F5sivpxji3tzean69fw2o.png" alt="Git bash" width="257" height="196"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Connecting Git Bash to GitHub
&lt;/h3&gt;

&lt;p&gt;Now, after creating your account on &lt;a href="https://github.com/" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;, you have to configure Gitbash to git hub by inputting commands that will generate a key which you'll later input to GitHub and connect them.&lt;/p&gt;

&lt;h3&gt;
  
  
  Pushing Code to GitHub
&lt;/h3&gt;

&lt;p&gt;Pushing code means making changes to a project and sending those changes to GitHub.This step uploads your work to the online repository, making it available as a backup or for collaboration.&lt;/p&gt;

&lt;p&gt;After pushing, your code is safely stored online. If your computer fails or you switch devices, your work remains accessible on GitHub.&lt;/p&gt;

&lt;p&gt;Pulling Code from GitHub&lt;/p&gt;

&lt;p&gt;Pulling code is the opposite of pushing. It means downloading the latest version of a project from GitHub to your computer.&lt;/p&gt;

&lt;p&gt;Pulling is useful when:&lt;/p&gt;

&lt;p&gt;You are working on multiple devices&lt;/p&gt;

&lt;p&gt;Someone else has updated the project&lt;/p&gt;

&lt;h3&gt;
  
  
  Tracking Changes in Git
&lt;/h3&gt;

&lt;p&gt;Tracking changes means checking what files have been modified, added, or deleted since the last save. Git continuously watches your project and notes every difference&lt;br&gt;
This helps you to stay up to date with your projects, especially if you are working on different devices or collaborating on a project.&lt;/p&gt;

&lt;h3&gt;
  
  
  Version control using Git
&lt;/h3&gt;

&lt;p&gt;Version control is basically a system that records every change made to a project over time. Instead of saving multiple copies of the same file with different names, Git automatically keeps a history of all changes.&lt;/p&gt;

&lt;p&gt;This means you can:&lt;/p&gt;

&lt;p&gt;Go back to an earlier version of your work&lt;/p&gt;

&lt;p&gt;See exactly what changed and when&lt;/p&gt;

&lt;p&gt;Work safely without fear of losing progress&lt;/p&gt;

&lt;p&gt;Version control is very important when working in a group since it helps not to overwrite each others work.&lt;/p&gt;

</description>
      <category>datascience</category>
    </item>
  </channel>
</rss>
