Coding with Kaps

Coding with Kaps �Coding | AI | Data Analyst
� Learn Python &
�Excel | �SQL |�Power BI
(1)

18/08/2026
16/08/2026

*🚀 Data Analyst Roadmap 2026*

*🎯 STEP 1 — Understand the Data Analyst Role*

What a Data Analyst does:
- Data Analytics overview
- Data Analyst vs Data Scientist vs Data Engineer
- Types of data: Structured vs unstructured
- KPIs and metrics
- Business questions vs data questions
- Descriptive, diagnostic, predictive, prescriptive analytics
- Data collection, cleaning, transformation, analysis
- Data visualization, reporting, presenting insights
- Stakeholder communication

*📊 STEP 2 — Master Excel*

*⏱️ Time: 2–3 weeks*

*Level 1 — Excel Basics*
Workbook, worksheets, rows, columns, cell references, relative/absolute, formatting, sorting, filtering, freeze panes, find & replace, data validation

*Level 2 — Essential Formulas*
SUM, AVERAGE, MIN, MAX, COUNT, COUNTA, COUNTBLANK, ROUND, ROUNDUP, ROUNDDOWN

*Level 3 — Conditional Functions*
IF, IFS, AND, OR, NOT, IFERROR, SUMIF, SUMIFS, COUNTIF, COUNTIFS, AVERAGEIF, AVERAGEIFS, MAXIFS, MINIFS

*Level 4 — Lookup Functions*
XLOOKUP, VLOOKUP, HLOOKUP, INDEX, MATCH, XMATCH

*Level 5 — Text Functions*
LEFT, RIGHT, MID, LEN, TRIM, CLEAN, UPPER, LOWER, PROPER, CONCAT, TEXTJOIN, SUBSTITUTE, FIND, SEARCH, TEXT

*Level 6 — Date Functions*
TODAY, NOW, DATE, YEAR, MONTH, DAY, DATEDIF, EDATE, EOMONTH, NETWORKDAYS, WORKDAY

*Level 7 — Advanced Excel*
PivotTables, PivotCharts, Conditional Formatting, Named ranges, Dynamic arrays, FILTER, SORT, UNIQUE, SEQUENCE, What-if analysis, Goal Seek

*Level 8 — Power Query*
Import data, remove duplicates, handle missing values, split columns, merge/append queries, change data types, custom columns, Group By, Basic M

*🎯 Excel Project*
Sales Performance Dashboard: Total Sales, Total Orders, AOV, Sales by Region/Product, Monthly Trend, Top 10 Customers, Sales Growth, Target vs Actual

*🗄️ STEP 3 — Master SQL*

*⏱️ Time: 4–6 weeks*

*Level 1 — SQL Fundamentals*
SELECT, FROM, WHERE, ORDER BY, DISTINCT, LIMIT, NULL, Aliases, Operators

*Level 2 — Aggregations*
COUNT(), SUM(), AVG(), MIN(), MAX(), GROUP BY, HAVING

*🔗 STEP 4 — SQL Joins*
INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL OUTER JOIN, CROSS JOIN, SELF JOIN
Primary keys, Foreign keys, 1:1, 1:M, M:M relationships

*🧠 STEP 5 — Advanced SQL*
Subqueries, CTEs, Window Functions: ROW_NUMBER(), RANK(), DENSE_RANK(), LAG(), LEAD(), FIRST_VALUE(), LAST_VALUE(), NTILE()
CASE, Date functions, String functions, UNION, UNION ALL, INTERSECT, EXCEPT, Recursive CTEs, Conditional aggregation, Running totals, Moving averages, Cohort analysis

*🎯 SQL Projects*
1. E-commerce Analysis
2. Customer Churn Analysis
3. Financial/Sales Performance Analysis

*📈 STEP 6 — Statistics*
*⏱️ Time: 2–3 weeks*

*Descriptive*: Mean, Median, Mode, Range, Variance, Std Dev, Percentiles, Quartiles, IQR

*Probability*: Basics, Conditional probability, Independent events, Bayes' theorem

*Distributions*: Normal, Binomial, Poisson, Skewness

*Inferential*: Population vs Sample, Sampling, Confidence intervals, Hypothesis testing, p-value, Type I/II error, Statistical significance

*A/B Testing*: Control vs Treatment, Null/Alternative hypothesis, Statistical vs Practical significance

*📊 STEP 7 — Power BI*

*⏱️ Time: 4–6 weeks*

*Level 1 — Power BI Fundamentals*
Desktop, Service, Reports, Dashboards, Workspaces, Data sources, Import mode, DirectQuery, Semantic models

*Level 2 — Power Query*
Data cleaning, transformations, merge, append, group, pivot/unpivot, conditional/custom columns, data types

*🧮 STEP 8 — DAX*
SUM, COUNT, COUNTROWS, DISTINCTCOUNT, AVERAGE, MIN, MAX
CALCULATE, FILTER, ALL, ALLSELECTED, REMOVEFILTERS, VALUES, SELECTEDVALUE
SUMX, AVERAGEX, COUNTX, MINX, MAXX

*Time Intelligence*: TOTALYTD, TOTALMTD, TOTALQTD, SAMEPERIODLASTYEAR, DATEADD, DATESYTD, DATESMTD
Measures: YTD, MTD, QTD, Previous Year, YoY %, Running Total, Rolling 12M, Market Share, Contribution %

*🏗️ STEP 9 — Data Modeling*
Fact tables, Dimension tables, Star schema, Snowflake schema, Relationships, Cardinality, Cross-filter direction, Active/Inactive relationships, Role-playing dimensions, Date tables

*🎨 STEP 10 — Power BI Visualization*
Cards, Tables, Matrix, Bar, Column, Line, Area, Scatter, Map, Treemap, Waterfall, KPI, Decomposition Tree, Drill-through, Tooltips, Bookmarks, Buttons, Slicers
Data storytelling: What happened? Why? Where? Who/What? What next?

*🐍 STEP 11 — Python for Data Analysis*

*⏱️ Time: 3–4 weeks*

*Basics*: Variables, Data Types, Lists, Tuples, Sets, Dicts, If/Else, Loops, Functions, Lambda, Exception Handling

*NumPy*: Arrays, Indexing, Vectorization, Math operations

*Pandas*: DataFrame, Series, read_csv(), read_excel(), head(), info(), describe(), loc[], iloc[], groupby(), merge(), concat(), pivot_table(), sort_values(), drop_duplicates(), fillna(), dropna(), apply()

*Visualization*: Matplotlib, Seaborn: Bar, Line, Histogram, Scatter, Box, Heatmap

*🎯 Python Project*
Customer Sales & Churn Analysis: Cleaning, EDA, Segmentation, Revenue analysis, Churn patterns, Visuals, Recommendations

*🧹 STEP 12 — Data Cleaning*
Missing values, duplicates, wrong data types, outliers, inconsistent categories, invalid dates, bad formats, negative values, duplicate transactions, data integrity
Practice in: Excel → Power Query → SQL → Python

*🏢 STEP 13 — Business & Domain Knowledge*

*Sales*: Revenue, AOV, Conversion Rate, Growth, Gross Margin
*Marketing*: CAC, CTR, CPC, ROAS, Retention
*Product*: DAU, MAU, Retention, Churn, Activation, Engagement
*Finance*: Revenue, Profit, EBITDA, Cost, Margin, Budget vs Actual, Forecast
*Operations*: SLA, Productivity, Turnaround Time, Error Rate, Capacity, Utilization

*🤖 STEP 14 — AI for Data Analysts in 2026*
Use AI for: SQL help, DAX help, Excel formulas, Python debugging, Data cleaning, Documentation, Storytelling, Root-cause analysis, Hypotheses, Analysis plans
Limitations: Hallucinations, Incorrect SQL, Wrong assumptions, Data privacy, Poor context
Mindset: AI augments analysts, doesn't replace thinking

*☁️ STEP 15 — Cloud & Data Platforms*
Azure, AWS, Google Cloud, Databricks, Snowflake
Concepts: Data warehouse, Data lake, Lakehouse, ETL, ELT, Pipelines, Batch processing, APIs

*📁 STEP 16 — Build a Portfolio*
*Project 1 — Sales Analytics*: Excel + SQL + Power BI → Revenue, Profit, Products, Regions, Customers, Trends
*Project 2 — Customer Churn*: SQL + Python + Power BI → Churn rate, Segments, Retention, Revenue at risk
*Project 3 — Financial Analysis*: Excel + Power BI → P&L, Budget vs Actual, Variance, Trends
*Project 4 — E-commerce Analytics*: SQL + Python + Power BI → Orders, Conversion, AOV, CLV
*Project 5 — HR Analytics*: Excel + SQL + Power BI → Headcount, Attrition, Salary, Tenure

*🧠 STEP 17 — Explain Your Projects*
Business Problem → Data → Cleaning → Transformation → Analysis → Visualization → Insights → Recommendations → Impact

*💼 STEP 18 — Build Your Resume*

*🔎 STEP 19 — LinkedIn & GitHub*
*LinkedIn*: Headline, About, Skills, Projects, Certifications, Posts on SQL, Power BI, Excel, Projects, Insights
*GitHub*: SQL projects, Python notebooks, Docs, Screenshots, Data dictionaries, README

*🎤 STEP 20 — Interview Preparation*
*Excel*: XLOOKUP, INDEX/MATCH, SUMIFS, COUNTIFS, PivotTables, Power Query
*SQL*: Joins, Aggregations, CTEs, Subqueries, Window functions, Ranking, Running totals
*Power BI*: DAX, CALCULATE, Data modeling, Relationships, Time intelligence
*Python*: Pandas, GroupBy, Merge, EDA
*Business Cases*: Sales drop, Churn increase, Revenue up but profit down, KPI anomaly

*🗓️ Double Tap ❤️ For More*

16/08/2026

*✅ Excel Scenario-Based Questions for Interview & Practice 🧠📊*

*📌 Scenario 66*
*Question:* You need to calculate the total sales for each region and product category simultaneously. Which Excel function would you use?
*Answer:* Use `SUMIFS()`
*Example:*
`=SUMIFS(C:C,A:A,"North",B:B,"Electronics")`
This calculates sales where the region is North and category is Electronics.

*📊 Scenario 67*
*Question:* Your manager wants to identify the first transaction date for each customer. How would you do it?
*Answer:* Use `MINIFS()` in newer Excel versions.
*Example:*
`=MINIFS(B:B,A:A,E2)`
Where `A:A` contains Customer IDs, `B:B` contains Transaction Dates, and `E2` contains the customer to search.

*📅 Scenario 68*
*Question:* You need to calculate the number of working days between two dates while excluding company holidays. How would you do it?
*Answer:* Use `NETWORKDAYS()`
*Example:*
`=NETWORKDAYS(A2,B2,D2:D10)`
Here, `D2:D10` contains the holiday dates.

*📈 Scenario 69*
*Question:* Your dataset contains sales values with decimals, but the report requires values rounded to the nearest whole number. What would you use?
*Answer:* Use `ROUND()`
*Example:*
`=ROUND(B2,0)`
This rounds the value in `B2` to the nearest whole number.

*🔍 Scenario 70*
*Question:* You want to create a dynamic report where users can select a region from a dropdown and see only that region's sales. How would you approach it?
*Answer:* Create a dropdown using Data Validation and use `FILTER()` to return matching records.
*Example:*
`=FILTER(A2:D100,C2:C100=G2,"No records found")`
Where `G2` contains the selected region.

💬 Double Tap ♥️ For More!

16/08/2026

*🚀 Power BI Interview Questions with Answers:* *Part 2*

*11. What data sources can Power BI connect to?*
Power BI can connect to a wide variety of data sources, including files, databases, cloud services, web sources, and other Microsoft services.

*Common data sources:*
- Excel
- CSV
- SQL Server
- MySQL
- PostgreSQL
- Oracle
- SharePoint
- Azure services
- Web APIs
- Folder
- Power Platform sources

*Example:*
A company may have:
- Sales data in SQL Server
- Budget data in Excel
- Customer information in Salesforce
- Marketing data from an API
Power BI can bring these sources together for analysis.

*Interview Tip:*
Don't just list data sources. Explain that the choice of source and connection mode depends on factors such as data volume, refresh requirements, security, and performance.

*12. What is the difference between Import and DirectQuery?*
Import and DirectQuery are two major ways Power BI can connect to data.

*Import Mode*
Power BI loads a copy of the data into its in-memory analytical engine.
*Advantages:* Generally faster report performance, Rich DAX capabilities, Data can be compressed efficiently, Good for interactive reports
*Disadvantages:* Data needs to be refreshed, Model size and refresh limitations apply

*DirectQuery*
Power BI does not import the underlying data into the model in the same way. Instead, queries are sent to the underlying source when users interact with the report.
*Advantages:* Useful for very large datasets, Can provide more up-to-date data, Data remains primarily in the source system
*Disadvantages:* Performance depends heavily on the source, More limitations than Import mode, Poorly optimized source queries can make reports slow

*Simple comparison:*
Import → Faster analytics, periodic refresh
DirectQuery → Query the source when needed, potentially fresher data

*13. What is a Live Connection?*
A Live Connection allows Power BI to connect to an existing semantic model or Analysis Services model rather than building a new local copy of the underlying model.

*For example:* an organization may have a centrally managed enterprise semantic model containing Customers, Products, Sales, Measures, Business rules. Multiple reports can connect to that centralized model.

*Benefits:* Centralized business logic, Consistent calculations, Better governance, Reduced duplication

*Example:*
If the finance team has an approved enterprise semantic model containing the official Revenue measure, different reports can use that same definition instead of creating their own versions.

*14. What is a Composite Model?*
A Composite Model allows a Power BI model to use a combination of storage modes and data sources.

*For example:* a model could contain Imported sales data + DirectQuery data from a database.
This gives developers flexibility when designing larger solutions.

*Example:* Historical sales data could be imported for fast analysis, while more current operational data could remain in DirectQuery.

*Why use it?*
Composite models are useful when you need to balance: Performance, Data freshness, Data volume, Source-system requirements

*Interview Tip:*
Don't say that Composite Models simply mean "multiple data sources." The important concept is that they allow different storage modes and sources to coexist within a model.

*15. When would you choose Import over DirectQuery?*
*Import is generally preferred when:*
- The dataset can be loaded within your environment's limits.
- Data does not need to be instantly up to date.
- Fast report performance is important.
- You can use scheduled or triggered refreshes.
- You want the broadest modeling and DAX capabilities available.

*Example:* A monthly management dashboard containing five years of sales data does not necessarily need second-by-second updates. Import would usually be a strong choice.

*When DirectQuery may be better:*
If users need to analyze rapidly changing operational data and the source can handle the query workload.

*Interview Answer:*
"I would normally prefer Import for performance and modeling flexibility, but I would evaluate DirectQuery when data volume, freshness, governance, or source-system requirements make importing inappropriate."

*16. What are the limitations of DirectQuery?*
*Key limitations:*
1. Report performance depends heavily on the underlying data source.
2. Every interaction can generate queries against the source.
3. Complex transformations may be more difficult or have restrictions.
4. Some modeling and DAX capabilities have additional limitations depending on the scenario.
5. Poorly designed source tables or queries can result in slow reports.
6. The source database must be able to handle the additional query workload.

*Example:* If a dashboard contains 20 visuals and users frequently change slicers, the underlying database may receive many queries. The source needs to be properly optimized.

*Interview Tip:*
Don't simply say "DirectQuery is slow." A better answer is: "DirectQuery performance depends heavily on the underlying source, query design, network, and model. A well-optimized source can perform well, while a poorly designed source can cause significant latency."

*17. How do you connect Power BI to SQL Server?*
*Step 1:* Open Power BI Desktop.
*Step 2:* Select Home → Get Data → SQL Server
*Step 3:* Enter Server name, Database name if applicable
*Step 4:* Choose the appropriate connectivity mode, such as Import or DirectQuery
*Step 5:* Authenticate using the required credentials
*Step 6:* Select the required tables or views
*Step 7:* Choose Load to load the data directly, or Transform Data to clean it using Power Query

*Best Practice:* Whenever possible, use well-designed database tables or views and retrieve only the columns and rows required for the analysis.

*18. How do you connect Power BI to Excel?*
*Steps:*
1. Open Power BI Desktop.
2. Select Home → Get Data → Excel Workbook.
3. Select the Excel file.
4. Choose the required worksheets or tables.
5. Click Transform Data if cleaning is required.
6. Load the data into Power BI.

*Example:* An organization may have an Excel file containing Employee ID, Department, Salary, Joining Date. Power BI can transform this data and create an HR dashboard.

*Best Practice:* Convert structured Excel data into an Excel Table before connecting it to Power BI.

*19. How do you connect Power BI to an API?*
Power BI can connect to web-based data sources through Power Query.

*Typical process:*
1. Obtain the API endpoint.
2. Connect using the appropriate Power Query connector or web functionality.
3. Authenticate if required.
4. Retrieve the response.
5. Convert JSON or other returned structures into tables.
6. Transform the data.
7. Load it into the model.

*Example:* A company could use an API to retrieve Exchange rates, Marketing data, Weather data, Application data, Operational metrics

*Important consideration:* APIs often have Authentication requirements, Rate limits, Pagination, Refresh restrictions. A professional Power BI developer should understand these before building an automated solution.

*20. What is an On-Premises Data Gateway?*
The On-premises Data Gateway acts as a bridge between Power BI Service and data sources that are not directly accessible from the cloud.

*Example:*
On-Premises SQL Server → Data Gateway → Power BI Service → Power BI Report

*Why is it needed?*
Suppose a company stores its SQL Server database inside its internal network. Power BI Service needs a secure mechanism to communicate with that source for activities such as refreshing data.

*Common use cases:* Scheduled refresh, DirectQuery scenarios, On-premises SQL Server, Other supported on-premises sources

*Important point:* The gateway is not a database. It is a connectivity bridge.

*Interview Tip:*
"The On-premises Data Gateway provides a secure bridge between Power BI Service and supported on-premises data sources, enabling scenarios such as scheduled refresh and DirectQuery."

*🚀 Double Tap ❤️ For More*

Double Tap ❤️ For More SQL Notes
15/08/2026

Double Tap ❤️ For More SQL Notes

Double Tap ❤️ For More SQL Notes
15/08/2026

Double Tap ❤️ For More SQL Notes

15/08/2026

𝗜𝗻𝘁𝗲𝗿𝘃𝗶𝗲𝘄𝗲𝗿:
You have 2 minutes to solve this Excel problem.

You have the following data:

Employee Department Salary

John IT 75,000
Sarah HR 60,000
Mike IT 82,000
David Finance 90,000
Alice HR 65,000

Find the employees whose salary is above the average salary of their department.

𝗠𝗲: Challenge accepted! 💪

=C2>AVERAGEIF($B$2:$B$6,B2,$C$2:$C$6)

💡 *Explanation:*

The formula compares each employee's salary with the average salary of their own department.

- AVERAGEIF() calculates the average salary for the employee's department.
- B2 identifies the current employee's department.
- C2 is the employee's salary.

The formula returns TRUE when the employee earns more than their department average.

🎯 *Expected Output Example*

Employee Department Salary Above Dept. Average?

John IT 75,000 FALSE
Sarah HR 60,000 FALSE
Mike IT 82,000 TRUE
David Finance 90,000 FALSE
Alice HR 65,000 TRUE

🚀 *Bonus — Return the Employee Name Only*

In Excel 365:

=FILTER(
A2:A6,
C2:C6>AVERAGEIF(B2:B6,B2:B6,C2:C6)
)

This returns the employees whose salaries are above their respective department averages.

❤️ *React with ❤️ for more Excel interview challenges!*

Jai Hind 🇮🇳
15/08/2026

Jai Hind 🇮🇳

15/08/2026

*🐍🤖 PYTHON FOR AI DEVELOPMENT*

If you want to become an AI Developer, Python should be one of your strongest foundations.

But you don't need to learn _every_ Python concept or library.
You need to learn the parts of Python that you'll actually use to *BUILD AI applications*.

Here's the roadmap 👇

*📌 1. Python Fundamentals*
Start here:
→ Variables & Data Types
→ Strings
→ Lists
→ Tuples
→ Sets
→ Dictionaries
→ Operators
→ if / elif / else
→ for & while loops
→ Functions
→ Lambda Functions
→ List Comprehensions

*🎯 Goal:* Write basic Python programs confidently.

*📌 2. Intermediate Python*
→ OOP
→ Exception Handling
→ File Handling
→ Modules & Packages
→ pip
→ Virtual Environments
→ Iterators
→ Generators
→ Decorators
→ Context Managers
→ Type Hints

*🎯 Goal:* Write clean and reusable Python code.

*📌 3. Python for Data*
→ NumPy
→ Pandas
→ DataFrames
→ Data Cleaning
→ Data Transformation
→ CSV
→ JSON
→ Data Visualization

*🎯 Goal:* Load, process and prepare data for AI systems.

*📌 4. Python for APIs*
→ HTTP basics
→ REST APIs
→ GET / POST requests
→ JSON
→ API Keys
→ Authentication
→ Environment Variables
→ Requests
→ Error Handling
→ Async API calls

*🎯 Goal:* Connect Python applications with AI models and external services.

*📌 5. Python for Machine Learning*
→ Scikit-learn
→ Data Preprocessing
→ Feature Engineering
→ Train/Test Split
→ Regression
→ Classification
→ Clustering
→ Model Evaluation
→ Hyperparameter Tuning

*🎯 Goal:* Understand the ML foundation behind AI.

*📌 6. Python for LLM Development*
→ LLM APIs
→ Prompts
→ Prompt Templates
→ Tokens
→ Streaming
→ Structured Outputs
→ Function Calling
→ Tool Calling

*🎯 Goal:* Build applications powered by LLMs.

*📌 7. Python + Embeddings*
→ Embeddings
→ Embedding Models
→ Vector Representations
→ Cosine Similarity
→ Semantic Search

*🎯 Goal:* Make applications capable of finding information based on meaning.

*📌 8. Python + RAG*
Documents → Python → Chunking → Embeddings → Vector Database → Retrieval → LLM → Response
→ Document Loading
→ Chunking
→ Embeddings
→ Vector Databases
→ Retrieval
→ Re-ranking
→ Metadata Filtering
→ RAG Evaluation

*🎯 Project:* Build a Chat with PDF application.

*📌 9. Python + AI Agents*
→ Agents
→ Tools
→ Function Calling
→ Memory
→ Planning
→ Agent Workflows
→ Human-in-the-loop
→ Multi-Agent Systems

*🎯 Project:* Build an AI Research Agent.

*📌 10. Python Backend Development*
→ FastAPI
→ REST APIs
→ Authentication
→ Async Python
→ Databases
→ WebSockets
→ API Security

*🎯 Goal:* Build production-ready AI backends.

*📌 11. Python Libraries to Know*
🐍 *NumPy* → Numerical Computing
🐼 *Pandas* → Data Processing
🤖 *Scikit-learn* → Machine Learning
🔥 *PyTorch* → Deep Learning
🌐 *FastAPI* → AI Backend APIs
🔗 *LangChain* → LLM Applications
🧩 *LangGraph* → Agentic Workflows
📚 *LlamaIndex* → Data & RAG Applications

*📌 12. Build Projects*
Python Basics → Data Processing → APIs → Machine Learning → LLMs → RAG → AI Agents → FastAPI → Docker → Cloud → Production AI Application

*❤️ Double tap for more*

Address

Delhi
110096

Alerts

Be the first to know and let us send you an email when Coding with Kaps posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Shortcuts

Share

Category