<?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: Alex Murithi</title>
    <description>The latest articles on DEV Community by Alex Murithi (@alex_murithi).</description>
    <link>https://dev.to/alex_murithi</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%2F3958959%2F59fec5aa-cb74-4f49-a9dd-7f2e7cb0c24a.jpg</url>
      <title>DEV Community: Alex Murithi</title>
      <link>https://dev.to/alex_murithi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alex_murithi"/>
    <language>en</language>
    <item>
      <title>Connecting Power BI to SQL Databases: Local and Cloud-Based</title>
      <dc:creator>Alex Murithi</dc:creator>
      <pubDate>Wed, 08 Jul 2026 13:22:40 +0000</pubDate>
      <link>https://dev.to/alex_murithi/connecting-power-bi-to-sql-databases-local-and-cloud-based-42oe</link>
      <guid>https://dev.to/alex_murithi/connecting-power-bi-to-sql-databases-local-and-cloud-based-42oe</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Modern data analytics workflows require efficient connections between data storage platforms and visualization tools. Business Intelligence tools such as Microsoft Power BI allow analysts to connect directly to SQL databases, transform data, and create interactive dashboards for decision-making.&lt;/p&gt;

&lt;p&gt;SQL databases can be hosted in different environments, including:&lt;br&gt;
&lt;em&gt;&lt;strong&gt;Local databases&lt;/strong&gt;&lt;/em&gt; hosted on a personal computer or organizational server&lt;br&gt;
&lt;em&gt;&lt;strong&gt;Cloud databases&lt;/strong&gt;&lt;/em&gt; hosted by managed database provider.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;u&gt; &lt;strong&gt;Part 1: Connecting Power BI to a Local PostgreSQL Database&lt;/strong&gt;&lt;/u&gt;
&lt;/h2&gt;

&lt;p&gt;A local PostgreSQL database provides a database environment that runs directly on a computer. It is commonly used during development, testing, and small-scale analytics projects.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 1: Installing and Preparing PostgreSQL Locally&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;PostgreSQL is installed locally to provide a database environment for storing the dataset.&lt;br&gt;
After installation, the PostgreSQL server runs on the local machine and is ready to accept database connections.&lt;/p&gt;

&lt;p&gt;The local database connection details includes:&lt;br&gt;
Host:, localhost, Port: 5432&lt;br&gt;
Username: postgres&lt;br&gt;
Password: ********&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 2: Connecting Local PostgreSQL to DBeaver&lt;/strong&gt;&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;DBeaver is used as the database management tool to connect to the PostgreSQL server.&lt;/p&gt;

&lt;p&gt;Creating  the connection:&lt;br&gt;
Open DBeaver&lt;br&gt;
Select:&lt;br&gt;
Database&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;New Database Connection&lt;/li&gt;
&lt;li&gt;PostgreSQL
Enter the PostgreSQL connection details.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The connection are tested to confirm successful communication between DBeaver and the local PostgreSQL server.&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%2Fv928hlkmaiuqt6ge9hsn.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%2Fv928hlkmaiuqt6ge9hsn.png" alt=" " width="800" height="442"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 3: Creating a Database for the Project&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;
After establishing the PostgreSQL connection, a database is created to store the dataset.&lt;br&gt;
The created database is then used as the storage location for importing the dataset.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 4: Loading the Dataset into Local PostgreSQL&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The dataset was loaded into PostgreSQL using the DBeaver import wizard.&lt;br&gt;
The import process involves:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Selecting the project database.&lt;/li&gt;
&lt;li&gt;Choosing the dataset file.&lt;/li&gt;
&lt;li&gt;Configuring import settings.&lt;/li&gt;
&lt;li&gt;Mapping columns.&lt;/li&gt;
&lt;li&gt;Executing the import process.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;DBeaver automatically creates the required table structure and loads the dataset records into PostgreSQL.&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%2F8hs8gjkgk29wfs5k1615.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%2F8hs8gjkgk29wfs5k1615.png" alt=" " width="799" height="519"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 5: Validating the Imported Data&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;After the import process is completed, the dataset is opened in DBeaver to verify that the records have been successfully loaded.&lt;br&gt;
The validation included checking:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Table structure&lt;/li&gt;
&lt;li&gt;Column names&lt;/li&gt;
&lt;li&gt;Number of records&lt;/li&gt;
&lt;li&gt;Sample data entries&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%2F2xdlhs62sc3sdaqcw6zi.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%2F2xdlhs62sc3sdaqcw6zi.png" alt=" " width="799" height="438"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 6: Connecting Power BI to Local PostgreSQL&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;After loading the dataset into PostgreSQL, Power BI is then connected to the local database.&lt;/p&gt;

&lt;p&gt;In Power BI Desktop:&lt;br&gt;
Home&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Get Data&lt;/li&gt;
&lt;li&gt;PostgreSQL Database&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The PostgreSQL connection details were entered:&lt;/p&gt;

&lt;p&gt;Server:localhost:5432, Database: database_name&lt;/p&gt;

&lt;p&gt;Authentication is completed using the PostgreSQL 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%2Ftxmpgxi2hvhe70ci8p0d.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%2Ftxmpgxi2hvhe70ci8p0d.png" alt=" " width="800" height="425"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 7: Loading Data into Power BI&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;After successful authentication, Power BI displays the available PostgreSQL tables.&lt;br&gt;
The data was then prepared using Power Query before creating dashboard visuals.&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%2Fm6ek50idhtc7x8eocvbk.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%2Fm6ek50idhtc7x8eocvbk.png" alt=" " width="800" height="445"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;u&gt;&lt;strong&gt;Part 2: Connecting Power BI to Cloud-Based PostgreSQL Using Aiven&lt;/strong&gt;&lt;/u&gt;
&lt;/h2&gt;

&lt;p&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;&lt;em&gt;&lt;strong&gt;Step 1: Creating an Aiven PostgreSQL Database&lt;/strong&gt;&lt;/em&gt;&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%2Fc56qeymm2righ9mwqp0f.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%2Fc56qeymm2righ9mwqp0f.png" alt=" " width="799" height="379"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 2: Connecting Aiven PostgreSQL to DBeaver&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;DBeaver is configured to connect to the Aiven PostgreSQL database.&lt;br&gt;
The connection details provided by Aiven are entered:&lt;br&gt;
Host:Aiven server address&lt;br&gt;
Port:5432&lt;br&gt;
Database:Database name&lt;br&gt;
Username:Username&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%2Fkgihc1qbc19uc1dscu9q.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%2Fkgihc1qbc19uc1dscu9q.png" alt=" " width="800" height="442"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 3: Adding SSL Certificate Configuration&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Aiven requires SSL encryption to establish a secure connection between the database client and the database server.&lt;/p&gt;

&lt;p&gt;The SSL certificates provided by Aiven included:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CA Certificate&lt;/li&gt;
&lt;li&gt;Client Certificate&lt;/li&gt;
&lt;li&gt;Client Key
The certificates are added in DBeaver under:
Connection Settings&lt;/li&gt;
&lt;li&gt;SSL
The SSL mode is configured according to Aiven requirements.&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%2Fh00sckh0llf927h5efoo.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%2Fh00sckh0llf927h5efoo.png" alt=" " width="800" height="477"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 4: Importing the Dataset into Aiven PostgreSQL&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;After establishing the secure connection, the dataset is imported into Aiven PostgreSQL using DBeaver.&lt;/p&gt;

&lt;p&gt;The same import process is followed:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Select database&lt;/li&gt;
&lt;li&gt;Import dataset&lt;/li&gt;
&lt;li&gt;Configure column mapping&lt;/li&gt;
&lt;li&gt;Execute import&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The dataset is successfully stored in the cloud 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%2Fr5is1m7cycn2ksb68bg6.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%2Fr5is1m7cycn2ksb68bg6.png" alt=" " width="800" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 5: Connecting Power BI to Aiven PostgreSQL&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;After loading the dataset into Aiven, Power BI is connected to the cloud database.&lt;br&gt;
In Power BI:&lt;br&gt;
Home&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Get Data&lt;/li&gt;
&lt;li&gt;PostgreSQL Database
The Aiven server details are entered:
Server: Aiven Host Address
Database: Database Name&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%2F3yydbiwvhvg1h19jf019.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%2F3yydbiwvhvg1h19jf019.png" alt=" " width="800" height="425"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 6: Loading Aiven Data into Power BI&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;After authentication, Power BI displays the available tables from Aiven PostgreSQL.&lt;br&gt;
The dataset is then selected and loaded into Power BI for analysis.&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%2F8zu8fkfx6kgrvlqcswen.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%2F8zu8fkfx6kgrvlqcswen.png" alt=" " width="800" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How Excel is Used in Real-World Data Analysis</title>
      <dc:creator>Alex Murithi</dc:creator>
      <pubDate>Sun, 07 Jun 2026 13:14:45 +0000</pubDate>
      <link>https://dev.to/alex_murithi/my-first-week-learning-excel-how-it-is-used-in-real-world-data-analysis-5g4h</link>
      <guid>https://dev.to/alex_murithi/my-first-week-learning-excel-how-it-is-used-in-real-world-data-analysis-5g4h</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Microsoft Excel is one of the most widely used tools in data analysis across industries. Despite being simple and easy to use, it plays a powerful role in transforming raw data into meaningful insights that support decision-making in business, finance, marketing, and even geospatial fields.&lt;/p&gt;

&lt;h2&gt;
  
  
  Application in real world
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Excel is also heavily used in financial reporting. Companies rely on it to manage budgets, track expenses, calculate profits, and prepare financial forecasts. Financial analysts use Excel to generate reports that help management understand the financial health of an organization and plan for future growth.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In addition, Excel is widely used in marketing and customer analytics. Marketing teams analyze campaign performance, customer engagement, and return on investment using Excel dashboards and reports. This helps businesses understand which marketing strategies are effective and how customer behavior changes over time.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Beyond traditional business use cases, Excel also plays an important role in the geospatial industry. GIS and geoinformatics professionals use Excel to organize and clean spatial and survey data before importing it into GIS software such as QGIS or ArcGIS.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Some of the functions and Features that Excel offers.
&lt;/h2&gt;

&lt;p&gt;Excel provides several powerful features that support data analysis. Functions such as &lt;strong&gt;SUM()&lt;/strong&gt;, &lt;strong&gt;AVERAGE()&lt;/strong&gt;, and &lt;strong&gt;COUNT()&lt;/strong&gt; allow analysts to perform quick calculations on large datasets. &lt;br&gt;
&lt;em&gt;&lt;strong&gt;Data Validation&lt;/strong&gt;&lt;/em&gt; ensures that only correct and consistent data is entered, improving data quality. &lt;br&gt;
&lt;em&gt;&lt;strong&gt;Conditional Formatting&lt;/strong&gt;&lt;/em&gt; helps highlight trends and patterns visually, making it easier to interpret data. Filters allow users to focus on specific subsets of data, especially when working with large datasets.&lt;/p&gt;

&lt;h2&gt;
  
  
  Personal reflection on how learning Excel has changed the way I see data.
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Excel remains a foundational tool in data analysis due to its simplicity, flexibility, and wide range of applications. It bridges the gap between raw data and meaningful insights across multiple industries. Whether in business, finance, marketing, or geospatial analysis, Excel continues to be a powerful tool for turning data into decisions.&lt;/em&gt;&lt;/p&gt;

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