<?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>DEV Community: Stephen Omengo</title>
    <description>The latest articles on DEV Community by Stephen Omengo (@stephenomengo).</description>
    <link>https://dev.to/stephenomengo</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%2F3818274%2F59c35753-52a6-412f-b793-ab74388556a2.png</url>
      <title>DEV Community: Stephen Omengo</title>
      <link>https://dev.to/stephenomengo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/stephenomengo"/>
    <language>en</language>
    <item>
      <title>Understanding Data Modeling in Power BI: Joins, Relationships, and Schemas Explained.</title>
      <dc:creator>Stephen Omengo</dc:creator>
      <pubDate>Tue, 07 Apr 2026 07:14:51 +0000</pubDate>
      <link>https://dev.to/stephenomengo/understanding-data-modeling-in-power-bi-joins-relationships-and-schemas-explained-1jpb</link>
      <guid>https://dev.to/stephenomengo/understanding-data-modeling-in-power-bi-joins-relationships-and-schemas-explained-1jpb</guid>
      <description>&lt;p&gt;Data modeling is a critical step in building effective Power BI reports. It shows how data is structured, connected, and used to generate understanding. A well-designed model improves performance and ensures accuracy, while a poor one can lead to slow dashboards and incorrect results.&lt;br&gt;
This article explains data modeling in &lt;em&gt;Power BI&lt;/em&gt;, covering &lt;em&gt;SQL&lt;/em&gt; &lt;em&gt;joins&lt;/em&gt;, &lt;em&gt;relationships&lt;/em&gt;, &lt;em&gt;schemas&lt;/em&gt;, and how to implement each step in practice.&lt;/p&gt;

&lt;h1&gt;
  
  
  Data Modeling
&lt;/h1&gt;

&lt;p&gt;Data modeling is the process of organizing data into tables and showing how those tables relate to one another. This happens after data is &lt;em&gt;imported and transformed&lt;/em&gt;.&lt;br&gt;
Purpose of data modelling: &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Efficient calculations&lt;/li&gt;
&lt;li&gt;Structure of data &lt;/li&gt;
&lt;li&gt;improve efficiency and clarity&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;
  
  
  SQL joins
&lt;/h1&gt;

&lt;p&gt;What are &lt;em&gt;joins&lt;/em&gt;? They are used to combine rows from two or more tables based on a related column.&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%2Fn7mledi4x857duznz7uk.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%2Fn7mledi4x857duznz7uk.webp" alt=" " width="800" height="612"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  1.Inner join
&lt;/h1&gt;

&lt;p&gt;Returns only matching rows from both tables.&lt;/p&gt;

&lt;h1&gt;
  
  
  2.LEFT JOIN (LEFT OUTER)
&lt;/h1&gt;

&lt;p&gt;Returns all rows from the left table and matching rows from the right.&lt;/p&gt;

&lt;h1&gt;
  
  
  3.RIGHT JOIN (RIGHT OUTER)
&lt;/h1&gt;

&lt;p&gt;Returns all rows from the right table and matching rows from the left.&lt;/p&gt;

&lt;h1&gt;
  
  
  4.FULL OUTER JOIN
&lt;/h1&gt;

&lt;p&gt;Returns all rows from both tables.&lt;/p&gt;

&lt;h1&gt;
  
  
  6. LEFT ANTI JOIN
&lt;/h1&gt;

&lt;p&gt;Returns rows from the left table with no match in the right.&lt;/p&gt;

&lt;h1&gt;
  
  
  7.RIGHT ANTI JOIN
&lt;/h1&gt;

&lt;p&gt;Returns rows from the right table with no match in the left.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;How to Create Joins in Power BI&lt;/em&gt;&lt;br&gt;
.Open Power BI Desktop&lt;br&gt;
.Click Transform Data&lt;br&gt;
.Select a table&lt;br&gt;
.Click Merge Queries&lt;br&gt;
.Select the second table&lt;br&gt;
.Choose a matching column&lt;br&gt;
&lt;em&gt;Select join type&lt;/em&gt;:&lt;br&gt;
.Inner&lt;br&gt;
.Left Outer&lt;br&gt;
.Right Outer&lt;br&gt;
.Full Outer&lt;br&gt;
.Left Anti&lt;br&gt;
.Right Anti&lt;br&gt;
&lt;em&gt;Click OK&lt;/em&gt;&lt;br&gt;
.Expand merged columns&lt;/p&gt;

&lt;h1&gt;
  
  
  Relationships in Power BI
&lt;/h1&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%2Fakd8ncy8gsgx1zlntb8s.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%2Fakd8ncy8gsgx1zlntb8s.png" alt=" " width="724" height="442"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Type of relationships:&lt;br&gt;
1.One-to-Many (1) -Most common type.&lt;br&gt;
2.Many-to-Many (M) -Both tables contain duplicate values.&lt;br&gt;
3.One-to-One (1:1) -Each record matches exactly one record in another table.&lt;/p&gt;

&lt;h1&gt;
  
  
  Creating relationships in Power BI
&lt;/h1&gt;

&lt;p&gt;.Go to Home → Manage Relationships&lt;br&gt;
.Click New&lt;br&gt;
.Select tables and columns&lt;br&gt;
.Set cardinality and filter direction&lt;br&gt;
.Click OK&lt;/p&gt;

&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;Data modeling in Power BI is the foundation of effective reporting. Understanding joins, relationships, and schemas allows you to build models that are both efficient and reliable.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Guide to Publishing and Embedding Power BI Reports on the Web with IFrames</title>
      <dc:creator>Stephen Omengo</dc:creator>
      <pubDate>Tue, 07 Apr 2026 07:13:36 +0000</pubDate>
      <link>https://dev.to/stephenomengo/guide-to-publishing-and-embedding-power-bi-reports-on-the-web-with-iframes-376n</link>
      <guid>https://dev.to/stephenomengo/guide-to-publishing-and-embedding-power-bi-reports-on-the-web-with-iframes-376n</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;In today’s data-driven world, organizations rely heavily on tools that transform raw data into valuable insights. One of the most powerful solutions for this purpose is &lt;em&gt;Microsoft Power BI&lt;/em&gt;. It enables analysts and businesses to create interactive dashboards and reports that support informed decision-making. One of the most powerful tools for this purpose is Microsoft Power BI. It allows analysts and businesses to create interactive dashboards and reports to support decision-making.&lt;/p&gt;

&lt;p&gt;This article provides a step-by-step guide on how to :&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a Power BI workspace&lt;/li&gt;
&lt;li&gt;Upload and publish a report&lt;/li&gt;
&lt;li&gt;Generate an Embed code&lt;/li&gt;
&lt;li&gt;Embed the report into a website using an iframe&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%2F8zv0jazlc09bgla4w2gs.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%2F8zv0jazlc09bgla4w2gs.jpg" alt=" " width="315" height="160"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What is &lt;em&gt;Power BI&lt;/em&gt;? This is a business analytics tool developed by Microsoft that enables users to transform, clean data, build interactive visualizations, and connect to multiple data sources*Excel*.&lt;/p&gt;

&lt;p&gt;What is &lt;em&gt;Power BI Publishing&lt;/em&gt;? Publishing a Power BI report involves moving your report from Power BI Desktop to the Power BI Service &lt;em&gt;cloud platform&lt;/em&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;p&gt;Key things to consider before you start:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Power BI Desktop installed&lt;/li&gt;
&lt;li&gt;A Power BI account&lt;/li&gt;
&lt;li&gt;A complete report &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Step 1: Create a Workspace in Power BI Service
&lt;/h2&gt;

&lt;p&gt;A workspace is a shared environment where you store datasets, reports, and dashboards.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tutorial
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Go to Power BI Service: &lt;a href="https://app.powerbi.com" rel="noopener noreferrer"&gt;https://app.powerbi.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Log in using your account&lt;/li&gt;
&lt;li&gt;On the left sidebar, click &lt;em&gt;Workspaces&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;Click + &lt;em&gt;New workspace&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;Enter:
.&lt;em&gt;Workspace name&lt;/em&gt; 
.&lt;em&gt;Description&lt;/em&gt; &lt;/li&gt;
&lt;li&gt;Click Save&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%2Fcckmoo9qhiy11kpec0hy.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%2Fcckmoo9qhiy11kpec0hy.png" alt=" " width="221" height="229"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Prepare Your Report
&lt;/h2&gt;

&lt;p&gt;You should make sure that your report is: Clean and well-structured, has meaningful visuals, uses proper relationships, and DAX measures.&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%2Fiw3afau0x8786c2een4k.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%2Fiw3afau0x8786c2een4k.png" alt=" " width="800" height="454"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Publish the Report to Power BI Service
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Tutorial
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open your report in Power BI &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%2Fger6m4djib07t7gxgbdl.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%2Fger6m4djib07t7gxgbdl.png" alt=" " width="800" height="125"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;em&gt;Click File&lt;/em&gt; → &lt;em&gt;Publish&lt;/em&gt; → &lt;em&gt;Publish to Power BI&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;Sign in if prompted&lt;/li&gt;
&lt;li&gt;Select your workspace &lt;em&gt;created earlier&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;Click Select&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%2Fp2ix9mkp7swg5r8ocnj7.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%2Fp2ix9mkp7swg5r8ocnj7.png" alt=" " width="565" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once uploaded, you’ll see a confirmation message.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Verify the Report in Power BI Service
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Head back to Power BI Service&lt;/li&gt;
&lt;li&gt;Open your &lt;em&gt;workspace&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;Locate your report under Reports&lt;/li&gt;
&lt;li&gt;Click to open and confirm everything is working&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%2Fdlp1vumrs55bhyoesbz7.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%2Fdlp1vumrs55bhyoesbz7.webp" alt=" " width="800" height="316"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Generate the Embed Code
&lt;/h2&gt;

&lt;p&gt;Power BI allows you to embed reports using &lt;em&gt;Publish to Web or secure embedding&lt;/em&gt;.&lt;br&gt;
Note: &lt;em&gt;Publishing to the web&lt;/em&gt; makes it easily accessible, and anyone with the link can view it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tutorial
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open your report in Power BI Service&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Click File → Embed report → Publish to web&lt;/em&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%2Fger6m4djib07t7gxgbdl.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%2Fger6m4djib07t7gxgbdl.png" alt=" " width="800" height="125"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click Create embed code&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%2Fhnx1iusasrcadxi2plw2.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%2Fhnx1iusasrcadxi2plw2.webp" alt=" " width="557" height="394"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Confirm the warning&lt;/li&gt;
&lt;li&gt;Copy the generated iframe code&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Step 6: Understanding the IFrame Code
&lt;/h2&gt;

&lt;p&gt;The embed code will look like this:&lt;br&gt;
&lt;code&gt;&amp;lt;iframe width="800" height="600" src="https://app.powerbi.com/view?r=..." frameborder="0" allowFullScreen="true"&amp;gt;&amp;lt;/iframe&amp;gt;&lt;/code&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%2Fh7nuaw7468b1kx86tbsd.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%2Fh7nuaw7468b1kx86tbsd.webp" alt=" " width="551" height="392"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Key Attributes&lt;/em&gt;: &lt;br&gt;
.Width &amp;amp; height: Control size&lt;br&gt;
.Src: Contains report URL&lt;br&gt;
.Frameborder: Removes border&lt;br&gt;
.AllowFullScreen: Enables full-screen mode&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 7: Embed the Report into a Website
&lt;/h2&gt;

&lt;p&gt;.You can embed this iframe into:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;HTML websites&lt;/li&gt;
&lt;li&gt;Blogs (Dev.to, Medium)&lt;/li&gt;
&lt;li&gt;Web apps&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Step 8: Test Your Embedded Report
&lt;/h2&gt;

&lt;p&gt;After embedding:&lt;br&gt;
.Open your website in a browser&lt;br&gt;
. Check: Report loads correctly, Filters and visuals work, and Responsiveness.&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%2Fjchtkxzkasppgn1bz51a.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%2Fjchtkxzkasppgn1bz51a.png" alt=" " width="800" height="471"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  conclusion
&lt;/h2&gt;

&lt;p&gt;Publishing and embedding Power BI reports is an essential skill for any data analyst. It allows you to transform your work into a shareable and interactive experience accessible from anywhere.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
