<?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: rosemutai</title>
    <description>The latest articles on DEV Community by rosemutai (@rosemutai).</description>
    <link>https://dev.to/rosemutai</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%2F3844977%2F7e3472ee-2980-47dc-9489-c0946589f209.png</url>
      <title>DEV Community: rosemutai</title>
      <link>https://dev.to/rosemutai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rosemutai"/>
    <language>en</language>
    <item>
      <title>Mastering SQL Subqueries and CTEs</title>
      <dc:creator>rosemutai</dc:creator>
      <pubDate>Tue, 21 Apr 2026 16:19:12 +0000</pubDate>
      <link>https://dev.to/rosemutai/mastering-sql-subqueries-and-ctes-28c3</link>
      <guid>https://dev.to/rosemutai/mastering-sql-subqueries-and-ctes-28c3</guid>
      <description>&lt;h3&gt;
  
  
  Introduction
&lt;/h3&gt;

&lt;p&gt;SQL is one of the most important tools in data analysis because it allows analysts to retrieve, transform and analyze data directly from relational databases. Often, we will use basic queries but then as the datasets we are using grow, we will require advanced querying techniques like &lt;strong&gt;subqueries&lt;/strong&gt; and &lt;strong&gt;Common Table Expressions (CTEs)&lt;/strong&gt;.&lt;br&gt;
In this article, we are going to learn:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What subqueries are and how they work&lt;/li&gt;
&lt;li&gt;Types of subqueries&lt;/li&gt;
&lt;li&gt;When to use subqueries&lt;/li&gt;
&lt;li&gt;What CTEs are&lt;/li&gt;
&lt;li&gt;Comparison between subqueries and CTEs&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Subquery
&lt;/h3&gt;

&lt;p&gt;A subquery is a query that is written inside another SQL query. It is also called an &lt;strong&gt;inner query&lt;/strong&gt; or a &lt;strong&gt;nested query&lt;/strong&gt;.&lt;/p&gt;
&lt;h4&gt;
  
  
  How it works
&lt;/h4&gt;

&lt;p&gt;First, the inner query executes, then the result is passed to the outer query and finally the outer query uses that result to filter rows, apply aggregate functions like SUM, update data or delete rows based on conditions.&lt;br&gt;
&lt;strong&gt;For example&lt;/strong&gt;&lt;br&gt;
This query will:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Group customers by city&lt;/li&gt;
&lt;li&gt;Count how many customers each city has&lt;/li&gt;
&lt;li&gt;Select the city with the highest count
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT city
FROM customers
GROUP BY city
ORDER BY COUNT(*) DESC
LIMIT 1;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;Result&lt;/strong&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%2Fsp593c47f31wo5d7pruu.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%2Fsp593c47f31wo5d7pruu.png" alt="subquery" width="432" height="128"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Types of subqueries
&lt;/h3&gt;

&lt;p&gt;To understand the different types of subqueries, we are going to use two tables: &lt;strong&gt;customers&lt;/strong&gt; and &lt;strong&gt;orders&lt;/strong&gt; table:&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%2F3s0kirevmrv27uws9zyd.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%2F3s0kirevmrv27uws9zyd.png" alt="customers table" width="500" height="203"&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%2Fe7q1j41gbb00rodagxku.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%2Fe7q1j41gbb00rodagxku.png" alt="orders table" width="731" height="240"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h4&gt;
  
  
  1. Single-Row Subquery
&lt;/h4&gt;

&lt;p&gt;This subquery returns only one value&lt;br&gt;
&lt;strong&gt;For example&lt;/strong&gt;&lt;br&gt;
To display customers who spent more than the average order amount&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT name
FROM customers
WHERE customer_id IN (
    SELECT customer_id
    FROM orders
    GROUP BY customer_id
    HAVING SUM(amount) &amp;gt; (
        SELECT AVG(total_spent)
        FROM (
            SELECT SUM(amount) AS total_spent
            FROM orders
            GROUP BY customer_id
        ) AS customer_totals
    )
);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Result:&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%2F9pfv82rlcqe7vnlj4fcx.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%2F9pfv82rlcqe7vnlj4fcx.png" alt="display customers who spent more than the average order amount" width="392" height="135"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  2. Multi-Row Subquery
&lt;/h4&gt;

&lt;p&gt;This subquery returns more than one value&lt;br&gt;
&lt;strong&gt;For example&lt;/strong&gt;&lt;br&gt;
To display customers who have placed orders&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT name
FROM customers
WHERE customer_id IN (
    SELECT customer_id
    FROM orders
);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Result&lt;/strong&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%2Fyzjuepogr2ywqzuufbfs.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%2Fyzjuepogr2ywqzuufbfs.png" alt="display customers who have placed orders" width="395" height="146"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  3. Correlated Subquery
&lt;/h4&gt;

&lt;p&gt;This is a subquery that depends on the outer query for its values&lt;br&gt;
&lt;strong&gt;For example:&lt;/strong&gt;&lt;br&gt;
To display customers whose order is above their own average order value:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT c.name, o.amount
FROM customers c
JOIN orders o ON c.customer_id = o.customer_id
WHERE o.amount &amp;gt; (
    SELECT AVG(o2.amount)
    FROM orders o2
    WHERE o2.customer_id = o.customer_id
);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Result&lt;/strong&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%2F26mqpd2bmtds0il4b9ja.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%2F26mqpd2bmtds0il4b9ja.png" alt="display customers whose order is above their own average order" width="479" height="143"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h4&gt;
  
  
  When to use Subqueries
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;When filtering based on aggregated data&lt;/li&gt;
&lt;li&gt;When breaking down complex logic&lt;/li&gt;
&lt;li&gt;When performing dynamic comparisons&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Common Table Expression (CTE)
&lt;/h3&gt;

&lt;p&gt;A Common Table Expressions (CTE) is a temporary result set in SQL that you can reference within a single query.&lt;br&gt;
It only exists during query execution.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For example&lt;/strong&gt;&lt;br&gt;
To calculate the total spending per customer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;WITH customer_spending AS (
    SELECT 
        customer_id,
        SUM(amount) AS total_spent
    FROM orders
    GROUP BY customer_id
)
SELECT 
    c.name,
    cs.total_spent
FROM customers c
JOIN customer_spending cs
ON c.customer_id = cs.customer_id;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output&lt;/strong&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%2Frgopfc1q53mebdsd044w.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%2Frgopfc1q53mebdsd044w.png" alt="total spending per customer" width="423" height="180"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Uses of CTEs
&lt;/h4&gt;

&lt;p&gt;CTEs are widely used because they help simplify and organize complex SQL queries. They:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Improve readability as each step is clearly separated&lt;/li&gt;
&lt;li&gt;Handle hierarchical data&lt;/li&gt;
&lt;li&gt;Enable step by step transformations&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Limitations of CTEs
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Temporary, a CTE only works while the query is running.&lt;/li&gt;
&lt;li&gt;They can be slower on very large datasets.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Subqueries vs CTEs
&lt;/h3&gt;

&lt;p&gt;Here is a comparison of CTEs and Subqueries:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Feature&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Subqueries&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;*&lt;em&gt;CTEs *&lt;/em&gt;
&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Readability&lt;/td&gt;
&lt;td&gt;Low when nested&lt;/td&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reusability&lt;/td&gt;
&lt;td&gt;Limited&lt;/td&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Performance&lt;/td&gt;
&lt;td&gt;Can be slower&lt;/td&gt;
&lt;td&gt;Often optimized better&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Best for&lt;/td&gt;
&lt;td&gt;Simple filtering&lt;/td&gt;
&lt;td&gt;Complex logic&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;Subqueries and CTEs are powerful SQL tools that a good analyst should master. Subqueries are useful for quick embedded logic while CTEs provide clarity and scalability.&lt;/p&gt;

</description>
      <category>sql</category>
      <category>postgres</category>
      <category>analytics</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Publishing and Embedding Power BI Reports on the Web with IFrames</title>
      <dc:creator>rosemutai</dc:creator>
      <pubDate>Fri, 10 Apr 2026 13:25:27 +0000</pubDate>
      <link>https://dev.to/rosemutai/publishing-and-embedding-power-bi-reports-on-the-web-with-iframes-3nd5</link>
      <guid>https://dev.to/rosemutai/publishing-and-embedding-power-bi-reports-on-the-web-with-iframes-3nd5</guid>
      <description>&lt;p&gt;Microsoft Power BI is a tool created by Microsoft to turn raw data into interactive insights. &lt;br&gt;
The power of Microsoft Power BI lies in its ability to pull data from many sources, e.g., web, excel, clean the data and then create visuals that are easy to understand.&lt;/p&gt;
&lt;h4&gt;
  
  
  Key Components
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Power BI Desktop&lt;/li&gt;
&lt;li&gt;Power BI Service&lt;/li&gt;
&lt;li&gt;Power BI Mobile&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;
  
  
  Why Publish and Embed Reports?
&lt;/h3&gt;

&lt;p&gt;After creating reports, there is need to share with your teammates and stakeholders. Hence the need to publish these reports.&lt;br&gt;
Publishing to the web allows users to make reports publicly available and accessible on the internet creating interactive visuals that anyone with a URL can view without signing in.&lt;/p&gt;
&lt;h3&gt;
  
  
  Iframe
&lt;/h3&gt;

&lt;p&gt;This is a HTML element used to embed another document or website within a web page, &lt;br&gt;
You will use iframes to embed your reports on the web.&lt;/p&gt;
&lt;h4&gt;
  
  
  Syntax
&lt;/h4&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;iframe src="url" title="description"&amp;gt;&amp;lt;/iframe&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;em&gt;Use the height and width attributes to specify the size of the iframe. The height and width are specified in pixels by default.&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Publishing Process
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Create a report in Power BI Desktop&lt;/li&gt;
&lt;li&gt;Publish it in Power BI Service&lt;/li&gt;
&lt;li&gt;Generate an embedded code&lt;/li&gt;
&lt;li&gt;Embed it in a website &lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;
  
  
  Create a report in Power BI Desktop
&lt;/h4&gt;

&lt;p&gt;First, start by building your report in Power BI Desktop.&lt;br&gt;
You can include: KPI cards, trend visuals, category breakdowns, filters and slicers, etc.&lt;/p&gt;
&lt;h4&gt;
  
  
  Create a workspace
&lt;/h4&gt;

&lt;p&gt;A workspace is a Power BI container for dashboards, reports, workbooks, datasets, and dataflows.&lt;/p&gt;
&lt;h5&gt;
  
  
  How to create a workspace
&lt;/h5&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Go to Power Bi Service: &lt;a href="https://app.powerbi.com/home?experience=power-bi" rel="noopener noreferrer"&gt;https://app.powerbi.com&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%2F7vfwimg7ws2h19zcrirj.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%2F7vfwimg7ws2h19zcrirj.png" alt="Power BI Home" width="800" height="353"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click &lt;strong&gt;Workspaces&lt;/strong&gt; in the left pane&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%2Ftvtczazpcisk0egmqeoz.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%2Ftvtczazpcisk0egmqeoz.png" alt="Click on Workspaces" width="800" height="353"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select on &lt;strong&gt;+New workspace&lt;/strong&gt; button&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%2Flpq1uyr8jdhzte9rmt8b.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%2Flpq1uyr8jdhzte9rmt8b.png" alt="+New workspace button" width="670" height="818"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Fill in the details: workspace name etc.&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%2Fratjoyfxl2zceouysgcm.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%2Fratjoyfxl2zceouysgcm.png" alt="Workspace details" width="800" height="673"&gt;&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;
  
  
  Publish your Report
&lt;/h3&gt;

&lt;p&gt;Once your report is ready we will upload it in the Power BI Service by following these steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open your report in Power BI Desktop&lt;/li&gt;
&lt;li&gt;Click Publish
&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%2F8urimzpr7dazloqdv5cb.png" alt="Power BI" width="800" height="416"&gt;
&lt;/li&gt;
&lt;li&gt;Sign into your account if not signed in&lt;/li&gt;
&lt;li&gt;Select your workspace&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%2F2g9leibfdavmahpfag1f.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%2F2g9leibfdavmahpfag1f.png" alt="Select Workspace" width="800" height="608"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;select&lt;/strong&gt; button
After publishing the report, it is now available online.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;
  
  
  Generate the Embedded Code
&lt;/h3&gt;
&lt;h4&gt;
  
  
  How to generate the Embedded Code us
&lt;/h4&gt;

&lt;p&gt;To generate an embedded code, open the report in your workspace and follow these steps:&lt;br&gt;
1.** Click File** --&amp;gt; &lt;strong&gt;Embed Report&lt;/strong&gt; --&amp;gt; &lt;strong&gt;Publish to Web&lt;/strong&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%2Fot2hysf9th6r4i8t5cf7.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%2Fot2hysf9th6r4i8t5cf7.png" alt="Embed Report" width="800" height="397"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;Create Embed Code&lt;/strong&gt;
You will get code like this:
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;iframe title="Electronics_Sales" width="1140" height="541.25" src="https://app.powerbi.com/reportEmbed?reportId=2bddbd15-9eb5-40c5-bea5-d196cd5f4ee2&amp;amp;autoAuth=true&amp;amp;ctid=c95984e8-6a70-4512-a440-1c79bca9cc37" frameborder="0" allowFullScreen="true"&amp;gt;&amp;lt;/iframe&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ol&gt;
&lt;li&gt;Copy the generated iframe code.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;
  
  
  Embedding the report in a website
&lt;/h3&gt;

&lt;p&gt;Now go to your favorite editor where your code is to embed the report.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;Electronic Sales&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;iframe title="Electronics_Sales" width="1140" height="541.25" 
        src="https://app.powerbi.com/reportEmbed?reportId=2bddbd15-9eb5-40c5-bea5-d196cd5f4ee2&amp;amp;autoAuth=true&amp;amp;ctid=c95984e8-6a70-4512-a440-1c79bca9cc37" 
        frameborder="0" allowFullScreen="true"&amp;gt;
    &amp;lt;/iframe&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fe5ov1brrmksdhfkxkpf0.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%2Fe5ov1brrmksdhfkxkpf0.png" alt="Uploading on website" width="800" height="517"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Test
&lt;/h3&gt;

&lt;p&gt;Always test your report after embedding. You can check for things like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Does the report load correctly?&lt;/li&gt;
&lt;li&gt;Is it responsive on different screen sizes?&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;Publishing and embedding Power BI reports transforms your dashboards from static files into interactive and shareable web experiences.&lt;br&gt;
Embedding enhances accessibility and presentations.&lt;/p&gt;

</description>
      <category>analytics</category>
      <category>beginners</category>
      <category>website</category>
    </item>
    <item>
      <title>Understanding Data Modeling in Power BI: Joins, Relationships, and Schemas Explained</title>
      <dc:creator>rosemutai</dc:creator>
      <pubDate>Wed, 01 Apr 2026 07:48:52 +0000</pubDate>
      <link>https://dev.to/rosemutai/understanding-data-modeling-in-power-bi-joins-relationships-and-schemas-explained-1fb9</link>
      <guid>https://dev.to/rosemutai/understanding-data-modeling-in-power-bi-joins-relationships-and-schemas-explained-1fb9</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;In Power Bi, a data model is a collection of tables, relationships, and calculations that represent the underlying structure of your data.&lt;br&gt;
Data Modeling, therefore, is the process of organizing data into tables and defining how these tables relate to each other.&lt;br&gt;
Data modeling happens after loading data and before visualization.&lt;/p&gt;

&lt;h3&gt;
  
  
  Components of a Power Bi Data Model
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;1. Tables&lt;/strong&gt;&lt;br&gt;
These are the basic building blocks of a data model.&lt;br&gt;
&lt;strong&gt;2. Columns&lt;/strong&gt;&lt;br&gt;
These are custom columns that you create in your tables using DAX(Data Analysis Expressions), a powerful formula language in Power Bi.&lt;br&gt;
&lt;strong&gt;3. Measures&lt;/strong&gt;&lt;br&gt;
These are calculations used to aggregate data in a model.&lt;br&gt;
&lt;strong&gt;4. Relationships&lt;/strong&gt;&lt;br&gt;
These determine how tables are connected in a data model.&lt;/p&gt;

&lt;h4&gt;
  
  
  Why model data?
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Data is never perfect&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;To reshape data for analysis&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;To compress data usage&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is easier to understand a model&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Joins in Power Bi
&lt;/h3&gt;

&lt;p&gt;Joins enable you to establish relationships between data tables. A join combines data from two tables into one based on a common column.&lt;/p&gt;

&lt;h4&gt;
  
  
  Types of joins in Power Bi
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;1. Inner Join&lt;/strong&gt;&lt;br&gt;
It returns the rows present in both left and right table only if there is a match.&lt;br&gt;
&lt;strong&gt;2. Left Outer Join&lt;/strong&gt; &lt;br&gt;
It returns all the rows present in the left  table and matching rows from the right table.&lt;br&gt;
&lt;strong&gt;3. Right Outer Join&lt;/strong&gt;&lt;br&gt;
It returns all the rows present in the right table and matching rows from the left table.&lt;br&gt;
&lt;strong&gt;4. Full Outer Join&lt;/strong&gt;&lt;br&gt;
It returns all the rows present in both the left and right table&lt;/p&gt;

&lt;h4&gt;
  
  
  Where to use Joins
&lt;/h4&gt;

&lt;p&gt;Use joins when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;You need to clean or transform data&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You want a single table for simpler analysis&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Relationships in Power BI
&lt;/h3&gt;

&lt;p&gt;Relationships in Power BI connect tables allowing data from multiple sources to be analyzed together. They define how rows in one table relate to one another enabling cross-filtering for visuals.&lt;br&gt;
There are several types of relationships:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. One-to-One Relationship&lt;/strong&gt;&lt;br&gt;
Each row in the first table is related to only one row in the second table.&lt;br&gt;
&lt;strong&gt;2. Many-to-One Relationship&lt;/strong&gt;&lt;br&gt;
Many rows in the first table are related to one row in the second table.&lt;br&gt;
&lt;strong&gt;3. One-to-Many Relationship&lt;/strong&gt;&lt;br&gt;
One row in the first table is related to one or more rows in the second table.&lt;br&gt;
&lt;strong&gt;3. Many-to-Many Relationship&lt;/strong&gt;&lt;br&gt;
Each row in the first table can be related to multiple rows in the second table&lt;/p&gt;

&lt;h4&gt;
  
  
  How to create relationships in Power BI
&lt;/h4&gt;

&lt;p&gt;Power BI can auto-detect relationships or allow manual creation for better control.&lt;br&gt;
To create relationships in Power BI, you drag a field from one table onto the corresponding field in another within the Model View.&lt;/p&gt;

&lt;p&gt;On the Ribbon click on Manage Relationships:&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%2Fw1ruxkr7lmkav7syh34g.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%2Fw1ruxkr7lmkav7syh34g.png" alt="Power BI Home Tab" width="800" height="153"&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%2Fm0f25sgo64z78gy4hour.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%2Fm0f25sgo64z78gy4hour.png" alt="Power BI Screenshot To add a relationship" width="800" height="632"&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%2Fkk1itn08eu9n47o7z30w.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%2Fkk1itn08eu9n47o7z30w.png" alt="Power BI Screenshot to select tables to add relationships to" width="800" height="771"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  Cardinality and Cross-Filtering
&lt;/h3&gt;

&lt;p&gt;Cardinality and Cross-Filtering in Power BI determine how tables relate and how filters pass between them.&lt;br&gt;
Cardinality, e.g., one-to-many, many-to-many, defines the relationship type based on unique key values while Cross-Filtering(single or both) defines the direction filters propagate.&lt;/p&gt;

&lt;h3&gt;
  
  
  Data Modeling Schemas
&lt;/h3&gt;

&lt;h4&gt;
  
  
  What is a schema?
&lt;/h4&gt;

&lt;p&gt;A schema is a blueprint that defines how tables are organized and connected in your model.&lt;/p&gt;

&lt;h4&gt;
  
  
  Types of schemas
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;1. Star Schema&lt;/strong&gt;&lt;br&gt;
The star schema is a simple and commonly used schema in data warehousing. It consists of a central fact table surrounded by dimensions table.&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%2Fefbrno3xxgdixjvdkzhr.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%2Fefbrno3xxgdixjvdkzhr.webp" alt="Star Schema" width="754" height="508"&gt;&lt;/a&gt;&lt;br&gt;
source: _(&lt;a href="https://tabulareditor.com/hs-fs/hubfs/Example-of-a-star-schema.jpg?width=754&amp;amp;height=508&amp;amp;name=Example-of-a-star-schema.jpg" rel="noopener noreferrer"&gt;https://tabulareditor.com/hs-fs/hubfs/Example-of-a-star-schema.jpg?width=754&amp;amp;height=508&amp;amp;name=Example-of-a-star-schema.jpg&lt;/a&gt;)&lt;/p&gt;

&lt;h5&gt;
  
  
  Benefits
&lt;/h5&gt;

&lt;ul&gt;
&lt;li&gt;Has a simpler design&lt;/li&gt;
&lt;li&gt;It has faster queries&lt;/li&gt;
&lt;li&gt;It is easier to maintain&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;2. Snowflake Schema&lt;/strong&gt;&lt;br&gt;
The snowflake schema is a more normalized version of the star schema. Dimension tables are further divided into sub-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%2Fi9xyg4doyco2m59e1dl3.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%2Fi9xyg4doyco2m59e1dl3.jpg" alt="SNowflake schema" width="264" height="191"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;source: _(&lt;a href="https://share.google/V57rZDUnrxAockCtJ" rel="noopener noreferrer"&gt;https://share.google/V57rZDUnrxAockCtJ&lt;/a&gt;) &lt;/p&gt;

&lt;h5&gt;
  
  
  Benefits
&lt;/h5&gt;

&lt;ul&gt;
&lt;li&gt;Reduces redundancy&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Best Practices for Modeling data in Power BI
&lt;/h3&gt;

&lt;p&gt;To build efficient data models:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Use a star schema whenever possible&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Keep relationships simple and clean&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Remove unused columns&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Perform data cleaning before modeling&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
Say we are analyzing sales data.&lt;/p&gt;

&lt;h5&gt;
  
  
  Step 1: Load Data
&lt;/h5&gt;

&lt;ul&gt;
&lt;li&gt;Import the Sales, Customers, and Products tables.&lt;/li&gt;
&lt;/ul&gt;

&lt;h5&gt;
  
  
  Step 2: Clean Data
&lt;/h5&gt;

&lt;ul&gt;
&lt;li&gt;Use Power Query&lt;/li&gt;
&lt;li&gt;We are going to remove duplicates, handle missing values and ensure consistent data models.&lt;/li&gt;
&lt;/ul&gt;

&lt;h5&gt;
  
  
  Step 3: Create relationships
&lt;/h5&gt;

&lt;ul&gt;
&lt;li&gt;For the Sales table and Customers table, choose customerid and id respectively&lt;/li&gt;
&lt;li&gt;For the Sales table and Products table, choose productid and id respectively.&lt;/li&gt;
&lt;/ul&gt;

&lt;h5&gt;
  
  
  Step 4: Apply Star Schema
&lt;/h5&gt;

&lt;ul&gt;
&lt;li&gt;The Sales table becomes the &lt;strong&gt;fact&lt;/strong&gt; table.&lt;/li&gt;
&lt;li&gt;Customers and Products become &lt;strong&gt;dimensions&lt;/strong&gt; tables.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After this we can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Analyze sales by products&lt;/li&gt;
&lt;li&gt;Build a dynamic dashboard&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;Data modeling is the backbone of effective modeling in Power BI. By understanding the fundamental concepts such as joins, relationships and schemas you can transform raw data into meaningful insights.&lt;br&gt;
A well designed model improves performance and makes reports more flexible and easier to maintain.&lt;/p&gt;

</description>
      <category>analytics</category>
      <category>microsoft</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How Excel is Used in Real-World Data Analysis</title>
      <dc:creator>rosemutai</dc:creator>
      <pubDate>Fri, 27 Mar 2026 14:07:53 +0000</pubDate>
      <link>https://dev.to/rosemutai/how-excel-is-used-in-real-world-data-analysis-3nb5</link>
      <guid>https://dev.to/rosemutai/how-excel-is-used-in-real-world-data-analysis-3nb5</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Excel is a powerful tool used for mathematical functions developed by Microsoft.&lt;br&gt;
Data analysis is the process of inspecting, cleaning, transforming and modeling data to discover useful information, conclusions and support decision making.&lt;br&gt;
In this article we are going to learn Excel, understand Excel's functions, how it is used in data analysis and why it is still in use today despite the many advanced available tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Excel in Data Analysis?
&lt;/h2&gt;

&lt;p&gt;Excel is used for organizing, manipulating and analyzing data using rows and columns. It serves as a tool for performing calculations, identifying trends, and generating insights.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key Strengths&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Accessibility- almost everyone has it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Ease of use- low learning curve&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is flexible for different industries&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Data Collection and Importing Data
&lt;/h2&gt;

&lt;p&gt;Your data might have to come from different sources hence the need to import it to Excel. Some of these sources are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Web sources&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Text Files&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;XML Files&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Databases&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Excel provides tools like Power Query which allows users to connect to external data sources and import data efficiently.&lt;/p&gt;

&lt;h2&gt;
  
  
  Data Cleaning
&lt;/h2&gt;

&lt;p&gt;This is the most important step in data analysis. Before any analysis can be performed, data must be cleaned. Data Cleaning involves:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Handling missing values or blanks&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Removing duplicate records&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Correcting inconsistent formats like dates, currencies and texts&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Converting negative values&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Data Organization and Structuring
&lt;/h2&gt;

&lt;p&gt;After cleaning data, it must be properly structured. Excel allows users to organize datasets into tables which improve readability and functionality.&lt;br&gt;
Data can be organized by:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Converting data into tables&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Using clear column headers&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Sorting and filtering data&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This step is important because well structured data allows Excel features like formulas and pivot tables to work correctly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Data Analysis Techniques in Excel
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Formulas and Functions&lt;/strong&gt;&lt;br&gt;
Excel offers a wide range of formulas that enables users to perform calculations and logical operations.&lt;br&gt;
Examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;SUM&lt;/strong&gt;: Used to add values.
Example:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=SUM(A2:A10)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Adds the values in cell A2:A10&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;AVERAGE&lt;/strong&gt;: Returns the average (mean).
Example:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=AVERAGE(A2:A20)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Returns the average of these numbers, only if the range A2:A20 contains numbers.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;COUNT&lt;/strong&gt;: Counts the number of cells that contain numbers, and counts numbers within the list of arguments.
Example:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=COUNT(A2:A20)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Counts the numbers in the range A1:A20&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;IF&lt;/strong&gt;: Allows you to make logical comparisons between a value and what you expect.
Example:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=IF(B8&amp;gt;C8,"Fast Speed", "Slow Speed")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;VLOOKUP&lt;/strong&gt;: Used to find things in a table or range by row, e.g, to find an employee based on their employee id.
Example:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=VLOOKUP(102, A2:C20,2,False)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;HLOOKUP&lt;/strong&gt;: Used to search for a value in the top row of a table or an array of values and then returns a value in the same column from a row you specify in the table or array.
Example:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=HLOOKUP("BMW", A1:C10, 2, True)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Looks up "BMW" in row 1 and returns the value from row 2 that is in the same column&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;COUNTIF&lt;/strong&gt;: Used to count the number of cells that meet a criterion.
Example:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=COUNTIF(A2:A10, "Nairobi")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Counts the number of cells with Nairobi in cells A2 through A5.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Pivot Tables&lt;/strong&gt;&lt;br&gt;
Pivot tables are one of Excel's most powerful features for data analysis. They allow users to summarize large datasets quickly without writing complex formulas, for example, use it to summarize total sales by region. &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%2F6l7l8c3y6kugiarrks8i.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%2F6l7l8c3y6kugiarrks8i.png" alt="Excel dashboard"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Data Visualization and Dashboards
&lt;/h2&gt;

&lt;p&gt;Data visualization helps transform raw data into meaningful insights.&lt;br&gt;
Excel provides various chart types such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Bar charts&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Line Charts&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Pie Charts&lt;br&gt;
We also have such features as &lt;strong&gt;conditional formatting&lt;/strong&gt;, which is used to highlight trends and patterns directly in the data.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Excel dashboards&lt;/strong&gt; combine multiple visual elements into a single view. It may contain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Key Performance Indicators (KPIs)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Charts showing trends over time&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Slicers for interactive filtering&lt;br&gt;
Dashboards are used widely in business settings to present insights in a clear and visual appealing way.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Trend Analysis and Insights
&lt;/h2&gt;

&lt;p&gt;One of the main goals of data analysis is to identify trends and patterns. Excel comes in by making it easy to analyze changes over time and compare different categories, for example, tracking monthly sales growth.&lt;br&gt;
These insights help businesses make data-driven decisions such as improving customer experience.&lt;/p&gt;

&lt;h2&gt;
  
  
  Automation and Efficiency
&lt;/h2&gt;

&lt;p&gt;In real-world environments, analysts often deal with repetitive tasks. To improve efficiency, Excel provides automation. These include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Macros: for automating repetitive tasks such as formatting, data entry, report generation&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Power Query: for importing, cleaning and transforming data from diverse sources.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Office Scripts: for automating tasks in Excel for the web allowing for scheduled, automated workflows.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Real World Use Cases
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Business&lt;/strong&gt;&lt;br&gt;
Companies use Excel to track revenue and monitor sales performances.&lt;br&gt;
&lt;strong&gt;2. Finance&lt;/strong&gt;&lt;br&gt;
Excel helps organizations plan and manage their finances effectively as it is used for budgeting, financial modeling and forecasting.&lt;br&gt;
&lt;strong&gt;3. Healthcare&lt;/strong&gt;&lt;br&gt;
Hospitals used Excel to analyze patient data, track admissions and monitor trends. This helps improve decision making and resource allocation.&lt;br&gt;
&lt;strong&gt;4. Marketing&lt;/strong&gt;&lt;br&gt;
Marketing Teams use Excel to analyze campaign performance, measure engagement and to understand customer behavior.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limitations of Excel
&lt;/h2&gt;

&lt;p&gt;Despite its numerous strengths, Excel has some limitations such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;It struggles with very large datasets&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is prone to manual errors&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It lacks real time data processing capabilities&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;In conclusion, Excel remains one of the most powerful and accessible tools for data analysis. The combination of simplicity and functionality makes it suitable for both beginners and experienced professionals.&lt;br&gt;
Excel plays a vital role in real-world decision-making  from data cleaning and analysis to visualization and reporting.&lt;/p&gt;

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