<?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: EricMWaimiri</title>
    <description>The latest articles on Forem by EricMWaimiri (@ericmwaimiri).</description>
    <link>https://forem.com/ericmwaimiri</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%2F3818862%2Fbe3f8deb-62cf-48ba-aa8c-f5fa79569d76.png</url>
      <title>Forem: EricMWaimiri</title>
      <link>https://forem.com/ericmwaimiri</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/ericmwaimiri"/>
    <language>en</language>
    <item>
      <title>First Week Reflections on SQL</title>
      <dc:creator>EricMWaimiri</dc:creator>
      <pubDate>Mon, 13 Apr 2026 14:06:35 +0000</pubDate>
      <link>https://forem.com/ericmwaimiri/first-week-reflections-on-sql-1kdn</link>
      <guid>https://forem.com/ericmwaimiri/first-week-reflections-on-sql-1kdn</guid>
      <description>&lt;p&gt;&lt;strong&gt;DDL vs DML&lt;/strong&gt;&lt;br&gt;
In SQL, two families of commands shape how we interact with data: &lt;em&gt;Data Definition Language (DDL)&lt;/em&gt; and &lt;em&gt;Data Manipulation Language (DML)&lt;/em&gt;.  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;DDL commands (&lt;code&gt;CREATE&lt;/code&gt;, &lt;code&gt;ALTER&lt;/code&gt;, &lt;code&gt;DROP&lt;/code&gt;) are like the architect’s blueprint, they define the structure of the database.
&lt;/li&gt;
&lt;li&gt;DML commands (&lt;code&gt;INSERT&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;SELECT&lt;/code&gt;) are the everyday tools. They let us add, change, or remove the actual records inside those structures. 
Here is how I tackled the first assignment:&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;&lt;code&gt;CREATE&lt;/code&gt;&lt;/em&gt; built the schema &lt;code&gt;nairobi_academy&lt;/code&gt; and three tables (&lt;code&gt;students&lt;/code&gt;, &lt;code&gt;subjects&lt;/code&gt;, &lt;code&gt;exam_results&lt;/code&gt;).
&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%2F5obuw5aky4iunwzhx987.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%2F5obuw5aky4iunwzhx987.png" alt=" " width="517" height="313"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;&lt;code&gt;INSERT&lt;/code&gt;&lt;/em&gt; populated each table with 10 rows of realistic data.&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%2Fhp5d66fuqso6z8aesv0f.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%2Fhp5d66fuqso6z8aesv0f.png" alt=" " width="800" height="279"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;&lt;code&gt;UPDATE&lt;/code&gt;&lt;/em&gt; corrected mistakes: Esther Akinyi’s city changed from Nakuru to Nairobi, and marks for result_id 5 were fixed from 49 to 59.
&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%2Fwfk5o64n483yqi1r5e1a.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%2Fwfk5o64n483yqi1r5e1a.png" alt=" " width="712" height="144"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;&lt;code&gt;DELETE&lt;/code&gt;&lt;/em&gt; removed the cancelled exam result with result_id 9.
&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%2Fst9jqqynh26mwoi231lb.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%2Fst9jqqynh26mwoi231lb.png" alt=" " width="586" height="76"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Filtering with WHERE&lt;/strong&gt;&lt;br&gt;
The &lt;code&gt;WHERE&lt;/code&gt; clause is the gatekeeper of SQL. Without it, every row would be affected — a dangerous mistake!&lt;br&gt;&lt;br&gt;
I used it to:&lt;br&gt;
_- Find students in Form 4 (&lt;code&gt;WHERE class = 'Form 4'&lt;/code&gt;).  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Retrieve exam results with marks &amp;gt;= 70.
&lt;/li&gt;
&lt;li&gt;Combine conditions (&lt;code&gt;WHERE class = 'Form 3' AND city = 'Nairobi'&lt;/code&gt;).
&lt;/li&gt;
&lt;li&gt;Explore operators like:

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;BETWEEN&lt;/code&gt; for ranges (marks between 50 and 80).
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;IN&lt;/code&gt; for multiple matches (cities in Nairobi, Mombasa, Kisumu).
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;LIKE&lt;/code&gt; for patterns (names starting with A or E). _ &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;It’s the precision tool that makes queries powerful and safe.&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%2Fz9kkid8uf514q7bqfukj.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%2Fz9kkid8uf514q7bqfukj.png" alt=" " width="800" height="395"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CASE WHEN: Transforming Data&lt;/strong&gt;&lt;br&gt;
Raw numbers are useful, but categories tell stories. With &lt;code&gt;CASE WHEN&lt;/code&gt;, I transformed exam marks into performance labels: Distinction, Merit, Pass, or Fail.  &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%2Fdqamvh38x0fr0kjabqob.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%2Fdqamvh38x0fr0kjabqob.png" alt=" " width="703" height="237"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I also classified students as Senior (Form 3 or 4) or Junior (Form 1 or 2).  &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%2Fhgdrrigeibkjrdu7i4ir.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%2Fhgdrrigeibkjrdu7i4ir.png" alt=" " width="800" height="168"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The most challenging part was remembering to always pair &lt;code&gt;UPDATE&lt;/code&gt; and &lt;code&gt;DELETE&lt;/code&gt; with &lt;code&gt;WHERE&lt;/code&gt;. Forgetting it could wipe out entire tables in seconds. The most interesting part was experimenting with &lt;code&gt;CASE WHEN&lt;/code&gt;. It was like giving the database a voice: instead of just numbers, it could tell me who excelled, who struggled, and who was senior or junior.  This week, I realized that the beauty of SQL lies in precision and creativity.&lt;/p&gt;

</description>
      <category>sql</category>
      <category>postgres</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Publish a Power BI Report and Embed It into a Website.</title>
      <dc:creator>EricMWaimiri</dc:creator>
      <pubDate>Tue, 07 Apr 2026 09:20:49 +0000</pubDate>
      <link>https://forem.com/ericmwaimiri/publish-a-power-bi-report-and-embed-it-into-a-website-20pm</link>
      <guid>https://forem.com/ericmwaimiri/publish-a-power-bi-report-and-embed-it-into-a-website-20pm</guid>
      <description>&lt;p&gt;Power BI transforms raw numbers into interactive dashboards that are full of insights. The real magic, however, happens when you share those dashboards with the world. Publishing and embedding a Power BI report lets your audience explore the data directly on your website, turning a static page into a dynamic story.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;- Create a Workspace&lt;/strong&gt;&lt;br&gt;
Workspaces organize your reports and control who can access them.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Go to Power BI Service; Workspaces; Create Workspace&lt;/em&gt;&lt;br&gt;
&lt;em&gt;Log in to the Power BI Service&lt;/em&gt; &lt;a href="https://app.powerbi.com/user/user-settings/general?experience=power-bi" rel="noopener noreferrer"&gt;app.powerbi.com&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Click Workspaces in the left navigation&lt;/em&gt;&lt;br&gt;
&lt;em&gt;Select Create a Workspace and give it a name&lt;/em&gt;&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%2Fw1gz9qodhi6qemcia2lb.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%2Fw1gz9qodhi6qemcia2lb.png" alt=" " width="594" height="907"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;- Upload and Publish Your Report&lt;/strong&gt;&lt;br&gt;
Publishing moves your report from Power BI Desktop to the cloud.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;In Power BI Desktop; Home; Publish&lt;/em&gt;&lt;br&gt;
&lt;em&gt;Open your report in Power BI Desktop&lt;/em&gt;&lt;br&gt;
&lt;em&gt;Click Publish on the ribbon&lt;/em&gt;&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%2F2v6279izkjgiztjkezb6.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%2F2v6279izkjgiztjkezb6.png" alt=" " width="406" height="172"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Choose the workspace you created&lt;/em&gt;&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%2Fp2qxibj8j4pqnahxa678.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%2Fp2qxibj8j4pqnahxa678.png" alt=" " width="800" height="635"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Confirm upload&lt;/em&gt;; the report will appear in the Power BI Service&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%2Fydskx0v7k8cvwfly69hh.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%2Fydskx0v7k8cvwfly69hh.png" alt=" " width="800" height="502"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;- Generate the Embed Code&lt;/strong&gt;&lt;br&gt;
The embed code allows you to integrate the report into a website.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Go to Power BI Service; Report (In Workspace); File; Embed Report&lt;/em&gt;&lt;br&gt;
Open your report in the Power BI Service Click File → Embed Report → Website or Portal&lt;br&gt;
&lt;em&gt;Copy the iframe embed code provided&lt;/em&gt;&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%2F7sw7qxdp8dl34h7j13j4.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%2F7sw7qxdp8dl34h7j13j4.png" alt=" " width="800" height="483"&gt;&lt;/a&gt;&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%2Fljdjai76m999tm6fi6dp.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%2Fljdjai76m999tm6fi6dp.png" alt=" " width="800" height="126"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;- Embed the Report on Your Website&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Open a text editor&lt;/em&gt;&lt;br&gt;
&lt;em&gt;Write or generate a code&lt;/em&gt; to embed a power BI report on your website&lt;br&gt;
&lt;em&gt;Paste the iframe embed code&lt;/em&gt; where you want the report to appear&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%2Fdiyeqgjv3seh1k7mp4tj.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%2Fdiyeqgjv3seh1k7mp4tj.png" alt=" " width="800" height="350"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Save and publish your website&lt;/em&gt;&lt;br&gt;
&lt;em&gt;Open the embedded report on your browser&lt;/em&gt; to ensure it loads and is interactive&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%2Fj056672mwlamut4dduoq.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%2Fj056672mwlamut4dduoq.png" alt=" " width="800" height="467"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To understand all the technicality, think of it like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Workspaces are the foundation for organizing and securing reports.&lt;/li&gt;
&lt;li&gt;Publishing moves reports from desktop to the cloud.&lt;/li&gt;
&lt;li&gt;Embed codes are the bridge between Power BI and your website.&lt;/li&gt;
&lt;li&gt;Embedded reports remain fully interactive, giving your audience a dynamic data experience.&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>powerbi</category>
      <category>analytics</category>
    </item>
    <item>
      <title>Power BI and Data Modeling</title>
      <dc:creator>EricMWaimiri</dc:creator>
      <pubDate>Sun, 29 Mar 2026 22:51:25 +0000</pubDate>
      <link>https://forem.com/ericmwaimiri/power-bi-and-data-modeling-4iol</link>
      <guid>https://forem.com/ericmwaimiri/power-bi-and-data-modeling-4iol</guid>
      <description>&lt;p&gt;Data modeling in Power BI is basically about organizing your data properly so you can analyze it easily. Instead of just loading random tables, you structure them in a way that makes sense.&lt;br&gt;
This involves:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Creating and defining tables&lt;/li&gt;
&lt;li&gt;Connecting them using relationships&lt;/li&gt;
&lt;li&gt;Choosing the right structure (schema)&lt;/li&gt;
&lt;li&gt;Combining data using joins&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Joins (When Combining Data):&lt;/em&gt;&lt;br&gt;
When working in Power Query or SQL, joins help you decide how two tables should be combined:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;INNER JOIN: Only returns matching data in both tables&lt;/li&gt;
&lt;li&gt;LEFT JOIN: All data from the left table + matches from the right&lt;/li&gt;
&lt;li&gt;RIGHT JOIN: All data from the right table + matches from the left&lt;/li&gt;
&lt;li&gt;FULL OUTER JOIN: Everything from both tables, matched where possible&lt;/li&gt;
&lt;li&gt;LEFT ANTI JOIN: Data in left table with no match in right&lt;/li&gt;
&lt;li&gt;RIGHT ANTI JOIN: Data in right table with no match in left&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In Power BI, you do this by:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Going to Power Query: Home: Merge Queries&lt;/li&gt;
&lt;li&gt;Selecting your tables and the type of join&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Relationships (How Tables Connect):&lt;/em&gt;&lt;br&gt;
After loading data, you connect tables using relationships:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;One-to-One which is rare like, Employee : Employee Details&lt;/li&gt;
&lt;li&gt;One-to-Many which is very common like, Customer : Orders&lt;/li&gt;
&lt;li&gt;Many-to-Many which is more complex like, Students : Courses&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Important Relationship Properties:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Active vs Inactive: Only one active relationship at a time&lt;/li&gt;
&lt;li&gt;Cardinality: Defines the type&lt;/li&gt;
&lt;li&gt;Cross-filter direction; Single (default) which filters in one direction or Both whose filters move both ways&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;In Power BI:&lt;/em&gt;&lt;br&gt;
Go to Model View; Manage Relationships&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Joins vs Relationships&lt;/em&gt;&lt;br&gt;
Joins Combine tables into one while relationships keep tables separate but connected&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Fact vs Dimension Tables:&lt;/em&gt;&lt;br&gt;
Fact Tables are the numbers you want to analyze like sales or revenue while Dimension Tables is the descriptive info like customer name, product category etc. Remember to always keep facts numeric and dimensions descriptive if you want to have clean reports.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Schemas (How You Structure Data):&lt;/em&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;em&gt;Star Schema (The recommended option):&lt;/em&gt;
One central fact table connected to dimension tables. It is rather simple and efficient.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Snowflake Schema&lt;/em&gt; - More complex (dimensions split into smaller tables) and is more popularly used for large datasets.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Flat Table (DLAT):&lt;/em&gt;
Everything in one table and is easy to build but not efficient for big data&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Role-Playing Dimensions:&lt;/em&gt;&lt;br&gt;
This is when one table is used in multiple ways.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Some Common Mistakes:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ambiguous relationships&lt;/li&gt;
&lt;li&gt;Many-to-many confusion&lt;/li&gt;
&lt;li&gt;Poor table structure&lt;/li&gt;
&lt;li&gt;Forgetting to activate relationships&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So a simple Workflow would go like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Load data; Power Query&lt;/li&gt;
&lt;li&gt;Combine data; Merge Queries (joins)&lt;/li&gt;
&lt;li&gt;Connect tables; Model View&lt;/li&gt;
&lt;li&gt;Choose structure; Star/Snowflake schema&lt;/li&gt;
&lt;li&gt;Add role-playing dimensions if needed&lt;/li&gt;
&lt;li&gt;Check everything; relationships, filters, and structure&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Good data modeling makes your reports faster, cleaner, and easier to understand. Without it, even simple analysis becomes confusing.&lt;/p&gt;

</description>
      <category>powerfuldevs</category>
      <category>beginners</category>
      <category>datascience</category>
    </item>
    <item>
      <title>Real World Data Analysis with Excel</title>
      <dc:creator>EricMWaimiri</dc:creator>
      <pubDate>Sun, 29 Mar 2026 15:02:31 +0000</pubDate>
      <link>https://forem.com/ericmwaimiri/real-world-data-analysis-with-excel-1ea2</link>
      <guid>https://forem.com/ericmwaimiri/real-world-data-analysis-with-excel-1ea2</guid>
      <description>&lt;p&gt;Microsoft Excel looks like just any other spreadsheet; however, it’s an absolute powerhouse for turning raw data into insights. It's core function - organizing information into rows and columns - makes it easier to perform complex calculations, look over patterns, and bring data to life through various visualizations.&lt;/p&gt;

&lt;p&gt;Excel is a critical asset across various industries:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Business Reporting&lt;/em&gt;: Excel helps organizations and businesses track performance and make smarter decisions.&lt;br&gt;
Financial Analysis: While forecasting revenue, calculating margins, and evaluating investment opportunities analysts use excel to work with precision.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Project Management&lt;/em&gt;: Teams rely on Excel to map timelines, allocate resources, and keep projects running smoothly to the end.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Research&lt;/em&gt;: Raw survey data is turned into clear insights using statistical analysis and visual storytelling.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Excel's formulas and functions keep us from doing redundant work and reduces human error, allowing us to focus on insight and strategy. Some of the most popular and important functions include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;SUM()&lt;/em&gt; - instantly totals values e.g. calculating weekly sales.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;IF()&lt;/em&gt; - a logical function that checks whether something is true or false, and then returns one result if it’s true, and another result if it’s false.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;VLOOKUP() / XLOOKUP()&lt;/em&gt; - Vertical Lookup or VLOOKUP searches for a value in the first column of a table and returns a corresponding value from another column in the same row. XLOOKUP is a modern replacement for VLOOKUP. Unlike VLOOKUP it can search in any direction and is easier to use.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;PivotTables&lt;/em&gt; - Visual tools that summarize and analyze large amounts of data quickly. Instead of manually calculating totals or averages, a PivotTable lets you organize your data to see it from different angles.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Conditional Formatting&lt;/em&gt; - makes it easier to see trends and outliers with nothing important going unnoticed.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Excel for me feels like a lifesaver when it comes to transformation and calculation of data. I will continue to dive into the excitement as I discover new functionalities while exploring different datasets.&lt;/p&gt;

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