<?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: Ron Njuguna</title>
    <description>The latest articles on DEV Community by Ron Njuguna (@ron-njuguna).</description>
    <link>https://dev.to/ron-njuguna</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%2F3957033%2F6dced7f3-91ad-4508-803a-6eb35b02fdbf.png</url>
      <title>DEV Community: Ron Njuguna</title>
      <link>https://dev.to/ron-njuguna</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ron-njuguna"/>
    <language>en</language>
    <item>
      <title>Building an Interactive Sales Dashboard with Power BI and PostgreSQL</title>
      <dc:creator>Ron Njuguna</dc:creator>
      <pubDate>Fri, 24 Jul 2026 10:08:23 +0000</pubDate>
      <link>https://dev.to/ron-njuguna/building-an-interactive-sales-dashboard-with-power-bi-and-postgresql-2hi5</link>
      <guid>https://dev.to/ron-njuguna/building-an-interactive-sales-dashboard-with-power-bi-and-postgresql-2hi5</guid>
      <description>&lt;p&gt;Data-driven decision-making has become an essential part of modern business operations. In this project, I built an interactive sales dashboard using Power BI and PostgreSQL to analyze vehicle sales data for a car dealership. The goal was to transform raw transactional data into meaningful insights that can help managers monitor performance and make informed business decisions.&lt;/p&gt;

&lt;p&gt;Connecting PostgreSQL to Power BI&lt;/p&gt;

&lt;p&gt;The first step was importing the dataset into a PostgreSQL database. PostgreSQL provided a reliable and structured environment for storing the sales data before connecting it to Power BI. Using Power BI's PostgreSQL connector, I established a connection to the database and imported the required table into Power BI for analysis.&lt;/p&gt;

&lt;p&gt;This approach demonstrates how Power BI can integrate seamlessly with relational databases, making it suitable for handling real-world business datasets.&lt;/p&gt;

&lt;p&gt;(&lt;a href="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/zlng0kn2hk2ood37htxu.PNG" rel="noopener noreferrer"&gt;https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/zlng0kn2hk2ood37htxu.PNG&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Cleaning Data with Power Query&lt;/p&gt;

&lt;p&gt;The imported dataset contained several inconsistencies, including mixed date formats, currency symbols (such as KSh and KES), percentage values, and missing data. These issues had to be resolved before analysis.&lt;/p&gt;

&lt;p&gt;Using Power Query Editor, I:&lt;/p&gt;

&lt;p&gt;Converted inconsistent date formats into valid date values.&lt;br&gt;
Removed currency symbols and thousand separators from numeric fields.&lt;br&gt;
Standardized discount values into decimal percentages.&lt;br&gt;
Replaced invalid or missing values with nulls where appropriate.&lt;br&gt;
Assigned correct data types to every column.&lt;/p&gt;

&lt;p&gt;Cleaning the data ensured that calculations and visualizations were accurate and reliable.&lt;/p&gt;

&lt;p&gt;Creating DAX Measures&lt;/p&gt;

&lt;p&gt;After loading the cleaned data into Power BI, I created several DAX measures to calculate important business metrics. These included:&lt;/p&gt;

&lt;p&gt;Total Revenue&lt;br&gt;
Gross Profit&lt;br&gt;
Gross Profit Margin&lt;br&gt;
Total Units Sold&lt;br&gt;
Total Orders&lt;br&gt;
Average Customer Rating&lt;br&gt;
Average Delivery Days&lt;/p&gt;

&lt;p&gt;These measures allowed the dashboard to dynamically calculate key performance indicators as users interacted with filters and slicers.&lt;/p&gt;

&lt;p&gt;Building the Interactive Dashboard&lt;/p&gt;

&lt;p&gt;The dashboard was designed to provide an executive overview of sales performance through interactive visualizations. It includes KPI cards, revenue trends over time, revenue by vehicle type, car make, branch, customer type, payment method, and sales representative performance. Interactive slicers enable users to filter the dashboard by region, branch, vehicle type, payment status, and order date, making it easy to explore different aspects of the business.&lt;/p&gt;

&lt;p&gt;Key Takeaways&lt;/p&gt;

&lt;p&gt;This project strengthened my understanding of integrating PostgreSQL with Power BI, performing data transformation using Power Query, and developing reusable DAX measures for business reporting. Most importantly, it demonstrated how interactive dashboards can transform raw data into actionable insights that support strategic decision-making. Power BI's combination of data preparation, modeling, and visualization makes it a powerful tool for business intelligence and analytics.  &lt;/p&gt;

</description>
      <category>analytics</category>
      <category>data</category>
      <category>database</category>
      <category>sql</category>
    </item>
    <item>
      <title>HOW EXCEL IS USED IN REAL WORLD DATA ANALYSIS</title>
      <dc:creator>Ron Njuguna</dc:creator>
      <pubDate>Sat, 06 Jun 2026 18:43:46 +0000</pubDate>
      <link>https://dev.to/ron-njuguna/how-excel-is-used-in-real-world-data-analysis-34ng</link>
      <guid>https://dev.to/ron-njuguna/how-excel-is-used-in-real-world-data-analysis-34ng</guid>
      <description>&lt;p&gt;Microsoft Excel is used as a tool for organizing, analyzing and presenting information. This spreadsheet application, made by Microsoft, helps users to efficiently collect, calculate, analyze and visualize data. Whether you're in business, education, finance or marketing, Excel  can be used in transforming raw data into valuable data that helps in decision-making.&lt;/p&gt;

&lt;p&gt;A good example of Excel's real-world application is in business decision making. Companies gather a lot of sales, customer and operational data. With Excel's sorting and filtering capabilities, managers can get information, spot trends and focus on specific data sets. For instance, a sales manager might filter sales records to see only transactions from a certain region or sort products by the revenue they generate.&lt;/p&gt;

&lt;p&gt;Another key use of Excel is in financial reporting and budgeting. Businesses rely on it to get numbers related to expenses, revenues, profits and taxes. Due to its formulas and functions, these calculations are both accurate and efficient. Functions like SUM() can quickly tally total sales, while AVERAGE() helps determine average monthly expenses. These calculations enable organizations to keep a close eye on their financial health and make well-informed decisions.&lt;/p&gt;

&lt;p&gt;Excel has become an excellent tool for analyzing marketing performance. Marketing teams analyze campaign results, customer feedback and sales conversions to monitor effectiveness. With features like Conditional Formatting, they can easily spot key trends, whether it’s campaigns that  succeed or those that fail. This allows analysts to quickly recognize patterns and improve strategies for better outcomes in future marketing efforts.&lt;/p&gt;

&lt;p&gt;Some of the Excel functions and features that I have learned include SUM(), AVERAGE() and TRIM(). The SUM() function is great for tallying up figures like total sales revenue, while AVERAGE() helps me figure out average performance metrics, such as student grades or monthly sales figures. TRIM() is used for data cleaning, as it removes extra spaces in text entries, making everything more consistent and reliable.&lt;/p&gt;

&lt;p&gt;Excel has taught me how simple tools like formulas, sorting, filtering and formatting can turn raw data into meaningful information that helps in making better decisions. As I keep learning Excel, I’m confident it will become a crucial skill for my academic and professional journey.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
