<?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: Kepha Gitau</title>
    <description>The latest articles on DEV Community by Kepha Gitau (@kepha_gitau).</description>
    <link>https://dev.to/kepha_gitau</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%2F3508936%2F7e208c79-34a4-4f83-ba89-2479ae4a5b6a.jpg</url>
      <title>DEV Community: Kepha Gitau</title>
      <link>https://dev.to/kepha_gitau</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kepha_gitau"/>
    <language>en</language>
    <item>
      <title>Using Power BI and DAX Functions for Data Analysis: A Case Study in the Agricultural Sector.</title>
      <dc:creator>Kepha Gitau</dc:creator>
      <pubDate>Sun, 12 Oct 2025 17:25:58 +0000</pubDate>
      <link>https://dev.to/kepha_gitau/using-power-bi-and-dax-functions-for-data-analysis-a-case-study-in-the-agricultural-sector-5gf1</link>
      <guid>https://dev.to/kepha_gitau/using-power-bi-and-dax-functions-for-data-analysis-a-case-study-in-the-agricultural-sector-5gf1</guid>
      <description>&lt;h2&gt;
  
  
  Introduction to Power BI.
&lt;/h2&gt;

&lt;p&gt;In the era of data-driven decision-making, decision-makers across various sectors are increasingly relying on dynamic reports, such as visualizations, dashboards and interactive data structures to support informed analysis and strategic planning. Being able to transform plain data into relevant insights has become crucial in fields such as business, healthcare, and agriculture, to mention just a few.&lt;/p&gt;

&lt;p&gt;To facilitate this, various business intelligence(BI) tools have come up with powerful features for data preparation and cleaning, analysis and presentation. Power BI is an example of these tools, being a powerful data analytics tool which has been broadly embraced and outputs user-friendly solutions. BI allows users to connect to multiple data sources, i.e. Excel, SQL servers. It allows for cleaning and transforming data, applying advanced analytical functions using &lt;strong&gt;DAX&lt;/strong&gt; (Data Analysis Expressions), and presenting the results through interactive dashboards and reports.&lt;/p&gt;

&lt;p&gt;Using a case study in the agricultural sector, this article will show examples of how DAX Functions in Power BI can give insights which will support in better decision-making. DAX are categorised into;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Mathematical &amp;amp; Statistical Functions.
&lt;/h2&gt;

&lt;p&gt;These functions perform arithmetic operations like addition, subtraction, and multiplication. They are used if the user doesn't want to create a new column, i.e.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;SUM()&lt;/code&gt; function is a mathematical function that returns the total sum of all numeric values in a single column.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example: &lt;code&gt;Total Revenue = SUM(Kenya_Crops_Dataset[Revenue (KES)])&lt;/code&gt; used to calculate the total revenue in the Revenue column.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;AVERAGE()&lt;/code&gt; function returns the arithmetic mean of all numeric values in a column.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;code&gt;Average Planted Area = AVERAGE(Kenya_Crops_Dataset[Planted Area (Acres)])&lt;/code&gt; used to calculate the average planted area in the Planted Area column. &lt;/p&gt;

&lt;h2&gt;
  
  
  2. Text Functions.
&lt;/h2&gt;

&lt;p&gt;These functions are used to combine or extract key information for better analysis, and it is used for creating calculated columns, cleaning raw data,i.e.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;Left()&lt;/code&gt; function is used to extract a specific number of characters from the beginning(left side) of a text string.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;code&gt;County Code = LEFT('Kenya_Crops_Dataset'[County Name],3)&lt;/code&gt; used to return the first three characters from the left side in the County Name column.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;Right()&lt;/code&gt; function is used to extract a specific portion of a text string from the right side. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;code&gt;County Suffix = RIGHT('Kenya_Crops_Dataset'[County Name],3)&lt;/code&gt; used to return the first three characters from the right side in the County Name column.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;CONCATENATE()&lt;/code&gt; function is used to join two text strings into one.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;code&gt;Farmer's County = CONCATENATE('Kenya_Crops_Dataset'[Farmer Name],""&amp;amp;'Kenya_Crops_Dataset'[County])&lt;/code&gt; used to join the farmer and county in one name with a space in between. &lt;/p&gt;

&lt;h2&gt;
  
  
  3. Date &amp;amp; Time Functions.
&lt;/h2&gt;

&lt;p&gt;These functions are used to manipulate, calculate and format dates and times for time-based analysis.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;YEAR()&lt;/code&gt; function is used to return the specific year. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;code&gt;Harvest Year = Year(Kenya_Crops_Dataset[Harvest Date])&lt;/code&gt; used to show the specific harvest year in the dataset.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;TOTALYTD()&lt;/code&gt; function is used to calculate the Year-To-Date total of a given measure or expression.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;code&gt;Total Revenue (Planting) = TOTALYTD(SUM(Kenya_Crops_Dataset[Revenue (KES)]), Kenya_Crops_Dataset[Planting Date])&lt;/code&gt; used to show the total revenue during the planting period. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;SAMEPERIODLASTYEAR()&lt;/code&gt; function is used to return a table of dates shifted back exactly one year, based on the dates in the current context.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;code&gt;Same Period = CALCULATE(sum(Kenya_Crops_Dataset[Revenue (KES)]), SAMEPERIODLASTYEAR(Kenya_Crops_Dataset[Harvest Date]))&lt;/code&gt; used to show the dates exactly a year back. &lt;/p&gt;

&lt;h2&gt;
  
  
  4. Logical Functions.
&lt;/h2&gt;

&lt;p&gt;These functions are used to evaluate conditions and return true/false values or execute conditional logic. Essential for creating calculated columns, measures based on conditions. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;IF()&lt;/code&gt; function is used to check a condition and returns a value if true, another if false.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;code&gt;High Revenue Area = IF(AND(Kenya_Crops_Dataset[Revenue (KES)]&amp;gt;1000000, Kenya_Crops_Dataset[Planted Area (Acres)]&amp;gt;9.86), "High Value", "Low Value")&lt;/code&gt;. This function is used to show a range in the revenue and planted areas. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;SWITCH()&lt;/code&gt; function is used to evaluate an expression against multiple possible values.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;code&gt;Quarter Name = SWITCH(Kenya_Crops_Dataset[Harvest Quarter],1, "Q1-Jan to Mar",2, "Q2-Apr to Jun",3, "Q3-Jul to Sep",4, "Q4-Oct to Dec", "Unknown")&lt;/code&gt;This function switches the quarter column to rename to quarter name and range.&lt;/p&gt;

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

&lt;p&gt;Power BI and DAX Functions can be used to transform raw data into very meaningful insights, and this is a strategic advantage for decision-making. These tools assist in collecting, cleaning and understanding data. By applying this in business and in this case, agriculture, decision makers can apply logical reasoning and visualization to uncover trends, compare performance across time and detect opportunities or issues before they arise.&lt;br&gt;
Analysis can assist in turning numbers into knowledge, which can result in action. With this, it can help businesses to make smarter, faster, and more confident decisions.&lt;/p&gt;

</description>
      <category>dataanalysis</category>
      <category>powerbi</category>
      <category>dax</category>
      <category>casestudy</category>
    </item>
    <item>
      <title>Is Excel still relevant in the era of Power Bi and Python?</title>
      <dc:creator>Kepha Gitau</dc:creator>
      <pubDate>Fri, 03 Oct 2025 19:19:03 +0000</pubDate>
      <link>https://dev.to/kepha_gitau/is-excel-still-relevant-in-the-era-of-power-bi-and-python-7kp</link>
      <guid>https://dev.to/kepha_gitau/is-excel-still-relevant-in-the-era-of-power-bi-and-python-7kp</guid>
      <description>&lt;h2&gt;
  
  
  Is Microsoft Excel out-of-dated compare to other data tools?
&lt;/h2&gt;

&lt;p&gt;Well let's dive into it and see how this data tool has being around for decades and it's still in use till date. Over the years, there has been introduction of other tools for example Power Bi and Python that have challenged the sit to the throne but excel never fades away. Why???&lt;/p&gt;

&lt;h2&gt;
  
  
  Reasons why Excel is far from being irrelevant.
&lt;/h2&gt;

&lt;p&gt;When you think about data in whichever circumstance be it school or business, Excel will come up or be in use. Reason being;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;It's widely known and popular worldwide.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Excel is easily accessible for everyone.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;This data tool is easy to learn and operate.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Excel is flexible to use in different operations e.g. school, finance.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Excel is user friendly and simplified.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Excel is integrated into our data tools which is a plus for it e.g. Power Bi.&lt;/p&gt;
&lt;h2&gt;
  
  
  What did the new kids on the block have under their sleeves?
&lt;/h2&gt;

&lt;p&gt;Power Bi and Python came later into use when dealing with data. With them, they brought their own set of capabilities which either matched, complimented or rivaled Excel which was struggling with;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Performance with big data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Data visualization being rivaled with Power Bi.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Complex data analysis.&lt;/p&gt;
&lt;h2&gt;
  
  
  So is Excel still relevant?
&lt;/h2&gt;

&lt;p&gt;Excel still being in high use till date is a good indicator that its still relevant and widely accepted. It is simple, quick, user friendly when performing tasks with it.&lt;/p&gt;
&lt;h2&gt;
  
  
  Final Take.
&lt;/h2&gt;

&lt;p&gt;Excel being in a world that is ever evolving, it still remain a key part for data processing, analyzing and reporting. &lt;br&gt;
As a data analyst, it is essential to learn excel and compliment it with Power Bi and Python so that you choose the right tool for the task.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>excel</category>
      <category>powerbi</category>
      <category>python</category>
      <category>datatools</category>
    </item>
    <item>
      <title>Apache Kafka in Data Engineering.</title>
      <dc:creator>Kepha Gitau</dc:creator>
      <pubDate>Wed, 17 Sep 2025 17:33:20 +0000</pubDate>
      <link>https://dev.to/kepha_gitau/apache-kafka-in-data-engineering-4f4p</link>
      <guid>https://dev.to/kepha_gitau/apache-kafka-in-data-engineering-4f4p</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Apache Kafka is an open source, distributed event streaming platform designed for high performance data pipelines, streaming, analytics, data integration. Think of it as a high-speed message hub for your data. It lets applications publish, store and subscribe to streams of records in real-time.&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%2Fisuns0pvglvhn6rpvki8.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%2Fisuns0pvglvhn6rpvki8.png" alt=" " width="268" height="188"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Key concepts in Kafka
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Producer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An application that sends messages to Kafka topics.&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%2Fk285u259tqtyymu99kmd.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%2Fk285u259tqtyymu99kmd.png" alt=" " width="318" height="159"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Consumer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An application that reads message from Kafka topics.&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%2Fsc4ky58bnzkcbqhnyvy8.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%2Fsc4ky58bnzkcbqhnyvy8.png" alt=" " width="318" height="159"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Topic&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It's a category or feed-name to which records are sent. Think of this as a channel.&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%2F3hlzic6ea6hmg4mq94ml.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%2F3hlzic6ea6hmg4mq94ml.png" alt=" " width="311" height="162"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Broker&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A Kafka server. Multiple brokers form a Kafka cluster.&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%2F1hgp042peb0d2g9bns7m.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%2F1hgp042peb0d2g9bns7m.png" alt=" " width="311" height="162"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Kafka Cluster&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A group of Kafka servers working together.&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%2Fz1b80hpfzdfzrozwhhvz.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%2Fz1b80hpfzdfzrozwhhvz.png" alt=" " width="335" height="150"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Kafka use case
&lt;/h2&gt;

&lt;p&gt;Imagine an e-commerce platform:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Producers- Checkout service, inventory services, payment get way&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Kafka - Handles all events.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Consumers - Analytics dashboards, fraud detection systems and email notifications.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

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

&lt;p&gt;Apache Kafka is a backbone for real-time streaming.&lt;/p&gt;

</description>
      <category>dataengineering</category>
      <category>kafka</category>
    </item>
  </channel>
</rss>
