<?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: Rodney Nyamu</title>
    <description>The latest articles on DEV Community by Rodney Nyamu (@rodney_nyamu_b29ae4156085).</description>
    <link>https://dev.to/rodney_nyamu_b29ae4156085</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%2F3951202%2Fe1dccd2d-4bb6-474c-a88e-8f579811d3f2.png</url>
      <title>DEV Community: Rodney Nyamu</title>
      <link>https://dev.to/rodney_nyamu_b29ae4156085</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rodney_nyamu_b29ae4156085"/>
    <language>en</language>
    <item>
      <title>Connecting Power BI to SQL Databases: Local SQL server and Cloud database in Aiven</title>
      <dc:creator>Rodney Nyamu</dc:creator>
      <pubDate>Wed, 30 Sep 2026 10:13:41 +0000</pubDate>
      <link>https://dev.to/rodney_nyamu_b29ae4156085/connecting-power-bi-to-sql-databases-local-sql-server-and-cloud-database-in-aiven-58d1</link>
      <guid>https://dev.to/rodney_nyamu_b29ae4156085/connecting-power-bi-to-sql-databases-local-sql-server-and-cloud-database-in-aiven-58d1</guid>
      <description>&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;br&gt;
Being able to connect your Power BI to a database should not be complicated. Connecting Power BI directly to a PostgreSQL database offers several advantages. It eliminates repetitive manual imports, improves data consistency, supports larger datasets, and allows reports to be refreshed whenever data changes.   &lt;/p&gt;

&lt;p&gt;In this post, i will be explaining a step by step guide of how to Connect Power BI to an Aiven PostgreSQL database using SSL, with DBeaver helping us verify the connection first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Part 1. Connect Power BI to a Local PostgreSQL Server&lt;/strong&gt;&lt;br&gt;
Step 1: Create Your PostgreSQL Database&lt;br&gt;
Install PostgreSQL and create your database.&lt;/p&gt;

&lt;p&gt;Open DBeaver and connect using:&lt;/p&gt;

&lt;p&gt;Host: localhost&lt;br&gt;
Port: 5432&lt;br&gt;
Database: postgres&lt;br&gt;
Username: postgres&lt;br&gt;
Password: Your PostgreSQL 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%2Fnhrnhb0p1nvj4zlpblgm.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%2Fnhrnhb0p1nvj4zlpblgm.png" alt=" " width="779" height="772"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 2: Import Your Dataset&lt;br&gt;
Once connected:&lt;/p&gt;

&lt;p&gt;Expand Schemas.&lt;br&gt;
Open the public schema.&lt;br&gt;
Right-click and select Import Data.&lt;br&gt;
Choose your CSV or Excel dataset.&lt;br&gt;
Complete the import wizard.&lt;br&gt;
Your tables should now appear inside the PostgreSQL database.&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%2Fhd3y2wttcy21lqmcppzm.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%2Fhd3y2wttcy21lqmcppzm.png" alt=" " width="800" height="425"&gt;&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Open Power BI Desktop.&lt;/p&gt;

&lt;p&gt;Step 4: Select PostgreSQL Server&lt;/p&gt;

&lt;p&gt;Go to:&lt;/p&gt;

&lt;p&gt;Home → Get Data → PostgreSQL Server → Connect&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%2Ff3silvsrjrkicx1wsx5j.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%2Ff3silvsrjrkicx1wsx5j.png" alt=" " width="800" height="411"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 3 — Enter the connection details&lt;/p&gt;

&lt;p&gt;Server: localhost (default port 5432)&lt;br&gt;
Database: your database name Leave the connectivity mode as Import and click OK&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%2F4kcqrsxmyd7p3lny8k9v.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%2F4kcqrsxmyd7p3lny8k9v.png" alt=" " width="800" height="611"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Part 2: Connecting Power BI to Cloud-Based PostgreSQL Using Aiven&lt;/strong&gt;&lt;br&gt;
Cloud databases provide scalable and secure database solutions without requiring users to manage physical database infrastructure.&lt;br&gt;
Aiven PostgreSQL is used as the cloud database platform.&lt;/p&gt;

&lt;p&gt;Creating an Aiven PostgreSQL Database&lt;br&gt;
An Aiven PostgreSQL service was created to host the dataset.&lt;br&gt;
Aiven provided the required connection information:&lt;br&gt;
Host address&lt;br&gt;
Port number&lt;br&gt;
Database name&lt;br&gt;
Username&lt;br&gt;
Password&lt;br&gt;
SSL certificates&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%2F51agws1wzst2hb0k4dkr.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%2F51agws1wzst2hb0k4dkr.png" alt=" " width="800" height="392"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 1: Download the SSL Certificate&lt;br&gt;
Cloud databases encrypt communication between your computer and the server.&lt;/p&gt;

&lt;p&gt;Download the CA Certificate (ca.pem) from the Aiven dashboard.&lt;/p&gt;

&lt;p&gt;Step 2: Import the Certificate into Windows&lt;br&gt;
Search for:&lt;/p&gt;

&lt;p&gt;Manage Computer Certificates&lt;/p&gt;

&lt;p&gt;Navigate to:&lt;/p&gt;

&lt;p&gt;Trusted Root Certification Authorities → Certificates&lt;/p&gt;

&lt;p&gt;Right-click Certificates and select:&lt;/p&gt;

&lt;p&gt;All Tasks → Import&lt;/p&gt;

&lt;p&gt;Choose the downloaded ca.pem file and complete the Certificate Import Wizard.&lt;/p&gt;

&lt;p&gt;Windows will confirm the import was successful.&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%2Flek451k8r6gf9deab8zr.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%2Flek451k8r6gf9deab8zr.png" alt=" " width="800" height="146"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this dialogue box, navigate to Trusted Root Certification Authorities and click on the drop-down arrow, then right click on Certificates, then go to All Tasks, then Import. You will select the certificate downloaded from aiven, follow the procedure and you will receive a certificate import wizard stating it was successful&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%2Fb0c9h7dd13zi7n8f01a6.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%2Fb0c9h7dd13zi7n8f01a6.png" alt=" " width="800" height="599"&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%2Fd3r53x5rn53cee9q0ycw.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%2Fd3r53x5rn53cee9q0ycw.png" alt=" " width="799" height="465"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Connecting to your power BI&lt;/strong&gt;&lt;br&gt;
The process is more or less the same with the local Postgres SQL. Your connection details are in your Aiven postgres SQL service.The server box details are (hostname:port) while the rest of the details are input directly. &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%2Fx6m6xier207cur3366td.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%2Fx6m6xier207cur3366td.png" alt=" " width="800" height="398"&gt;&lt;/a&gt;&lt;br&gt;
_&lt;br&gt;
Load your tables_&lt;br&gt;
Because Windows now trusts the Aiven certificate, the SSL handshake succeeds and the navigator opens with your tables. Select what you need and click Load or Transform Data.&lt;/p&gt;

&lt;p&gt;In conclusion, connecting Power BI to PostgreSQL is straightforward. Local databases connect with localhost and standard credentials; Aiven adds one trust step, then behaves the same. From there you can model your tables, write DAX, and build dashboards that always reflect the latest data.&lt;/p&gt;

</description>
      <category>postgres</category>
      <category>database</category>
      <category>sql</category>
      <category>powerbi</category>
    </item>
    <item>
      <title>Relationships, Schemas, and Joins in Power BI: What I Learned as a Beginner</title>
      <dc:creator>Rodney Nyamu</dc:creator>
      <pubDate>Wed, 30 Sep 2026 10:12:59 +0000</pubDate>
      <link>https://dev.to/rodney_nyamu_b29ae4156085/relationships-schemas-and-joins-in-power-bi-what-i-learned-as-a-beginner-1fla</link>
      <guid>https://dev.to/rodney_nyamu_b29ae4156085/relationships-schemas-and-joins-in-power-bi-what-i-learned-as-a-beginner-1fla</guid>
      <description>&lt;p&gt;I'll be honest — when I first opened Power BI, I thought I could just drag in a spreadsheet, throw a chart on the canvas, and call it a day. Then my instructor gave us an assignment involving &lt;em&gt;two&lt;/em&gt; tables instead of one, and suddenly nothing matched up. That's when I ran headfirst into the concepts of &lt;strong&gt;relationships&lt;/strong&gt;, &lt;strong&gt;schemas&lt;/strong&gt;, and &lt;strong&gt;joins&lt;/strong&gt; — and this post is basically me explaining them the way I wish someone had explained them to me a earlier.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why One Table Isn't Enough
&lt;/h2&gt;

&lt;p&gt;In Excel, I got used to keeping everything in a single sheet. Power BI works differently — it &lt;em&gt;wants&lt;/em&gt; you to split data into multiple tables (like a &lt;code&gt;Sales&lt;/code&gt; table and a &lt;code&gt;Products&lt;/code&gt; table) and then connect them. At first this felt like extra work for no reason, until I realized it stops you from repeating the same product name a thousand times across every row. That's when it clicked: this is basically how real databases are organized.&lt;/p&gt;

&lt;h2&gt;
  
  
  Relationships: The "Connecting Wires"
&lt;/h2&gt;

&lt;p&gt;A &lt;strong&gt;relationship&lt;/strong&gt; is just a link between two tables based on a common column — usually an ID. In my case, &lt;code&gt;Products&lt;/code&gt; had a &lt;code&gt;ProductID&lt;/code&gt; column, and so did &lt;code&gt;Sales&lt;/code&gt;. Power BI lets you drag one onto the other in the &lt;strong&gt;Model view&lt;/strong&gt;, and it draws a little line between them. That line means: "these two tables can now talk to each other."&lt;/p&gt;

&lt;p&gt;Most relationships are &lt;strong&gt;one-to-many&lt;/strong&gt; — one product can appear in many sales rows, but each sale only points to one product. Power BI shows this with a &lt;code&gt;1&lt;/code&gt; on one side and a &lt;code&gt;*&lt;/code&gt; on the other. Once I understood that symbol, the whole Model view stopped looking like spaghetti.&lt;/p&gt;

&lt;h2&gt;
  
  
  Schemas: Giving the Chaos a Shape
&lt;/h2&gt;

&lt;p&gt;Once you have a few tables connected, you technically have a &lt;strong&gt;schema&lt;/strong&gt; — just a fancy word for "how your tables are arranged and related to each other." The pattern I kept seeing recommended (and the one my course pushed us toward) is the &lt;strong&gt;star schema&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One central &lt;strong&gt;fact table&lt;/strong&gt; (the "what happened" data — sales, transactions, orders)&lt;/li&gt;
&lt;li&gt;Several &lt;strong&gt;dimension tables&lt;/strong&gt; around it (products, customers, dates)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Picture the fact table in the middle and the dimension tables branching off it like points of a star — hence the name. I tried building a "snowflake" version once (where dimension tables connect to &lt;em&gt;other&lt;/em&gt; dimension tables too), and honestly, for a beginner project, star schema was way easier to keep track of.&lt;/p&gt;

&lt;h2&gt;
  
  
  Joins: Where Excel-Me Got Confused
&lt;/h2&gt;

&lt;p&gt;This is the part that tripped me up most, because Excel doesn't really have an equivalent. In Power Query (the "Get &amp;amp; Transform" section of Power BI), a &lt;strong&gt;join&lt;/strong&gt; happens when you use &lt;strong&gt;Merge Queries&lt;/strong&gt; to combine two tables &lt;em&gt;before&lt;/em&gt; they even hit the model. The main types I used were:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Left Outer&lt;/strong&gt; — keep everything from my main table, add matches from the other&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inner&lt;/strong&gt; — keep only rows that match in both tables&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I mixed these up constantly at first. My rule of thumb now: if I'm not sure, start with Left Outer, since it won't silently delete rows I didn't mean to lose.&lt;/p&gt;

</description>
      <category>powerbi</category>
      <category>data</category>
      <category>analytics</category>
      <category>begginer</category>
    </item>
    <item>
      <title>Excel For Data Analytics</title>
      <dc:creator>Rodney Nyamu</dc:creator>
      <pubDate>Sat, 06 Jun 2026 14:20:58 +0000</pubDate>
      <link>https://dev.to/rodney_nyamu_b29ae4156085/excel-for-data-analytics-24fb</link>
      <guid>https://dev.to/rodney_nyamu_b29ae4156085/excel-for-data-analytics-24fb</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Excel is a spreadsheet software that allows you to collect, organize, analyze, calculate, and visualize data efficiently.&lt;/p&gt;

&lt;p&gt;In the first week of learning excel, I've learnt different ways in which excel is used in real world data analysis, different features and formulas and how they can be applied. This has had an influence to how I view excel differently in regards to its input to analyzing data. &lt;/p&gt;

&lt;h2&gt;
  
  
  _ Excel Interface_
&lt;/h2&gt;

&lt;p&gt;Understanding Excel begins with having a basic knowledge of the interface. The user interface consists of various components that offer many tools. Some of Excel's interface components include; &lt;br&gt;
Ribbon - toolbar across the top containing commands such as (Home, Insert, Page Layout, Formulas), Formula Bar, Name box, Rows, columns, and cells.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Excel is used in real-world Data Analytics
&lt;/h2&gt;

&lt;p&gt;One of the most important ways which excel is used in the real world is Data Formatting , Data Filtering and data cleaning. Number formatting changes how numbers display without altering their actual value. It improves readability and meaning. Raw data normally contains errors, duplicates, and missing values. With Excel it becomes easy to filter and sort the data before the analysis begins. &lt;/p&gt;

&lt;p&gt;Another use of excel in a real world set up is analysis and calculations. This is aided by using aggregate and statistical functions such as Sum, Average, Count if, Average which helps analyst organize data, conduct calculations and extracting meaningful insights from datasets. In addition Excel has a conditional formatting feature which  highlights cells automatically based on rules or criteria, helping spot trends. This might be of help in scenarios where sales may be below targets, it may flag overdue tasks etc.&lt;/p&gt;

&lt;p&gt;Excel is widely used for data visualization and reporting. Charts, graphs, and PivotTables allow analysts to summarize complex information in a clear and understandable format.&lt;/p&gt;

&lt;h2&gt;
  
  
  Excel Features/Formulas
&lt;/h2&gt;

&lt;p&gt;Useful Excel formulas commonly used are explained as follows;&lt;br&gt;
&lt;strong&gt;SUMIF/SUMIFS&lt;/strong&gt; allows you to add values based on one or multiple conditions, such as total sales for a specific region or product category (the criteria).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The IF&lt;/strong&gt; function is used for logical testing. It returns one value if a condition is true and another if it is false, making it useful for decision-based analysis like classifying performance as “Pass” or “Fail.”&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;COUNTIF&lt;/strong&gt; counts the number of cells that meet a specific condition, such as counting how many males employees appeared in each department. Together, these tools help in filtering, analyzing, and summarizing data.&lt;/p&gt;

&lt;p&gt;Learning Excel has changed the way I see data by making it feel more organized, meaningful, and useful. Data looked like just numbers, but now I understand that it can tell a story and guide decisions. Excel has taught me how to sort, filter, analyze, and present information in a clear way. Excel has shown me that even simple formulas and tools can turn raw information into meaningful insights. It has also made me more careful and detail-oriented when handling data, because small errors can affect the results.&lt;/p&gt;

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