<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Giridhari Khan | Data Analyst on Medium]]></title>
        <description><![CDATA[Stories by Giridhari Khan | Data Analyst on Medium]]></description>
        <link>https://medium.com/@007khangiridhari?source=rss-9f7474c3418e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QseMzEQul5S4hW00D8SMug.png</url>
            <title>Stories by Giridhari Khan | Data Analyst on Medium</title>
            <link>https://medium.com/@007khangiridhari?source=rss-9f7474c3418e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 11:42:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@007khangiridhari/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How I Analyzed Financial Transactions Using Excel, SQL, Python, and Power BI ?]]></title>
            <link>https://medium.com/@007khangiridhari/how-i-analyzed-financial-transactions-using-excel-sql-python-and-power-bi-d976813eac41?source=rss-9f7474c3418e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d976813eac41</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Giridhari Khan | Data Analyst]]></dc:creator>
            <pubDate>Fri, 16 Oct 2026 05:41:10 GMT</pubDate>
            <atom:updated>2026-10-16T05:41:10.056Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MUojXCXpfZle9VBxtigcZQ.png" /><figcaption>How I Analyzed Financial Transactions (AI generated image)</figcaption></figure><p>I recently worked on a financial analysis project where I wanted to take a dataset from raw transaction data to a final Power BI dashboard.</p><p>My goal was not just to create some charts. I wanted to go through the complete workflow that a Data Analyst might actually follow:</p><p><strong>Excel → SQL → Python → Statistics → Power BI</strong></p><p>And, as expected, things did not go smoothly.</p><p>I faced problems while validating the data, Connecting the CSV from MySQL to Python, handling missing values, working with Python libraries, and even writing a DAX measure in Power BI.</p><blockquote><strong>“This article is a short documentation of what I did, what went wrong, and how I solved it.”</strong></blockquote><h3>1. Starting With Excel</h3><p>I started with Excel because I wanted to understand the dataset before putting it into a database.</p><p>The dataset contained financial transactions along with customer, vendor, and budget-related information.</p><p>Before doing any analysis, I checked:</p><ul><li>Missing values</li><li>Duplicate records</li><li>Data types</li><li>Incorrect IDs</li><li>Blank values</li><li>Revenue and expense records</li><li>Relationship between customer and vendor information</li></ul><p>For example, a transaction could be associated with either a customer or a vendor.</p><p>Transaction IDAccount TypeAmountCustomer IDVendor IDTX001Revenue25,000C102<br>TX002Expense8,500<br>V204</p><p>This validation step was important because I didn’t want to build an analysis on top of incorrect data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tr8cxwyhA3z5sTlR9SsXnA.png" /><figcaption>(AI generated image)</figcaption></figure><h3>One thing I learned here</h3><p><strong>Data cleaning is not a separate activity from analysis. It is part of analysis.</strong></p><h3>2. Moving the Data Into MySQL</h3><p>After understanding the data, I moved to SQL.</p><p>I created tables for the different entities and established relationships between them.</p><p>The main transaction table contained fields such as:</p><ul><li>Transaction ID</li><li>Account Type</li><li>Amount</li><li>Customer ID</li><li>Vendor ID</li><li>Transaction details</li></ul><p>I also worked with customer and vendor tables.</p><p>The idea was roughly: <strong>Customers → Financial Transactions ← Vendors</strong></p><h3>3. The First Major Problem: CSV Import</h3><p>This was probably one of the most frustrating parts of the project.</p><p>I had more than 10,400 rows in the CSV, but my first import did not load everything.</p><p>Then I started getting MySQL errors related to:</p><ul><li>secure_file_priv</li><li>LOCAL INFILE</li><li>File access permissions</li></ul><p>At one point, only around 5,084 rows had been imported even though the CSV contained around 10K+ rows.</p><p>My first thought was simply to import the file again.</p><p>But that could create <strong>duplicate </strong>records.</p><p>So instead of starting over, I checked how many records were already loaded and continued the import from the remaining rows.</p><p>For example, I used:</p><pre>LOAD DATA LOCAL INFILE &#39;...&#39;<br>IGNORE 5085 LINES<br>INTO TABLE financial_transactions<br>...</pre><p>The important part here was not the exact command.</p><p>It was understanding <strong>where the import had stopped and how to continue without duplicating the existing records.</strong></p><p>This was a good reminder that when something fails during data loading, blindly running it again isn’t always the best solution.</p><h3>4. Another Problem: Blank Values vs NULL</h3><p>I also noticed that some Customer ID and Vendor ID fields were blank.</p><p>Initially, I expected MySQL to treat these blanks as NULL.</p><p>It didn’t happen automatically in the way I expected.</p><p>This became important because the relationships depended on these fields.</p><p>I had to understand the difference between:</p><p><strong>Blank value ≠ NULL</strong></p><p>That sounds simple, but it caused problems when working with foreign keys and relationships.</p><p>I temporarily removed the foreign key constraints during the import so that I could load and inspect the data properly.</p><p>After the import, I could validate the records and relationships separately.</p><h3>5. Using SQL for the Actual Analysis</h3><p>Once the data was loaded and structured, I started asking questions using SQL.</p><p>For example:</p><p><strong>How much revenue and expense do we have by account type?</strong></p><pre>SELECT<br>    account_type,<br>    SUM(amount) AS total_amount<br>FROM financial_transactions<br>GROUP BY account_type;</pre><p>Instead of just looking at thousands of individual transactions, I could now summarize them and start looking for patterns.</p><p>Some of the questions I explored were:</p><ul><li>What is the total revenue?</li><li>What are the total expenses?</li><li>Which categories contribute most to expenses?</li><li>Which customers or vendors have the highest transaction values?</li><li>How does actual performance compare with the budget?</li></ul><p>SQL helped me move from <strong>raw records to meaningful summaries</strong>.</p><h3>6. Moving From SQL to Python</h3><p>After SQL, I moved to Python for deeper analysis.</p><p>And again i face a problem to connect my SQL server and Python (jupyter notebook).<br>Then i create connection via import create_engine and urlvia sqlalchemy sqlalchemy</p><pre># --- DATABASE CONNECTION ENGINE ---<br>from sqlalchemy import create_engine  # Core utility used to establish and manage the connection pool to MySQL<br>from sqlalchemy.engine import URL  # Advanced tool used to structure complex database connection credentials securely<br><br># Safe structure configuration for your MySQL local environment<br>connection_url = URL.create(<br>    drivername=&quot;mysql+pymysql&quot;,<br>    username=&quot;root&quot;,<br>    password=&quot;My_password&quot;,<br>    host=&quot;Local_host&quot;,<br>    port=3306,<br>    database=&quot;My_database_name&quot;<br>)<br><br>engine = create_engine(connection_url)</pre><p>After running the engine, My basic workflow was:</p><p><strong>Load → Validate → Clean → Explore → Analyze</strong></p><p>I checked things like:</p><pre>df.info()<br>df.describe()<br>df.isnull().sum()</pre><p>I also performed exploratory analysis and looked for unusual values and outliers.</p><p>You can check here about my <strong>EDA </strong>approch 👇</p><p><a href="https://medium.com/@007khangiridhari/my-approach-to-exploratory-data-analysis-before-building-a-dashboard-d220511a9049">My Approach to Exploratory Data Analysis Before Building a Dashboard</a></p><p>For example, if most transactions were relatively small but a few were extremely large, I wanted to know whether those values represented genuine transactions or possible data issues.</p><h3>7. Python Didn’t Go Smoothly Either</h3><p>I also ran into environment problems.</p><p>At different points, I got errors such as:</p><pre>ModuleNotFoundError: No module named &#39;pandas&#39;</pre><p>and</p><pre>ModuleNotFoundError: No module named &#39;seaborn&#39;</pre><p>I was initially working with a browser-based Jupyter environment, which made package management different from a normal local Python installation.</p><p>Instead of assuming that my code was wrong, I learned to first check whether the problem was actually the <strong>Python environment</strong>.</p><p>This was a small problem, but it was useful because debugging data projects isn’t always about debugging the code itself.</p><p>Sometimes the environment is the problem.</p><p>After the Analysis on python , I got these like result :</p><pre>===== FINANCIAL SUMMARY =====<br>Total Revenue: 864608592.2<br>Total Expense: 167741299.8<br>Net Profit: 696867292.4000001<br><br>===== BUDGET =====<br>Budgeted Revenue: 135813984.0<br>Budgeted Expense: 104265269.0<br><br>===== HEADCOUNT =====<br>Total Employees: 200<br>Average Employee Cost: 1114127.86<br><br>===== OUTLIERS =====<br>Potential Transaction Outliers: 0<br><br>===== TOP BUSINESS UNITS BY REVENUE =====<br>business_unit<br>Enterprise    2.813972e+08<br>Online        2.975329e+08<br>Retail        2.856785e+08<br>Name: amount, dtype: float64<br><br>===== TOP EXPENSE CATEGORIES =====<br>category<br>Other        29959341.97<br>Marketing    28960158.03<br>Utilities    28383689.07<br>Supplies     27747508.70<br>Rent         27384082.92<br>Name: amount, dtype: float64<br><br>===== TOP CUSTOMERS =====<br>customer_id<br>CUST10043    4237368.34<br>CUST10307    4221501.03<br>CUST10237    4041968.79<br>CUST10072    3810295.06<br>CUST10353    3791589.90<br>Name: amount, dtype: float64<br><br>===== TOP VENDORS =====<br>vendor_id<br>VEND1095    2831132.99<br>VEND1065    2768458.67<br>VEND1018    2731307.59<br>VEND1117    2677039.00<br>VEND1032    2474393.70<br>Name: amount, dtype: float64<br><br>===== EMPLOYEES BY BUSINESS UNIT =====<br>business_unit<br>Online        75<br>Retail        66<br>Enterprise    59<br>Name: employee_id, dtype: int64</pre><h3>8. Adding Statistical Analysis</h3><p>After the basic EDA, I also experimented with statistical tests.</p><p>I used:</p><ul><li>Independent T-Test</li><li>One-Way ANOVA</li><li>Chi-Square Test</li></ul><pre>     Test                 P_Value<br> Independent T-Test    0.9772284301358667<br> One-Way ANOVA         9.373178000356645e-10<br> Chi-Square Test       0.8326767445810201</pre><p>For example, my ANOVA test produced a very small p-value.</p><p>That suggested there was a statistically significant difference between at least some of the groups being compared.</p><p>On the other hand, the Chi-Square test did not show a statistically significant association for the variables I tested.</p><p>The important lesson for me was that statistics should answer a question.</p><p>It’s not useful to run a test just because Python has a function for it.</p><h3>9. Finally, Power BI</h3><p>After completing the data preparation and analysis, I moved to Power BI.</p><p>I wanted the dashboard to answer questions quickly rather than simply contain a collection of charts.</p><p>I created KPIs such as:</p><ul><li>Total Revenue</li><li>Total Expenses</li><li>Net Profit</li><li>Profit Margin %</li></ul><p>I also created charts for things such as:</p><ul><li>Revenue vs Expenses</li><li>Revenue by region</li><li>Expense categories</li><li>Budget vs Actual</li><li>Transaction trends</li></ul><p>The goal was to make the dashboard useful for someone who doesn’t want to look through thousands of transaction records.</p><h3>10. My Power BI / DAX Problem</h3><p>I also faced a problem while creating a revenue measure.</p><p>My first attempt looked like this:</p><pre>Total Revenue =<br>CALCULATE(<br>    SUM(Financial_Transactions[amount]),<br>    Financial_Transactions[account_type] = &quot;Revenue&quot;<br>)</pre><p>I received a DAX syntax error.</p><p>Instead of changing random parts of the formula, I went back and checked the measure syntax, table name, column name, and model structure.</p><p>This reminded me of something I had already experienced with SQL:</p><p><strong>When a query or formula fails, first understand the error instead of repeatedly changing the code.</strong></p><h3>11. One Simple Example From the Project</h3><p>Suppose I wanted to answer:</p><p><strong>Which region generated the highest net revenue?</strong></p><p>The process could look like this:</p><p><strong>Excel</strong></p><p>Validate the Region and Revenue-related fields.</p><p>↓</p><p><strong>SQL</strong></p><p>Group and calculate the revenue.</p><p>↓</p><p><strong>Python</strong></p><p>Explore the distribution and check for unusual values.</p><p>↓</p><p><strong>Power BI</strong></p><p>Create a visual showing revenue by region.</p><p>The final output is much more useful than simply knowing that one region had a higher number.</p><p>The analysis should help answer:</p><p><strong>Why is it higher, how large is the difference, and what should the business pay attention to?</strong></p><h3>12. What I Learned From This Project</h3><p>The biggest lesson wasn’t SQL, Python, or Power BI individually.</p><p>It was understanding how the tools fit together.</p><p>I started with a spreadsheet and ended with an interactive dashboard, but there were several problems in between.</p><p>I learned that:</p><ul><li>Data validation comes before analysis.</li><li>CSV imports can create unexpected database problems.</li><li>Blank values and NULL values are not the same thing.</li><li>SQL is useful for structuring and summarizing data.</li><li>Python is useful for deeper exploration and statistical analysis.</li><li>Power BI is useful for communicating the final insights.</li><li>A dashboard is only useful when it answers a business question.</li><li>Debugging is a normal part of data analysis.</li></ul><p>Most importantly, I realized that <strong>real-world data analysis is rarely a straight line.</strong></p><p>You clean something, discover another problem, fix it, validate it again, and then continue.</p><h3>Final Takeaway</h3><p>This project started as a financial analysis exercise, but it became a practical lesson in the complete data analytics workflow.</p><p><strong>Excel helped me validate the data.<br>SQL helped me structure and query it.<br>Python helped me explore and analyze it.<br>Statistics helped me test relationships and differences.<br>Power BI helped me communicate the results.</strong></p><p>And the problems I faced along the way were probably more valuable than simply getting the final dashboard to work.</p><p>Because in a real Data Analyst role, the data won’t always be clean, the import won’t always work, and the first query won’t always be correct.</p><p>That’s where the actual analysis begins.</p><p><em>I write about SQL, data analysis, and the stuff nobody explains clearly the first time. If one of these questions stumped you, tell me which one in the comments, I’ll probably turn it into its own breakdown.</em></p><p><strong><em>Also feel free to comment down and give your feedback. Thank You!</em></strong></p><p><strong>Connect 🔗 with me :</strong></p><ul><li><strong>LinkedIn:</strong> <a href="http://linkedin.com/in/giridharikhan">linkedin.com/in/giridharikhan</a></li><li><strong>GitHub:</strong> <a href="https://github.com/Giridhari-khan">Check Projects</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d976813eac41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Approach to Exploratory Data Analysis Before Building a Dashboard]]></title>
            <link>https://medium.com/@007khangiridhari/my-approach-to-exploratory-data-analysis-before-building-a-dashboard-d220511a9049?source=rss-9f7474c3418e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d220511a9049</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[pandas]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Giridhari Khan | Data Analyst]]></dc:creator>
            <pubDate>Tue, 25 Aug 2026 14:39:54 GMT</pubDate>
            <atom:updated>2026-08-25T14:39:54.366Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7_HgNcdsxue0kKTTJWcvKA.png" /><figcaption>Title : My Approach to EDA before building Dashboard</figcaption></figure><p>When I receive a new dataset, my first instinct is not to open Power BI and start creating charts.</p><p>I first want to understand the data.</p><p>What does each <strong>column </strong>mean? Is the data <strong>reliable</strong>? Are there <strong>missing</strong> values? Are there unusual <strong>records</strong>? What <strong>patterns </strong>are already visible? Most importantly, what business <strong>questions </strong>can this data actually <strong>answer</strong>?</p><p>For me, that is where Exploratory Data Analysis (EDA) starts.</p><p>A dashboard should communicate something useful. EDA helps me figure out what that “something” should be before I start designing the dashboard.</p><h3>1st &gt; I Start With the Business Question</h3><p>Before looking at individual columns, I try to understand the purpose of the analysis.</p><p>For example, if I’m working with sales data, I might ask:</p><ul><li>How is revenue changing over time?</li><li>Which products generate the most revenue?</li><li>Which customers contribute the most?</li><li>Are there regions where performance is declining?</li><li>Are there unusual transactions affecting the results?</li></ul><p>This step is important because the same dataset can answer many different questions [ remember it ].</p><p>I don’t want to build a dashboard simply because the dataset contains a lot of columns. I want each metric and visualization to have a reason for being there and it mean some insight.</p><h3>2nd &gt; I Understand the Dataset</h3><p>Once I understand the objective, I look at the structure of the data.</p><p>With Excle (still it very powerfull to understand data ) &amp; Pandas, I usually start with:</p><pre>df.head()<br>df.shape<br>df.info()<br>df.describe()</pre><p>These simple commands already tell me a lot.</p><p>I can see:</p><ul><li>Number of rows and columns</li><li>Column names</li><li>Data types [check Date always]</li><li>Null values</li><li>Missing values</li><li>Numerical distributions</li><li>Potentially unusual values</li></ul><p>I also check the unique values of important categorical columns:</p><pre>df[&quot;Category&quot;].unique()</pre><p>Sometimes this immediately reveals problems.</p><p>For example:</p><pre>Mumbai<br>mumbai<br>MUMBAI</pre><p>These may represent the same category but will be treated as different values during analysis.</p><h3>3rd &gt; I Check Data Quality Before Looking for Insights</h3><p>This is probably the part I pay the most attention to.</p><p>Before trusting any number, I check whether the underlying data makes sense.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aB4Db4crFm3vNaIM1aSTTA.png" /><figcaption>Improve the data quality</figcaption></figure><h4>Missing Values</h4><pre>df.isnull().sum()</pre><p>Missing data can affect calculations and visualizations, so I need to understand why those values are missing before deciding what to do with them.</p><h4>Duplicate Records</h4><pre>df.duplicated().sum()</pre><p>Duplicates can inflate metrics such as revenue, transaction count, or customer activity.</p><h4>Data Types</h4><pre>df.dtypes</pre><p>Dates stored as text and numbers stored as strings can cause problems later [one of the main issue].</p><h4>Invalid Values</h4><p>I also look for things that don’t make business sense.</p><p>For example:</p><pre>Quantity = -10<br>Age = 250<br>Revenue = -500000</pre><p>These values may be valid in some contexts, but they deserve investigation.</p><p>The important thing is that I don’t automatically delete unusual data.</p><p>I first ask:</p><p><strong>“Why is this value here?”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ex2BbAMnwFfPD-hRMgHt_Q.png" /></figure><blockquote>Check my project About EDA : <a href="https://giridharikhan.vercel.app/work/customer-behavior-eda">https://giridharikhan.vercel.app/work/customer-behavior-eda</a></blockquote><h3>4th &gt; I Look at Individual Variables</h3><p>Once the basic quality checks are complete, I start exploring individual columns.</p><p>For numerical variables, I look at:</p><ul><li>Minimum</li><li>Maximum</li><li>Mean</li><li>Median</li><li>Distribution</li><li>Outliers</li></ul><p>For categorical variables, I look at:</p><ul><li>Number of unique values</li><li>Most frequent categories</li><li>Rare categories</li><li>Possible inconsistencies</li></ul><p>For example:</p><pre>df[&quot;Sales&quot;].describe()<br># &amp;<br>df[&quot;Category&quot;].value_counts()</pre><p>This gives me a first idea of how the data behaves.</p><h3>5th &gt; I Look for Relationships</h3><p>After understanding individual variables, I start asking how they relate to each other.</p><p>For example:</p><ol><li><strong>Does sales increase when the number of orders increases?</strong></li></ol><p><strong>2. Which customer segments generate the most revenue?</strong></p><p><strong>3. Does one region consistently outperform another?</strong></p><p><strong>4. Is there a relationship between discount and sales?</strong></p><p>This is where EDA becomes more interesting because I’m no longer just looking at columns. I’m looking for patterns.</p><p>For numerical variables, I may use correlation:</p><pre>df.corr(numeric_only=True)</pre><p>But I don’t treat correlation as proof of causation.<br>[<strong>Example</strong>:</p><ul><li>Correlation: Ice cream sales and drowning cases increase together.</li><li>Causation: More ice cream <strong>causes</strong> more drowning cases — ❌ not necessarily.</li></ul><p>So, <strong>correlation ≠ causation</strong>. ]</p><p>A strong relationship tells me that two variables move together. It doesn’t automatically explain why.</p><h3>6th &gt; I Explore Trends Over Time *</h3><p>If the dataset contains dates, time-based analysis becomes one of my priorities [The 1st things to do for all analyst].</p><p>I usually create useful date features:</p><pre>df[&quot;OrderDate&quot;] = pd.to_datetime(df[&quot;OrderDate&quot;])<br><br>df[&quot;Year&quot;] = df[&quot;OrderDate&quot;].dt.year<br><br>df[&quot;Month&quot;] = df[&quot;OrderDate&quot;].dt.month</pre><p>Then I can start looking at:</p><ul><li>Monthly revenue</li><li>Daily transactions</li><li>Year-over-year growth ( MOM %)</li><li>Seasonal patterns</li><li>Changes in customer behavior</li></ul><p>For example:</p><pre>monthly_sales = df.groupby(&quot;Month&quot;)[&quot;Sales&quot;].sum()</pre><p>A simple trend can sometimes reveal more than a complicated dashboard.</p><h3>7th &gt; I Investigate Anomalies or outliers</h3><p>One thing I particularly like about EDA is finding things that don’t immediately look right.</p><ul><li>Maybe one day has an unusually high number of transactions.</li><li>Maybe one customer has generated ten times more revenue than everyone else.</li><li>Maybe a particular region suddenly shows a large drop.</li></ul><p>These aren’t necessarily errors. They are <strong>questions</strong>.</p><p>For example:</p><blockquote><em>Why did revenue increase by 300% on this particular day?</em></blockquote><p>The answer could be a data issue. Or it could be a genuine business event.</p><p>This is why I prefer investigating anomalies/outliers rather than immediately removing them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fWgXhymA7Y1JlVSuORKq9Q.png" /><figcaption>EDA workflow</figcaption></figure><h3>8th &gt; I Think About KPIs</h3><p>After understanding the data do I start thinking seriously about dashboard KPIs [ Love it to make KPIs ].</p><p>For a sales dataset, that might include:</p><ul><li>Total Revenue</li><li>Total Orders</li><li>Average Order Value</li><li>Revenue Growth</li><li>Customer Count</li><li>Top Products</li><li>Regional Performance</li></ul><p>But I don’t believe every available metric should become a KPI.</p><p>A dashboard with 30 numbers isn’t necessarily better than a dashboard with 6 useful ones.</p><p>The KPI should answer an important business question. That’s it.</p><h3>9th &gt; I Decide What the Dashboard Actually Needs</h3><p>This is the point where I move from exploration to dashboard planning.</p><p>I ask:</p><p><strong>What does the user need to know?</strong></p><p>For example, an executive might need:</p><pre>How are we performing?<br>        ↓<br>Revenue + Growth<br>        ↓<br>What is driving performance?<br>        ↓<br>Products + Regions<br>        ↓<br>Where is the problem?<br>        ↓<br>Underperforming segments</pre><p>That gives me a much clearer direction for the dashboard.</p><p>Instead of adding charts because they look good, I can build visuals around actual questions.</p><h3>10th &gt; Then I Build the Dashboard</h3><p>Only after going through these steps do I move into Power BI or another BI tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1kKZ4F7zxRFBpwTtRCkbpQ.png" /><figcaption>Steps from EDA to Dashboard creation</figcaption></figure><p>At this point, I already have an idea of:</p><ul><li>Which KPIs matter</li><li>Which dimensions are important</li><li>Which trends are worth showing</li><li>Which anomalies need attention</li><li>Which comparisons are useful</li><li>Which questions the dashboard should answer</li><li>Use the filters and so many thing [ I will make next article on This Dashboard building]</li></ul><p>The dashboard becomes the <strong>communication layer</strong> of the analysis.</p><p>EDA helped me discover the story.</p><p>The dashboard helps me communicate it.</p><h3>*** My EDA Checklist ***</h3><p>Before building a dashboard, my basic checklist looks something like this:</p><pre>Understand the business question<br>          ↓<br>Understand the dataset<br>          ↓<br>Check data quality<br>          ↓<br>Handle missing values<br>          ↓<br>Check duplicates<br>          ↓<br>Validate data types<br>          ↓<br>Explore distributions<br>          ↓<br>Find relationships<br>          ↓<br>Analyze trends<br>          ↓<br>Investigate anomalies<br>          ↓<br>Define meaningful KPIs<br>          ↓<br>Build the dashboard</pre><p>I don’t always follow these steps in exactly the same order. The process changes depending on the dataset and the problem I’m trying to solve.</p><p>But the principle remains the same:</p><p><strong>Understand first. Visualize later.</strong></p><h3>Final Thoughts</h3><p>I used to think of EDA mainly as a collection of Python commands and charts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RMmDpEyWCtiMbgzoaND9mw.png" /><figcaption>EDA example</figcaption></figure><p>Now I see it differently.</p><p>EDA is the process of getting familiar with the data before making decisions from it.</p><p>The code is important, but the <strong>questions </strong>behind the code are even<strong> more important</strong>.</p><p>A good analyst doesn’t just ask:</p><blockquote><em>“What chart can I make with this data?”</em></blockquote><p>They ask:</p><blockquote><em>“What does this data tell me, and what should someone do with that information?”</em></blockquote><p>For me, that’s the real purpose of exploratory data analysis.</p><p><strong>Clean the data. Understand the patterns. Question the anomalies. Define the right KPIs. Then build the dashboard.</strong></p><p><em>I write about SQL, data analysis, and the stuff nobody explains clearly the first time. If one of these questions stumped you, tell me which one in the comments, I’ll probably turn it into its own breakdown.</em></p><p><strong><em>Also feel free to comment down and give your feedback. Thank You!</em></strong></p><p>#SQL #DataAnalytics #CareerAdvice #TechInterviews #DataScience</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d220511a9049" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Approach to Cleaning Real-World Data with Pandas]]></title>
            <link>https://medium.com/@007khangiridhari/my-approach-to-cleaning-real-world-data-with-pandas-2015a2001b0b?source=rss-9f7474c3418e------2</link>
            <guid isPermaLink="false">https://medium.com/p/2015a2001b0b</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[projects]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Giridhari Khan | Data Analyst]]></dc:creator>
            <pubDate>Sun, 16 Aug 2026 17:52:32 GMT</pubDate>
            <atom:updated>2026-08-16T17:52:32.029Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pjLuhetIsOuvjJoS2oUllw.png" /></figure><p>When people think about data analysis, they usually imagine dashboards, visualizations, and business insights. However, one of the most important parts of any analytics project happens long before the first chart is created: data cleaning.</p><p>A dashboard is only as reliable as the data behind it. Even the most advanced visualization can lead to poor decisions if the dataset contains missing values, duplicates, inconsistent formatting, or incorrect data types. In many real-world projects, analysts spend a significant amount of time preparing data before they begin analyzing it.</p><p>Fortunately, Pandas provides a powerful set of tools that make data cleaning faster and more efficient.</p><h3>Why Data Cleaning Matters</h3><p>Imagine you are analyzing customer transactions for an e-commerce company. Some customer names are written in uppercase, others in lowercase. A few records have missing values, and several transactions appear twice due to a system error.</p><p>If you start analyzing the dataset immediately, your results may be inaccurate. Revenue might be overstated, customer counts could be incorrect, and business decisions may be based on misleading information.</p><p>This is why data cleaning should always be the first step in any analysis workflow.</p><h3>Loading and Inspecting Data</h3><p>The first step is loading the dataset into a Pandas DataFrame.</p><pre># Data Manipulation<br>import pandas as pd<br>import numpy as np<br><br># Data Visualization<br>import matplotlib.pyplot as plt<br>import seaborn as sns<br><br># Statistics<br>from scipy import stats<br><br># Date &amp; Time<br>from datetime import datetime<br><br># Ignore Warnings<br>import warnings<br>warnings.filterwarnings(&#39;ignore&#39;)<br><br># Display Settings<br>pd.set_option(&#39;display.max_columns&#39;, None)<br>pd.set_option(&#39;display.max_rows&#39;, 100)<br><br># Optional: Missing Value Visualization<br>import missingno as msno<br></pre><pre>df = pd.read_csv(&quot;sales_data.csv&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*1ec5glm0_nFda0YfYpiLbQ.png" /></figure><p>Before making any changes, it’s important to understand the structure of the data.</p><pre>df.head()<br>df.info()<br>df.describe()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XSRke4XskCm1Er_-VJXxNg.png" /></figure><p>These functions provide a quick overview of the dataset, including column names, data types, missing values, and summary statistics.</p><h3>Handling Missing Values</h3><p>Missing values are one of the most common issues analysts encounter.</p><p>To identify missing values in each column:</p><pre>df.isnull().sum()</pre><p>Depending on the situation, you can either remove missing records or replace them with meaningful values.</p><p>Removing rows with missing data:</p><pre>df = df.dropna()</pre><p>Replacing missing values with zero:</p><pre>df = df.fillna(0)</pre><p>Replacing missing values with the column average:</p><pre>df[&quot;Sales&quot;] = df[&quot;Sales&quot;].fillna(df[&quot;Sales&quot;].mean())</pre><p>The best approach depends on the business context. Sometimes removing records is acceptable, while in other cases filling missing values is more appropriate.</p><h3>Removing Duplicate Records</h3><p>Duplicate records can distort analysis and lead to incorrect reporting.</p><p>To identify duplicate rows:</p><pre>df.duplicated().sum()</pre><p>To remove duplicates:</p><pre>df = df.drop_duplicates()</pre><p>This simple step helps ensure that metrics such as revenue, transaction count, and customer activity remain accurate.</p><h3>Standardizing Text Data</h3><p>Inconsistent text formatting is another common problem.</p><p>For example, a city name may appear as:</p><pre>New York<br>new york<br>NEW YORK</pre><p>Although these values represent the same location, a computer treats them as different entries.</p><p>Pandas makes it easy to standardize text fields:</p><pre>df[&quot;City&quot;] = df[&quot;City&quot;].str.strip().str.title()</pre><p>This removes unnecessary spaces and converts text into a consistent format.</p><h3>Converting Data Types</h3><p>Datasets often contain columns stored in the wrong format.</p><p>For example, dates may be imported as text:</p><pre>df[&quot;OrderDate&quot;] = pd.to_datetime(df[&quot;OrderDate&quot;])</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*ThV1tFbgfIuabjLmG-_yeQ.png" /></figure><p>Numeric values can also be converted when necessary:</p><pre>df[&quot;Revenue&quot;] = pd.to_numeric(df[&quot;Revenue&quot;])</pre><p>Correct data types improve both accuracy and performance while reducing unexpected errors during analysis.</p><h3>Identifying and Handling Outliers</h3><p>Outliers are values that differ significantly from the rest of the dataset.</p><p>A quick way to start investigating outliers is:</p><pre>df.describe()</pre><p>For example, if most sales transactions range between ₹500 and ₹5,000 but one record shows ₹500,000, it deserves further investigation.</p><p>However, not all outliers are mistakes. Sometimes they represent important business events, such as a large enterprise purchase. The goal is to understand the reason behind the outlier before deciding whether to remove it.</p><h3>Renaming Columns for Better Readability</h3><p>Clear column names make datasets easier to understand and maintain.</p><p>Instead of:</p><pre>CustID<br>CustNm<br>OrdDt<br>Amt</pre><p>You can rename columns:</p><pre>df.columns = [<br>    &quot;customer_id&quot;,<br>    &quot;customer_name&quot;,<br>    &quot;order_date&quot;,<br>    &quot;sales_amount&quot;<br>]</pre><p>Consistent naming conventions improve collaboration and make code easier to read.</p><h3>Filtering Invalid Records</h3><p>Many datasets contain records that should not be included in the analysis.</p><p>For example, sales transactions with negative values may indicate refunds or data entry issues.</p><p>To keep only valid sales records:</p><pre>df = df[df[&quot;Sales&quot;] &gt; 0]</pre><p>Filtering irrelevant records helps maintain the integrity of the analysis.</p><h3>Creating Useful Features</h3><p>Data cleaning is not only about fixing problems. It is also about preparing data for analysis.</p><p>For example, if you have an order date column, you can create additional features:</p><pre>df[&quot;Year&quot;] = df[&quot;OrderDate&quot;].dt.year<br>df[&quot;Month&quot;] = df[&quot;OrderDate&quot;].dt.month</pre><p>These columns make it easier to build reports, dashboards, and trend analyses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*Ca7xoYhg4T2vDr66ow8mYA.png" /></figure><h3>Building a Repeatable Workflow</h3><p>One of the best habits an analyst can develop is creating a repeatable data cleaning process.</p><p>A typical workflow might look like this:</p><ol><li>Load the dataset.</li><li>Inspect the structure and quality.</li><li>Handle missing values.</li><li>Remove duplicates.</li><li>Standardize text fields.</li><li>Convert data types.</li><li>Investigate outliers.</li><li>Validate the cleaned data.</li><li>Save the final dataset.</li></ol><p>Following a structured process reduces mistakes and improves consistency across projects.</p><h4>I made an EDA analysis :</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*p35uAHouqc-oZJq5LHLkOw.png" /></figure><p>Check here :<a href="https://giridharikhan.vercel.app/work/customer-behavior-eda">https://giridharikhan.vercel.app/work/customer-behavior-eda</a><br>“You can find the dataset on the github”</p><h3>Final Thoughts</h3><p>Data cleaning may not be the most exciting part of data analysis, but it is often the most important. Clean data creates the foundation for accurate reporting, meaningful insights, and better business decisions.</p><p>In my own projects, I’ve found that investing time in data cleaning saves much more time later in the analysis process. Whether you’re building dashboards, conducting exploratory analysis, or creating predictive models, the quality of your results will always depend on the quality of your data.</p><p>Pandas simplifies this process by providing a rich set of tools for handling common data quality issues. Mastering these techniques will not only improve your analyses but also make you a more effective and reliable data analyst.</p><p><em>I write about SQL, data analysis, and the stuff nobody explains clearly the first time. If one of these questions stumped you, tell me which one in the comments, I’ll probably turn it into its own breakdown.</em></p><p>#SQL #DataAnalytics #CareerAdvice #TechInterviews #DataScience</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2015a2001b0b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What I Learned Building an Employee Attendance System as a Data Analyst ?]]></title>
            <link>https://medium.com/@007khangiridhari/what-i-learned-building-an-employee-attendance-system-as-a-data-analyst-0b6daae1e3b0?source=rss-9f7474c3418e------2</link>
            <guid isPermaLink="false">https://medium.com/p/0b6daae1e3b0</guid>
            <category><![CDATA[business-analytics]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[projects]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Giridhari Khan | Data Analyst]]></dc:creator>
            <pubDate>Sat, 08 Aug 2026 17:08:45 GMT</pubDate>
            <atom:updated>2026-08-08T17:08:45.110Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AQQdC7jXID-OMsLn49NpMQ.png" /></figure><p>I started building an employee attendance system thinking the difficult part would be tracking whether someone checked in or checked out.</p><p>It wasn’t.</p><p>The difficult part was figuring out what to actually <strong>do with that data</strong>.</p><p>A check-in timestamp by itself isn’t very useful.</p><p>But thousands of check-ins can answer questions like:</p><ul><li>How many employees are actually showing up?</li><li>Which teams have the highest late-arrival rate?</li><li>Is attendance getting better or worse over time?</li><li>How many employees are currently active?</li><li>Can an admin understand all of this without writing SQL?</li><li>And perhaps most importantly: <strong>Can I trust the numbers I’m showing them?</strong></li></ul><p>That became the idea behind <strong>Workforce Analytics Platform</strong>, the backend and analytics architecture I designed for my employee attendance SaaS project, Tap-in.</p><p>The project combines a multi-tenant PostgreSQL database, Row Level Security, attendance data, employee records, salary documents, and KPI dashboards.</p><p>You can find the project here:</p><p><a href="https://github.com/Giridhari-khan/Workforce-Analytics-Platform?utm_source=chatgpt.com">Workforce Analytics Platform — GitHub</a></p><p>And building it taught me something I think is important for anyone trying to become a Data Analyst:</p><blockquote><strong><em>Data Analytics isn’t just about calculating numbers. It’s about deciding which numbers matter, making sure they’re trustworthy, and turning them into decisions.</em></strong></blockquote><h3>1. The raw data isn’t the insight</h3><p>Imagine an attendance table like this:</p><pre>Employee ID | Check-in Time | Check-out Time | Status<br>------------|---------------|----------------|---------<br>EMP001      | 09:02         | 18:04          | Present<br>EMP002      | 09:37         | 18:12          | Late<br>EMP003      | 08:55         | 17:45          | Present<br>EMP004      | NULL          | NULL           | Absent</pre><p>At first glance, this looks like a simple database table. But an admin doesn’t really want to stare at thousands of rows like these.<br>They want something like:</p><p><strong>Today’s workforce</strong></p><pre>=================================================================<br> ACTIVE EMPLOYEES     ATTENDANCE RATE     LATE ARRIVALS    ABSENT<br>      184                 91.3%                17            16<br>=================================================================</pre><p>That’s the first lesson I learned:</p><p><strong>The job of analytics is often to create a layer between raw data and human decisions.</strong></p><p>The database stores events. The dashboard explains what those events mean.</p><h3>2. KPI design is harder than writing the SQL</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nzbHaXsfFDWw9pC_Xc5OYA.png" /></figure><p>One of the most interesting parts of this project was designing the KPI layer. It’s relatively easy to write a query that counts attendance records. The harder question is:</p><p><strong>What should the client admin see first?</strong></p><p>For the dashboard, I focused on metrics such as:</p><h3>Attendance Rate</h3><p>A simple version can be expressed as:</p><pre>Attendance Rate =<br>Employees Present / Expected(Total Active) Employees × 100</pre><p>This gives an immediate understanding of workforce availability.</p><h3>Late Arrivals</h3><p>Instead of simply counting all attendance records, we can identify employees whose check-in happened after the expected/assigned (Shift) start time.</p><pre>Late Arrivals =<br>COUNT(employees with check-in &gt; expected/Assigned shift start time)</pre><h3>Active Headcount</h3><p>This tells the admin - how many employees are currently part of the workforce.</p><h3>3. Attendance data becomes more useful when you look for patterns</h3><p>Suppose the dashboard says:</p><blockquote><strong><em>Attendance rate: 92%</em></strong></blockquote><p>That sounds good. But what if it was:</p><pre>Day       | Attendance<br>----------|------------<br>Monday    | 97%<br>Tuesday   | 96%<br>Wednesday | 94%<br>Thursday  | 90%<br>Friday    | 83%<br><br>-- Overall Attendance rate: 92%</pre><p>Now there is something worth investigating.</p><p>The overall <strong>92%</strong> number hides the pattern. This is why I think analysts should be careful with averages. A single KPI can tell you <strong>what happened</strong>. A trend can start telling you <strong>why something might be happening</strong>.</p><p>From an attendance dataset, you can eventually explore:</p><ul><li>Daily attendance trends</li><li>Late-arrival patterns</li><li>Employee-level attendance</li><li>Absence frequency</li><li>Check-in time distributions</li><li>Changes in workforce activity</li></ul><p>The raw attendance event becomes much more valuable once we add <strong>time, grouping, and context</strong>.</p><h3>4. Then I ran into a completely different problem: security ( RLS Policy )</h3><p>This was probably the most technically interesting part of the project. The platform is designed as a <strong>multi-tenant SaaS</strong>. That means one database can contain data from multiple companies.</p><p>For example:</p><pre>#Company A<br> ├── Employees<br> ├── Attendance<br> └── Salary Slips<br><br>#Company B<br> ├── Employees<br> ├── Attendance<br> └── Salary Slips</pre><p>The obvious requirement is:</p><blockquote><em>Company A must never be able to see Company B’s data.</em></blockquote><p>It sounds simple. But this isn’t something I wanted to solve only in frontend code. If the frontend accidentally sends the wrong company ID, the database should still protect the data.</p><p>That’s where PostgreSQL Row Level Security (RLS) comes in.</p><h3>5. company_id became one of the most important columns</h3><p>I designed the database around a companies table.</p><p>Tenant-specific tables such as:</p><ul><li>employees</li><li>attendance</li><li>employee documents</li><li>salary slips and so more things.</li></ul><p>carry a company_id.</p><p>That gives the database a clear isolation boundary.</p><p>Conceptually:</p><pre>Request<br>   ↓<br>Who is this user?<br>   ↓<br>Which company do they belong to?<br>   ↓<br>Does this row belong to that company?<br>   ↓<br>ALLOW / DENY</pre><p>This sounds straightforward. Then I started testing it. And that’s where things became interesting.</p><h3>6. RLS can look correct and still be wrong</h3><p>During the RLS audit(By AI) , I found several problems.</p><p>One of the important ones was the difference between:</p><pre>USING (...) </pre><p>and:</p><pre>WITH CHECK (...)</pre><p>For example, an update policy might correctly control <strong>which rows a user is allowed to access</strong>.</p><p>But if the policy doesn’t properly constrain the values being written, someone could potentially modify a row’s company_id.</p><p>That’s why a policy like this matters:</p><pre>CREATE POLICY &quot;company_scoped_update&quot;<br>ON attendance<br>FOR UPDATE<br>USING (<br>  company_id = (<br>    SELECT company_id<br>    FROM employees<br>    WHERE id = auth.uid()<br>  )<br>)<br>WITH CHECK (<br>  company_id = (<br>    SELECT company_id<br>    FROM employees<br>    WHERE id = auth.uid()<br>  )<br>);</pre><p>The USING condition controls the rows being targeted.</p><p>The WITH CHECK condition controls what the resulting row is allowed to look like.</p><p>That distinction was easy to overlook.</p><p>And it taught me something important:</p><blockquote><strong><em>A query returning the correct result doesn’t automatically mean the underlying data system is safe. ( Also I need to read more on this problem and solution )</em></strong></blockquote><h3>7. RLS wasn’t the only thing I had to debug</h3><p>Another lesson came from PostgreSQL permissions. I initially thought:</p><blockquote><em>“If the RLS policy is correct, access should work.”</em></blockquote><p>Not necessarily. There are two different layers involved:</p><pre>PostgreSQL permissions<br>        ↓<br>      RLS<br>        ↓<br>      Query</pre><p>A user can have a correctly written RLS policy but still fail because the underlying PostgreSQL role doesn’t have the required GRANT<br>DCL: Data Control Language : Grant</p><p>That means an error that looks like an RLS problem can actually be a permissions problem. I audit both layers separately.</p><h3>8. The authentication model created another interesting problem</h3><p>The employee side of the application uses a login-code-based flow rather than creating a traditional Supabase Auth user for every employee.</p><p>That created an unusual situation. For these employees:</p><pre>auth.uid()<br>     ↓<br>NULL</pre><p>So a standard RLS policy relying on auth.uid() doesn&#39;t work for that user type.</p><p>The solution was to use a dedicated service-role Edge Function for specific employee-side operations, while client administrators with normal Supabase Auth sessions remain governed directly by RLS.</p><p>This reinforced another lesson:</p><blockquote><strong><em>Your authentication model directly affects your data-access model.</em></strong></blockquote><p>You can’t design authentication, database security, and analytics independently.</p><p>They have to work together.</p><h3>9. From database rows to an actual dashboard</h3><p>After the database and security model were in place, I could focus on the part that is more familiar to a Data Analyst:</p><p><strong>How do we make the data understandable?</strong></p><p>The dashboard turns raw attendance and employee records into KPIs and visualizations.</p><p>Instead of asking an administrator to run:</p><pre>SELECT ...<br>FROM attendance<br>...</pre><p>they can simply look at:</p><pre>┌─────────────────┐<br>│ Attendance      │<br>│     91.3%       │<br>└─────────────────┘</pre><pre>┌─────────────────┐<br>│ Late Arrivals   │<br>│       17        │<br>└─────────────────┘</pre><pre>┌─────────────────┐<br>│ Active Headcount│<br>│      184        │<br>└─────────────────┘</pre><p>That’s a small interface.</p><p>But behind those three numbers are:</p><p><strong>Database design → data relationships → filtering → aggregation → business logic → visualization</strong></p><p>And that is exactly why I enjoyed this project from a Data Analyst perspective.</p><h3>10. I started thinking less like a developer and more like an analyst</h3><p>While building this, I noticed a change in the questions I was asking.</p><p>Initially:</p><blockquote><em>“How do I store attendance?”</em></blockquote><p>Then:</p><blockquote><em>“How do I calculate attendance?”</em></blockquote><p>Then:</p><blockquote><em>“What does the client actually need to know?”</em></blockquote><p>And finally:</p><blockquote><em>“Can I trust this metric enough for someone to make a business decision from it?”</em></blockquote><p>That progression matters.</p><p>Because a Data Analyst isn’t simply someone who knows SQL.</p><p>A good analyst has to think about:</p><p><strong>Data → Quality → Logic → Metrics → Context → Decision</strong></p><h3>11. What I would build next</h3><p>The current platform already provides the foundation for much deeper workforce analytics.</p><p>The next layer could include:</p><h3>Attendance forecasting</h3><p>Detect companies where attendance is consistently declining.</p><h3>Late-arrival trends</h3><p>Identify increasing late-arrival rates before they become an operational problem.</p><h3>Employee attendance scoring</h3><p>Create a consistent score based on attendance, punctuality, and absence patterns.</p><h3>Workforce segmentation</h3><p>Group employees or teams based on attendance behavior.</p><h3>Anomaly detection</h3><p>Flag unusual attendance patterns automatically.</p><h3>Payroll analytics</h3><p>Connect attendance information with salary/payroll data to understand the relationship between workforce activity and payroll operations.</p><p>The important thing is that these features aren’t just “more charts.”</p><p>They should answer better questions.</p><h3>12. My biggest takeaway</h3><p>Before building this project, I thought analytics was mostly:</p><pre>SQL<br>↓<br>Calculate<br>↓<br>Dashboard</pre><p>Now I think about it more like:</p><pre>Raw Data<br>   ↓<br>Data Model<br>   ↓<br>Data Quality<br>   ↓<br>Security &amp; Access<br>   ↓<br>Business Logic<br>   ↓<br>KPIs<br>   ↓<br>Visualization<br>   ↓<br>Decision</pre><p>The dashboard is only the final layer.</p><p>The real work happens underneath it.</p><p>And that’s probably the biggest thing I learned from building an employee attendance system:</p><blockquote><strong><em>A good analytics product doesn’t just tell you what happened. It makes the underlying data trustworthy enough for someone to decide what to do next.</em></strong></blockquote><p>That’s the part of Data Analytics I want to keep exploring.</p><h3>Project</h3><p>I built the Workforce Analytics Platform as part of my broader Tap-in employee attendance SaaS project.</p><p>The repository contains the PostgreSQL schema, multi-tenant architecture, RLS policies, security audit work, and KPI/dashboard design.</p><p><strong>GitHub:</strong> <a href="https://github.com/Giridhari-khan/Workforce-Analytics-Platform?utm_source=chatgpt.com">Workforce Analytics Platform</a></p><p>If you’re learning Data Analytics, I would strongly recommend building at least one project where the data represents a <strong>real business workflow</strong>.</p><p>A dashboard with random charts can demonstrate that you know a visualization tool.</p><p>A system like this can demonstrate that you understand <strong>data, business logic, security, KPIs, and decisions together.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0b6daae1e3b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why SQL is still the no.1 skill hiring managers searching for in 2026 ?]]></title>
            <link>https://medium.com/@007khangiridhari/why-sql-is-still-the-no-1-skill-hiring-managers-searching-for-in-2026-f854241bc0a9?source=rss-9f7474c3418e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f854241bc0a9</guid>
            <category><![CDATA[jobs]]></category>
            <category><![CDATA[techinterviewprep]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-analytics]]></category>
            <dc:creator><![CDATA[Giridhari Khan | Data Analyst]]></dc:creator>
            <pubDate>Sun, 26 Jul 2026 18:22:10 GMT</pubDate>
            <atom:updated>2026-07-26T18:22:10.019Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2uLpJZGZ1vYG75u2KNWNPQ.png" /></figure><p>SQL is Still the No.1 Skill Hiring Managers searching For in 2026: Here’s the Exact Question List They Use</p><p>I got rejected from a data analyst role last interview, after a 25-minute SQL round where I fumbled a window function question I’d “known” for months. Known it in theory, Couldn’t write it under pressure. That gap between <strong>“I understand this”</strong> and <strong>“I can produce this on a whiteboard while someone watches”</strong> is basically the whole hiring filter, and nobody tells you that until you’re in the room.</p><p>SQL still tops the list of what companies actually check for before anything else. Not Python, not a portfolio, not your GitHub. SQL first. If you can’t clear that bar, the interview usually ends there regardless of what else is on your resume.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*p1dPwQSb5Y9V90IWnPtGgQ.png" /></figure><p>You don’t need to be an expert to follow this. If you know what a table and a column are, you’re ready.</p><h3>First, a tiny bit of setup:</h3><p>Imagine a table called <strong>employees</strong> that looks like this: I’ll reuse this table for most of the examples below.</p><pre>| id | name | department | salary | manager_id |<br>|----|------|------------|--------|------------|<br>| 1  | Amara | Sales | 60000 | 3 |<br>| 2  | Liu | Sales | 65000 | 3 |<br>| 3  | Priya | Sales | 90000 | NULL |<br>| 4  | Tom | Marketing | 55000 | 5 |<br>| 5  | Dev | Marketing | 85000 | NULL |</pre><h3>Round 1: Can you spot messy data before it ruins your report</h3><p>Real data is messy almost all the time. Duplicate rows, missing values, IDs that were supposed to be unique but aren’t , mainly Dates are not in date format. Interviewers test this first because if you don’t catch these problems, every number you calculate afterward is wrong.</p><p><strong>Example question: find duplicate rows in a table.</strong></p><p>Say the employees table accidentally has “Amara” listed twice. Here&#39;s how you&#39;d find every name that appears more than once:</p><pre>SELECT name, COUNT(*) AS times_appeared<br>FROM employees<br>GROUP BY name<br>HAVING COUNT(*) &gt; 1;</pre><p>What this does, step by step:</p><ul><li>GROUP BY name bundles all rows with the same name together.</li><li>COUNT(*) counts how many rows are in each bundle.</li><li>HAVING COUNT(*) &gt; 1 keeps only the bundles with more than one row, meaning the name showed up more than once.</li></ul><pre>-- If Amara appears twice, this query returns:<br> <br>| name | times_appeared |<br>|------|-----------------|<br>| Amara | 2 |</pre><p>That’s it. That’s the whole trick behind “find duplicates” questions. Once you’ve written this pattern a few times, it becomes automatic.</p><h3>Round 2: Joins, the version that actually trips people up</h3><p>A join is how you combine two tables using a shared column, like matching each employee to their department’s budget using a <strong>department</strong> column that exists in both tables.</p><p>Everyone learns basic joins early on (most of INNER JOIN). What separates beginners from people who get hired is knowing the difference between filtering in <strong>WHERE </strong>versus filtering in <strong>ON</strong>.</p><p><strong>Example question: why does putting a filter in the wrong place change your numbers?</strong></p><p>Say - you have a <strong>departments </strong>table with a <strong>budget </strong>column, and you want to see every employee, even ones whose department has no budget listed yet.</p><p>Wrong way (accidentally drops your unmatched rows):</p><pre>SELECT e.name, d.budget<br>FROM employees e<br>LEFT JOIN departments d ON e.department = d.department<br>WHERE d.budget &gt; 50000;</pre><p>This looks fine, but it quietly breaks the whole point of a LEFT JOIN. The <strong>WHERE </strong>clause filters out any row where <strong>budget </strong>is NULL, which removes exactly the employees you wanted to keep.</p><p>Right way (filter goes inside the join condition instead):</p><pre>SELECT e.name, d.budget<br>FROM employees e<br>LEFT JOIN departments d <br>  ON e.department = d.department AND d.budget &gt; 50000;</pre><p>Now employees without a matching budget still show up, just with NULL in the budget column, which is what a LEFT JOIN is supposed to do.</p><p>This one difference has genuinely caused real reports to undercount revenue by accident. It looks like a small detail. It isn’t.</p><h3>Round 3: Window functions, the thing everyone says they know</h3><p>A window function lets you do a calculation across a group of rows without collapsing them into one row, the way GROUP BY does. This is the single most common thing that trips people up in <em>interviews</em>, mainly because it’s rarely taught with enough hands-on practice ( <strong>as usual happend for me</strong>).</p><p><strong>Example question: find the highest-paid employee in each department.</strong></p><pre>SELECT name, department, salary,<br>       RANK() OVER (PARTITION BY department ORDER BY salary DESC) <br>       AS rank_in_dept<br>FROM employees;</pre><p>Breaking this down:</p><ul><li><strong>PARTITION BY department</strong> says &quot;restart the ranking for each department&quot; instead of ranking everyone in the whole company together.</li><li><strong>ORDER BY salary DESC</strong> says &quot;rank from highest salary to lowest&quot; within each department.</li><li><strong>RANK()</strong> assigns the actual rank number.</li></ul><pre><br>-- Result using our table from earlier:<br> <br>| name | department | salary | rank_in_dept |<br>|------|------------|--------|---------------|<br>| Priya | Sales | 90000 | 1 |<br>| Liu | Sales | 65000 | 2 |<br>| Amara | Sales | 60000 | 3 |<br>| Dev | Marketing | 85000 | 1 |<br>| Tom | Marketing | 55000 | 2 |</pre><p>Notice the ranking resets back to 1 when the department changes. That’s the whole point of <strong>PARTITION</strong> <strong>BY</strong>, and it&#39;s the part most people mix up when they&#39;re new to this.</p><p>Quick note on the three ranking functions people always confuse:</p><ul><li><strong>ROW_NUMBER</strong>() always gives unique numbers, even for tied salaries (1, 2, 3, 4...).</li><li><strong>RANK</strong>() gives tied rows the same number, then skips ahead (1, 1, 3, 4...).</li><li><strong>DENSE_RANK</strong>() gives tied rows the same number, but doesn&#39;t skip (1, 1, 2, 3...).</li></ul><p>If two people tie for first place, <strong>RANK</strong>() makes the next person third. <strong>DENSE_RANK</strong>() makes them second. That&#39;s the entire difference.</p><h3>Round 4: Can you make a slow query faster ?</h3><p>You don’t need to be a database expert for this. You just need one clear idea instead of a blank stare.</p><p><strong>Example question: a query is slow on a table with 5 million rows. What do you check first?</strong></p><p>The beginner-friendly version of the answer: you check whether the column you’re filtering or joining on has an index. An index works kind of like the index at the back of a textbook. Without it, the database checks every single page (every row) to find what you asked for. With it, the database jumps straight to the right spot.</p><pre>CREATE INDEX idx_employee_department ON employees(department);</pre><p>After this, a query like <strong>WHERE department = &#39;Sales&#39;</strong> doesn&#39;t need to scan the whole table anymore. It looks up &quot;Sales&quot; in the index and goes straight there.</p><p>You won’t be asked to write a full optimization plan as a beginner. You just need to be able to say “I’d check if there’s an index on the column I’m filtering by” instead of freezing up.</p><h3>Round 5: The question with no clean answer</h3><p>This is the one that actually shows whether you can think, not just recite syntax.</p><p><strong>Example question: “Marketing says signups dropped 20% last week. What do you check first?”</strong></p><p>There’s no single correct query. What matters is showing your thought process out loud, something like:</p><pre>SELECT DATE(created_at) AS signup_date, COUNT(*) AS signups<br>FROM users<br>WHERE created_at &gt;= CURRENT_DATE - INTERVAL &#39;14 days&#39;<br>GROUP BY DATE(created_at)<br>ORDER BY signup_date;</pre><p>This pulls daily signup counts for the last two weeks so you can actually see the drop instead of just trusting the 20% number. Then you’d talk through what could explain it: a tracking bug that stopped logging signups correctly, a holiday, or a change in how “signup” gets counted in the first place. Companies want to see that you check the data is even trustworthy before you start blaming a team.</p><h3>What to actually do with this</h3><p>Reading this article won’t make any of it stick. Open a free tool like DB Fiddle, SQLite Online, or a site like DataLemur, and type out every query above yourself, from scratch, without copying and pasting. Get it wrong a few times. That’s normal and honestly the whole point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IggwjfNR4tGO9CKrK3YMKw.png" /></figure><p>Check our Sub-Reddit :<a href="https://www.reddit.com/r/DataBuilders/"> r/DataBuilders</a></p><p>I’ve been posting breakdowns like this over on r/DataBuilders. It’s brand new, just a handful of posts and basically no followers yet since I only just started it, but that’s kind of the point of a small community: it’s easier to actually ask a dumb question and get a real answer instead of it getting buried under a thousand comments. If you’re studying for interviews, come post your own attempt at the window function example above. I’ll tell you honestly if it’s right.</p><p>Pick one example from this article and rewrite it yourself right now, before you close this tab. That’s the only step that actually matters.</p><p><em>I write about SQL, data analysis, and the stuff nobody explains clearly the first time. If one of these questions stumped you, tell me which one in the comments, I’ll probably turn it into its own breakdown.</em></p><p><em>More of this over on r/DataBuilders if you want to work through practice questions with other people instead of alone.</em></p><p>#SQL #DataAnalytics #CareerAdvice #TechInterviews #DataScience</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f854241bc0a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>