<?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: Daniel Mutwiri Mbabu</title>
    <description>The latest articles on DEV Community by Daniel Mutwiri Mbabu (@daniel_mutwirimbabu).</description>
    <link>https://dev.to/daniel_mutwirimbabu</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2745709%2F9f5f0b94-b3d9-4656-971f-349c9d997da1.jpeg</url>
      <title>DEV Community: Daniel Mutwiri Mbabu</title>
      <link>https://dev.to/daniel_mutwirimbabu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/daniel_mutwirimbabu"/>
    <language>en</language>
    <item>
      <title>Connecting Power BI to a SQL Database</title>
      <dc:creator>Daniel Mutwiri Mbabu</dc:creator>
      <pubDate>Thu, 23 Jul 2026 08:53:03 +0000</pubDate>
      <link>https://dev.to/daniel_mutwirimbabu/connecting-power-bi-to-a-sql-database-1nek</link>
      <guid>https://dev.to/daniel_mutwirimbabu/connecting-power-bi-to-a-sql-database-1nek</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%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwdmm0qgyhrky1lmcdbj9.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwdmm0qgyhrky1lmcdbj9.png" alt=" " width="799" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Introduction
&lt;/h1&gt;

&lt;p&gt;Oftentimes we need to clean, model, and report insights from data stored in databases. Sometimes the data can be stored in a local SQL database or in a cloud-based SQL database. Today we will dive into the nitty-gritty of this endeavor using Power BI as your reporting tool and a SQL database as our storage.&lt;/p&gt;

&lt;h1&gt;
  
  
  Understanding Data Connectivity Modes
&lt;/h1&gt;

&lt;p&gt;To connect a reporting and analysis tool such as Power BI to a SQL Database, understanding how it connects to the database is crucial. There are three primary connection modes. Each serves a different purpose depending on your reporting needs.&lt;/p&gt;

&lt;blockquote&gt;
&lt;ol&gt;
&lt;li&gt; Import Mode&lt;/li&gt;
&lt;li&gt; Direct Query&lt;/li&gt;
&lt;li&gt; Live Connection&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;1. Import Mode&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How it works&lt;/strong&gt;&lt;br&gt;
Power BI imports all selected data into its in-memory VertiPaq engine.&lt;br&gt;
Reports query the imported data instead of the SQL database.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ideal when&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Data changes daily or a few times per day.&lt;/li&gt;
&lt;li&gt;You need high-performance dashboards.&lt;/li&gt;
&lt;li&gt;Complex calculations and relationships are required.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Example&lt;/em&gt;&lt;br&gt;
&lt;em&gt;A sales database updates overnight, and management reviews reports each morning.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. DirectQuery Mode&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How it works&lt;/strong&gt;&lt;br&gt;
No data is stored in Power BI (except metadata and optional cache).&lt;br&gt;
Every filter, slicer, or visual generates a SQL query against the database.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ideal when&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Data changes every few minutes.&lt;/li&gt;
&lt;li&gt;Databases contain hundreds of millions of rows.&lt;/li&gt;
&lt;li&gt;Data cannot be copied due to compliance or storage constraints.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Example&lt;/em&gt;&lt;br&gt;
&lt;em&gt;A call center dashboard showing live customer support activity.&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Performance Tips&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create indexes on frequently filtered columns.&lt;/li&gt;
&lt;li&gt;Use star schema design.&lt;/li&gt;
&lt;li&gt;Minimize calculated columns in Power BI.&lt;/li&gt;
&lt;li&gt;Reduce visual complexity.&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;3.Live Connection&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How it works&lt;/strong&gt;&lt;br&gt;
Instead of connecting directly to SQL, Power BI connects to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SQL Server Analysis Services (SSAS)&lt;/li&gt;
&lt;li&gt;Azure Analysis Services (AAS)&lt;/li&gt;
&lt;li&gt;Another Power BI semantic model&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The semantic model handles calculations, relationships, and security.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ideal when&lt;/strong&gt;&lt;br&gt;
An organization has a centralized BI team managing enterprise models.&lt;br&gt;
Multiple reports should use the same governed data model.&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;Scenario&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Recommended Mode&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Fast executive dashboards&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Import&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Real-time operational dashboards&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;DirectQuery&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Very large databases&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;DirectQuery&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Enterprise semantic model already exists&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Live Connection&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Need both speed and fresh data&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Composite Model&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h1&gt;
  
  
  Connecting Power BI to a Local SQL Database
&lt;/h1&gt;

&lt;p&gt;A local SQL Database runs on your local machine. Therefore, connecting to it is easy!&lt;br&gt;
&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SQL Server installed (e.g., SQL Server Express, Developer, or Standard Edition)&lt;/li&gt;
&lt;li&gt;SQL Server service is running&lt;/li&gt;
&lt;li&gt;You know:&lt;/li&gt;
&lt;li&gt;Server name&lt;/li&gt;
&lt;li&gt;Database name&lt;/li&gt;
&lt;li&gt;Authentication method (Windows or SQL Server Authentication)&lt;/li&gt;
&lt;li&gt;Power BI Desktop is installed&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Open Power BI Desktop&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Launch Power BI Desktop.&lt;/li&gt;
&lt;li&gt;Click Get Data on the Home ribbon.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flodreg37p5anf1bp2s5q.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flodreg37p5anf1bp2s5q.png" alt=" " width="782" height="306"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Select SQL Server. (In this case, we are using a Postgres Server)&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb2217jk8gdoz00htnlk5.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb2217jk8gdoz00htnlk5.png" alt=" " width="800" height="768"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click Connect.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Enter Connection Details&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You'll be prompted for:&lt;/p&gt;

&lt;p&gt;Server and Database information. &lt;br&gt;
For a local connection, input the server credentials as: &lt;code&gt;127.0.0.1:5432&lt;/code&gt;&lt;br&gt;
  &lt;em&gt;where th 5432 is the port number&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiwjfxe0k5k8qx54hhd2b.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiwjfxe0k5k8qx54hhd2b.png" alt=" " width="783" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Choose Connectivity Mode&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You'll have two options:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Import (recommended)&lt;/li&gt;
&lt;li&gt;DirectQuery&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 4: Authentication&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Windows Authentication (Most Common)&lt;/strong&gt;&lt;br&gt;
Uses your Windows login credentials.&lt;/p&gt;

&lt;p&gt;Select: Windows &amp;gt; Then click Connect.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SQL Server Authentication (Authentication details you input while installing your local SQL server)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Choose: Database &amp;gt; Enter: Username and Password&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcpvctmal4eq6xub0ordn.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcpvctmal4eq6xub0ordn.png" alt=" " width="743" height="353"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click Connect.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5: Select Tables&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Power BI will display all tables and views. Select the tables you need. Click Load to import them or Transform Data to clean them in Power Query before loading.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5qao4k606l8cuclw7771.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5qao4k606l8cuclw7771.png" alt=" " width="800" height="621"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Connecting Power BI to a Cloud-based SQL Database
&lt;/h1&gt;

&lt;p&gt;For this, the cloud service provider is Aiven.&lt;/p&gt;

&lt;p&gt;Cloud databases like Aiven PostgreSQL offer scalable and flexible data storage but require secure internet-based connections. To protect data in transit, they use encryption. Before Power BI can connect, the local machine must trust the cloud provider's Certificate Authority (CA), allowing it to verify the database server's identity and establish a secure connection.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Collect Aiven Connection Details&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Log in to your Aiven Console and open your PostgreSQL service. Note the following:&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzz35b3e8iyokox0n1j39.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzz35b3e8iyokox0n1j39.png" alt=" " width="800" height="429"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;Host (e.g., pg-12345-project.aivencloud.com)&lt;/li&gt;
&lt;li&gt;Port (usually 12345 or 5432)&lt;/li&gt;
&lt;li&gt;Database name&lt;/li&gt;
&lt;li&gt;Username&lt;/li&gt;
&lt;li&gt;Password&lt;/li&gt;
&lt;li&gt;CA Certificate&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Install the PostgreSQL ODBC/Npgsql Driver (if required)&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Power BI uses PostgreSQL drivers to connect. &lt;/li&gt;
&lt;li&gt;Download and install the latest PostgreSQL (Npgsql) driver.&lt;/li&gt;
&lt;li&gt;Restart Power BI Desktop after installation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Trust the Aiven CA Certificate&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Since Aiven uses SSL encryption, Windows must trust the Certificate Authority. This helps Power BI trust the Aiven Postgres server.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; &lt;em&gt;To connect Power BI to the Database without the certificate, this error occurs.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1okmx7qfkt8j9z5dkr69.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1okmx7qfkt8j9z5dkr69.png" alt=" " width="592" height="300"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Locate the downloaded ca.pem file.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F24sbpbk6ac5lywe57lnr.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F24sbpbk6ac5lywe57lnr.png" alt=" " width="800" height="49"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Import it into the Windows Trusted Root Certification Authorities:&lt;/p&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpa9pybjvh0rlxaa4fn8w.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpa9pybjvh0rlxaa4fn8w.png" alt=" " width="452" height="400"&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9l4tuwfmuv6ko2pgjyqf.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9l4tuwfmuv6ko2pgjyqf.png" alt=" " width="780" height="532"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click Import&amp;gt; In the import wizard, click Next&amp;gt; Browse for the downloaded  CA file&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxbv81pykea8ttu18ip29.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxbv81pykea8ttu18ip29.png" alt=" " width="670" height="662"&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faffa79vk8y1v1ve59ip5.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faffa79vk8y1v1ve59ip5.png" alt=" " width="670" height="646"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add Certificates for the Computer Account.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4ptrvwo7n31ne1wy54ei.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4ptrvwo7n31ne1wy54ei.png" alt=" " width="617" height="592"&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzbu3kj74ovfxhbliluiu.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzbu3kj74ovfxhbliluiu.png" alt=" " width="641" height="637"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: Open Power BI Desktop&lt;/strong&gt; &lt;em&gt;( Same as for local connection steps 1 to 3)&lt;/em&gt;&lt;br&gt;
Select Home → Get Data → Choose PostgreSQL database.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5: Enter the Server Details&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Fill in the fields as per the data on your Aiven service page:&lt;br&gt;
&lt;em&gt;Server:    hostname:port (pg-12345-project.aivencloud.com:12345)&lt;br&gt;
Database: Database name (defaultdb)&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmmi5skdgjuu743cuw5lk.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmmi5skdgjuu743cuw5lk.png" alt=" " width="800" height="410"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click OK.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 6: Authenticate&lt;/strong&gt; - if connecting first time&lt;/p&gt;

&lt;p&gt;Choose Database Authentication: Username &amp;gt; Password&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw39t42jlsbwxsx5fqbia.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw39t42jlsbwxsx5fqbia.png" alt=" " width="797" height="55"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click Connect.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 8: Select Tables&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Power BI will display the PostgreSQL schema. Choose the required tables or views.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs2xaxopws0s1aocd5i83.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs2xaxopws0s1aocd5i83.png" alt=" " width="800" height="705"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Load to import the data or Transform Data to clean it in Power Query before loading.&lt;/p&gt;

&lt;h1&gt;
  
  
  Parting Shot...
&lt;/h1&gt;

&lt;p&gt;Every dashboard begins with a connection. This is where the strength of Power BI comes in: Interconnectivity! Whether your data resides on a local server or in the cloud, mastering secure database connectivity equips you to spend less time troubleshooting and more time discovering the stories hidden within your data. After all, data only becomes valuable when it is transformed into meaningful insights.&lt;/p&gt;

</description>
      <category>sql</category>
      <category>database</category>
      <category>powerfuldevs</category>
      <category>dbeaver</category>
    </item>
    <item>
      <title>How Excel is Used in Real-World Data Analysis</title>
      <dc:creator>Daniel Mutwiri Mbabu</dc:creator>
      <pubDate>Sun, 07 Jun 2026 14:58:01 +0000</pubDate>
      <link>https://dev.to/daniel_mutwirimbabu/how-excel-is-used-in-real-world-data-analysis-226g</link>
      <guid>https://dev.to/daniel_mutwirimbabu/how-excel-is-used-in-real-world-data-analysis-226g</guid>
      <description>&lt;p&gt;The eagle first learns to walk before it masters the sky. In the world of data analysis, Excel is often the starting point of that journey. It helps us clean, organize, analyze, and visualize data in ways that reveal valuable patterns and opportunities. What begins as simple rows, columns, and calculations soon transforms into a powerful analytical tool that enables users to uncover trends, solve problems, and make informed decisions based on data rather than assumptions.&lt;/p&gt;

&lt;p&gt;I recently joined an official Microsoft Excel class. Although I had used Excel before and was required to learn it on the job due to its importance in business, I quickly discovered that there is always something new to learn. I joined the class believing I had a solid understanding of Excel, but I soon realized that beneath its simplicity lies remarkable sophistication. This balance between simplicity and power is what makes Excel such an indispensable tool.&lt;/p&gt;

&lt;p&gt;One of the key lessons I have learned is that data analysis is not just about mastering formulas and features; it is also about understanding the business environment and the problem being solved. A good data analyst should possess both technical and business knowledge. Understanding what questions to ask is just as important as knowing how to manipulate and analyze the data.&lt;/p&gt;

&lt;p&gt;Excel plays a vital role in several real-world applications.** In business decision-making,** organizations collect large amounts of data from sales, operations, customers, and employees. Analysts use Excel to identify trends, determine which products generate the most revenue, evaluate branch performance, and forecast future demand. These insights help businesses make informed decisions regarding inventory management, staffing, and investments.&lt;br&gt;
Excel is also widely used in &lt;strong&gt;financial reporting&lt;/strong&gt;. Organizations use it to compare actual spending against budgets, forecast revenues, evaluate investments, and identify potential financial risks. These analyses provide management with the information needed to make sound financial decisions.&lt;br&gt;
In &lt;strong&gt;marketing&lt;/strong&gt;, Excel helps measure the effectiveness of advertising campaigns, social media activities, and customer engagement efforts. By analyzing metrics such as website traffic, conversion rates, and customer acquisition costs, organizations can determine which strategies are delivering the best results and allocate resources more effectively.&lt;/p&gt;

&lt;p&gt;One of the most valuable skills I have learned is data cleaning. Clean data forms the foundation of reliable analysis. Excel provides numerous tools and functions that support this process, including&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;COUNTIFS(), TRIM(), VALUE(), DATEDIF(), YEAR(), TODAY(), NOW(), IFERROR(), and SUMIFS().
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Features such as &lt;em&gt;Find and Replace, Conditional Formatting, Data Validation, Multi-Sort, and handling blanks&lt;/em&gt; help ensure data accuracy and consistency. Data cleaning also involves &lt;em&gt;checking whether data is realistic and free from errors, such as identifying impossible employee ages or inconsistent entries.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Learning Excel has greatly increased my appreciation for data-driven decision-making. Whether in business, finance, marketing, or personal projects, I now recognize the importance of relying on data rather than assumptions. Excel has transformed the way I see information by showing me how raw data can be organized, analyzed, and converted into actionable insights. As I continue learning, I appreciate even more how a tool that appears simple on the surface can become a powerful means of solving complex real-world problems.&lt;/p&gt;

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