Data Analytics
110K subscribers
189 photos
2 files
904 links
Perfect channel to learn Data Analytics

Learn SQL, Python, Alteryx, Tableau, Power BI and many more

For Promotions: @coderfun @love_data
Download Telegram
Scenario based  Interview Questions & Answers for Data Analyst

1. Scenario: You are working on a SQL database that stores customer information. The database has a table called "Orders" that contains order details. Your task is to write a SQL query to retrieve the total number of orders placed by each customer.
  Question:
  - Write a SQL query to find the total number of orders placed by each customer.
Expected Answer:
    SELECT CustomerID, COUNT(*) AS TotalOrders
    FROM Orders
    GROUP BY CustomerID;

2. Scenario: You are working on a SQL database that stores employee information. The database has a table called "Employees" that contains employee details. Your task is to write a SQL query to retrieve the names of all employees who have been with the company for more than 5 years.
  Question:
  - Write a SQL query to find the names of employees who have been with the company for more than 5 years.
Expected Answer:
    SELECT Name
    FROM Employees
    WHERE DATEDIFF(year, HireDate, GETDATE()) > 5;

Power BI Scenario-Based Questions

1. Scenario: You have been given a dataset in Power BI that contains sales data for a company. Your task is to create a report that shows the total sales by product category and region.
    Expected Answer:
    - Load the dataset into Power BI.
    - Create relationships if necessary.
    - Use the "Fields" pane to select the necessary fields (Product Category, Region, Sales).
    - Drag these fields into the "Values" area of a new visualization (e.g., a table or bar chart).
    - Use the "Filters" pane to filter data as needed.
    - Format the visualization to enhance clarity and readability.

2. Scenario: You have been asked to create a Power BI dashboard that displays real-time stock prices for a set of companies. The stock prices are available through an API.
  Expected Answer:
    - Use Power BI Desktop to connect to the API.
    - Go to "Get Data" > "Web" and enter the API URL.
    - Configure the data refresh settings to ensure real-time updates (e.g., setting up a scheduled refresh or using DirectQuery if supported).
    - Create visualizations using the imported data.
    - Publish the report to the Power BI service and set up a data gateway if needed for continuous refresh.

3. Scenario: You have been given a Power BI report that contains multiple visualizations. The report is taking a long time to load and is impacting the performance of the application.
    Expected Answer:
    - Analyze the current performance using Performance Analyzer.
    - Optimize data model by reducing the number of columns and rows, and removing unnecessary calculations.
    - Use aggregated tables to pre-compute results.
    - Simplify DAX calculations.
    - Optimize visualizations by reducing the number of visuals per page and avoiding complex custom visuals.
    - Ensure proper indexing on the data source.

Free SQL Resources: https://whatsapp.com/channel/0029VanC5rODzgT6TiTGoa1v

Like if you need more similar content

Hope it helps :)
โค9
๐—”๐—œ ๐—ถ๐—ป ๐—ฃ๐—ฟ๐—ผ๐—ฑ๐˜‚๐—ฐ๐˜ ๐— ๐—ฎ๐—ป๐—ฎ๐—ด๐—ฒ๐—บ๐—ฒ๐—ป๐˜ ๐—™๐—ฅ๐—˜๐—˜ ๐—ข๐—ป๐—น๐—ถ๐—ป๐—ฒ ๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ๐—ฐ๐—น๐—ฎ๐˜€๐˜€ ๐Ÿ˜

๐Ÿ’ซ Join this live masterclass and gain practical insights into AI-powered Product Management, in-demand skills

๐Ÿ’ซRoadmap to building a successful Product Management career

Eligibility :- Recent Graduates & Working Professionals

๐—ฅ๐—ฒ๐—ด๐—ถ๐˜€๐˜๐—ฒ๐—ฟ ๐—™๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜๐Ÿ‘‡ :-

https://pdlink.in/44VeqIA

( Limited Slots ..Hurry Upโ€ )

Date & Time :- 11th July 2026 , 8:00 PM (IST)
โค3๐Ÿ‘1
๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ:
You have 2 minutes to solve this SQL query.

Q: Find the customer(s) who placed orders in every month of the year 2025.

Assume the table structure:
orders(order_id, customer_id, order_date)

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช

SELECT
customer_id
FROM orders
WHERE YEAR(order_date) = 2025
GROUP BY customer_id
HAVING COUNT(DISTINCT MONTH(order_date)) = 12;


๐Ÿ’ก Explanation:
This query identifies customers who placed at least one order in every month of 2025.

โ€ข WHERE YEAR(order_date) = 2025 filters orders from the year 2025
โ€ข GROUP BY customer_id groups all orders by customer
โ€ข COUNT(DISTINCT MONTH(order_date)) counts the unique months in which each customer placed an order
โ€ข HAVING ... = 12 ensures the customer has orders in all 12 months

This question tests your understanding of:
โœ… Date Functions (YEAR, MONTH)
โœ… GROUP BY
โœ… HAVING
โœ… COUNT(DISTINCT)

๐ŸŽฏ Expected Output Example

| Customer ID |
|-------------|
| 101 |
| 205 |

These customers placed at least one order in every month of 2025.

๐Ÿš€ Alternative (Database-Agnostic SQL)

SELECT
customer_id
FROM orders
WHERE EXTRACT(YEAR FROM order_date) = 2025
GROUP BY customer_id
HAVING COUNT(DISTINCT EXTRACT(MONTH FROM order_date)) = 12;


This version works with databases like PostgreSQL and Oracle that support the EXTRACT() function.

๐Ÿš€ Tip for SQL Job Seekers:
Whenever you see interview questions containing phrases like:
"Every month" / "Every quarter" / "Every year" / "Every category"

Think of COUNT(DISTINCT ...) combined with GROUP BY and HAVING. This is a very common SQL interview pattern.

โค๏ธ React with โค๏ธ for more interview challenges!
โค15
๐— ๐—ถ๐—ฐ๐—ฟ๐—ผ๐˜€๐—ผ๐—ณ๐˜ ๐—™๐—ฅ๐—˜๐—˜ ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป๐—ถ๐—ป๐—ด ๐—ฅ๐—ฒ๐˜€๐—ผ๐˜‚๐—ฟ๐—ฐ๐—ฒ๐˜€๐ŸŽ“

Offers a wide range of free learning resources through Microsoft Learn, helping students, freshers, and professionals build job-ready skills at their own pace.

โœ… 100% FREE self-paced learning modules
โœ… Official learning platform from Microsoft

๐Ÿ”— ๐—˜๐—ป๐—ฟ๐—ผ๐—น๐—น ๐—™๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜๐Ÿ‘‡:

https://pdlink.in/4paqRJS

Explore Microsoftโ€™s free resources. Build in-demand skills and make your profile stronger.
๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ: 
You have 2 minutes to solve this SQL query.

Q: Find the employee(s) who received the highest salary increment compared to their previous salary.

Assume the table structure: 
salary_history(employee_id, salary, effective_date)

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช

WITH salary_changes AS (
    SELECT
        employee_id,
        salary,
        effective_date,
        salary - LAG(salary) OVER (
            PARTITION BY employee_id
            ORDER BY effective_date
        ) AS salary_increment
    FROM salary_history
)
SELECT
    employee_id,
    salary_increment
FROM (
    SELECT
        employee_id,
        salary_increment,
        DENSE_RANK() OVER (
            ORDER BY salary_increment DESC
        ) AS rnk
    FROM salary_changes
    WHERE salary_increment IS NOT NULL
) ranked
WHERE rnk = 1;


๐Ÿ’ก Explanation: 
This query calculates each employee's salary increment and then finds the highest increment across all employees.

โ€ข LAG(salary) retrieves the employee's previous salary
โ€ข The difference between the current and previous salary gives the increment
โ€ข DENSE_RANK() ranks increments from highest to lowest
โ€ข The outer query returns all employees tied for the highest salary increment

This question tests your understanding of: 
โœ… LAG() Window Function 
โœ… Common Table Expressions (CTEs) 
โœ… DENSE_RANK() 
โœ… Time-Series Data Analysis

๐ŸŽฏ Expected Output Example

Employee ID | Salary Increment 
101 | 20,000 
205 | 20,000 

Both employees received the largest salary increase.

๐Ÿš€ Why Interviewers Ask This? 
This is a classic window function interview question. It evaluates your ability to compare a row with its previous rowโ€”a common requirement in payroll, finance, and audit systems.

๐Ÿš€ Tip for SQL Job Seekers: 
Master these analytical window functions: 
LAG() / LEAD() / FIRST_VALUE() / LAST_VALUE() / NTILE() 

These functions are frequently tested in product-based companies and data-focused interviews because they simplify complex row-by-row comparisons.

โค๏ธ React with โค๏ธ for more interview challenges!
โค13
๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ง๐—ต๐—ฒ๐˜€๐—ฒ ๐—›๐—ถ๐—ด๐—ต-๐——๐—ฒ๐—บ๐—ฎ๐—ป๐—ฑ ๐—ฆ๐—ธ๐—ถ๐—น๐—น๐˜€ ๐˜๐—ผ ๐—Ÿ๐—ฎ๐—ป๐—ฑ ๐—›๐—ถ๐—ด๐—ต-๐—ฃ๐—ฎ๐˜†๐—ถ๐—ป๐—ด ๐—๐—ผ๐—ฏ๐˜€ ๐Ÿ”ฅ

This guide highlights 3 powerful skills that are opening doors to high-paying roles across tech and business .๐ŸŽ“

Perfect For
๐Ÿ‘จโ€๐ŸŽ“ Students
๐Ÿ’ผ Freshers
๐Ÿ“ˆ Job seekers trying to improve employability
๐Ÿš€ Anyone who wants to build a future-proof career with better salary potential

๐Ÿ”— ๐—˜๐—ป๐—ฟ๐—ผ๐—น๐—น ๐—™๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜๐Ÿ‘‡:

https://pdlink.in/4vXeGmm

๐Ÿš€ Start learning today. Build in-demand skills. Position yourself for better opportunities and bigger career growth.
โค4๐Ÿ‘1
๐Ÿš€ Essential Tools Every Data Analyst Should Know

If you're starting your journey as a Data Analyst, focus on these essential tools first. These are the tools most commonly required in job descriptions and used in day-to-day work.

๐Ÿ“Š 1. Microsoft Excel

Used For:

Data Cleaning

Formulas & Functions

Pivot Tables

Dashboards

๐Ÿ—„๏ธ 2. SQL

Used For:

Querying Databases

Data Extraction

Data Analysis

Reporting

๐Ÿ“ˆ 3. Power BI

Used For:

Interactive Dashboards

Data Visualization

Business Intelligence

KPI Reporting

๐Ÿ“Š 4. Tableau

Used For:

Data Visualization

Dashboard Creation

Business Reporting

๐Ÿ 5. Python

Used For:

Data Cleaning

Automation

Data Analysis

Data Visualization

๐Ÿ”„ 6. Power Query

Used For:

Data Transformation

Data Cleaning

ETL Processes

๐Ÿš€ Double Tap โค๏ธ For More
โค23
๐ŸŽ“ ๐—ง๐—ผ๐—ฝ ๐—–๐—ผ๐—บ๐—ฝ๐—ฎ๐—ป๐—ถ๐—ฒ๐˜€ ๐—ข๐—ณ๐—ณ๐—ฒ๐—ฟ๐—ถ๐—ป๐—ด ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐˜€ ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ

Boost your resume with Industry-recognized certifications without spending a single rupee ๐ŸŒŸ

๐Ÿ“š Available from:
โœ… Google
โœ… Microsoft
โœ… Cisco
โœ… IBM
โœ… HP
โœ… Qualcomm
โœ… TCS
โœ… Infosys

๐Ÿ”— ๐—˜๐—ป๐—ฟ๐—ผ๐—น๐—น ๐—™๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜๐Ÿ‘‡:

https://pdlink.in/3SNiXKz

๐Ÿš€ Don't miss these FREE certification opportunities in 2026!
โค4
๐Ÿš€ ๐—ฃ๐—ฎ๐˜† ๐—”๐—ณ๐˜๐—ฒ๐—ฟ ๐—ฃ๐—น๐—ฎ๐—ฐ๐—ฒ๐—บ๐—ฒ๐—ป๐˜ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ - ๐—Ÿ๐—ฎ๐˜‚๐—ป๐—ฐ๐—ต ๐—ฌ๐—ผ๐˜‚๐—ฟ ๐—ง๐—ฒ๐—ฐ๐—ต ๐—–๐—ฎ๐—ฟ๐—ฒ๐—ฒ๐—ฟ

If youโ€™re serious about starting your career in tech, this is one opportunity you shouldnโ€™t miss ๐Ÿš€

โœ… 2000+ Students Already Placed
๐Ÿค 500+ Hiring Partners
๐Ÿ’ผ Salary: โ‚น7.4 LPA
๐Ÿš€ Highest Package: โ‚น41 LPA

๐Ÿ’ป Get trained in in-demand tech skills
๐Ÿ‘จโ€๐Ÿซ Learn from industry experts
๐Ÿ“ˆ Get dedicated placement support
๐Ÿ’ธ Pay only after you land a job

๐‘๐ž๐ ๐ข๐ฌ๐ญ๐ž๐ซ ๐๐จ๐ฐ ๐Ÿ‘‡:-

 https://pdlink.in/42WOE5H

Hurry! Limited seats are available.๐Ÿƒโ€โ™‚๏ธ
๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ: 
You have 2 minutes to solve this SQL query. 
Find the employee(s) who have worked on the highest number of distinct projects. 

Assume the table structure: employee_projects(employee_id, project_id)

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช

SELECT
    employee_id,
    total_projects
FROM (
    SELECT
        employee_id,
        COUNT(DISTINCT project_id) AS total_projects,
        DENSE_RANK() OVER (
            ORDER BY COUNT(DISTINCT project_id) DESC
        ) AS rnk
    FROM employee_projects
    GROUP BY employee_id
) ranked
WHERE rnk = 1;


๐Ÿ’ก Explanation: 
This query counts the number of unique projects each employee has worked on and identifies those with the highest count.

โ€ข COUNT(DISTINCT project_id) counts unique projects for each employee
โ€ข GROUP BY employee_id creates one record per employee
โ€ข DENSE_RANK() ranks employees based on the number of projects
โ€ข The outer query returns all employees tied for the highest number of projects

This question tests your understanding of: 
โœ… COUNT(DISTINCT) 
โœ… GROUP BY 
โœ… Window Functions DENSE_RANK 
โœ… Ranking Aggregated Results 

๐ŸŽฏ Expected Output Example 
Employee ID | Total Projects 
101 | 12 
205 | 12 

Both employees have worked on the highest number of distinct projects.

๐Ÿš€ Alternative Without Window Functions

SELECT
    employee_id,
    COUNT(DISTINCT project_id) AS total_projects
FROM employee_projects
GROUP BY employee_id
HAVING COUNT(DISTINCT project_id) = (
    SELECT MAX(project_count)
    FROM (
        SELECT
            COUNT(DISTINCT project_id) AS project_count
        FROM employee_projects
        GROUP BY employee_id
    ) t
);


This solution uses nested subqueries and MAX() instead of window functions.

๐Ÿš€ Tip for SQL Job Seekers: 
Many interview questions involve ranking aggregated results, such as: 
Highest number of projects, Most orders, Maximum sales, Highest attendance, Most logins 

Practice combining GROUP BY with window functions like DENSE_RANK() to solve these efficiently.

โค๏ธ React with โค๏ธ for more interview challenges!
โค12๐Ÿ‘2
๐Ÿš€ ๐—ง๐—ผ๐—ฝ ๐Ÿฑ ๐—ฆ๐—ธ๐—ถ๐—น๐—น๐˜€ ๐—ง๐—ผ ๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—œ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ โ€“ ๐—˜๐—ป๐—ฟ๐—ผ๐—น๐—น ๐—™๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜! ๐ŸŽ“

Want to build a high-paying, future-ready career? ๐Ÿ”ฅ Start learning the most in-demand skills:

๐Ÿ’ซ AI & ML :- https://pdlink.in/4phANS2
โ€‹
๐Ÿ“Š Data Analytics :- https://pdlink.in/4wh2ugB
โ€‹
๐Ÿ” Cyber Security :- https://pdlink.in/4wCW7DJ
โ€‹
โ˜๏ธ Cloud Computing :- https://pdlink.in/4yhBuie
โ€‹
๐Ÿ’ป Other Tech Skills :- https://pdlink.in/4peUslB
โ€‹
๐Ÿ“ข Share with your friends & college groups! ๐Ÿš€๐Ÿ”ฅ
โค4
๐Ÿš€ Power BI Interview Challenge #1 ๐Ÿ”ฅ

๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ:
You have 2 minutes to solve this Power BI problem.

You have a Sales table with the following columns:
Order Date
Sales

Create a DAX measure to calculate Year-to-Date (YTD) Sales.

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช

YTD Sales =
TOTALYTD(
SUM(Sales[Sales]),
Sales[Order Date]
)

๐Ÿ’ก Explanation:
TOTALYTD() calculates the cumulative sales from the beginning of the year up to the current date.
โ€ข SUM(Sales) returns the total sales amount
โ€ข Sales[Order Date] is the date column used for the YTD calculation
โ€ข The measure automatically resets at the start of each new year[Sales]

๐ŸŽฏ Expected Output Example
Month | Sales | YTD Sales
--- | --- | ---
Jan | 10,000 | 10,000
Feb | 15,000 | 25,000
Mar | 12,000 | 37,000
Apr | 18,000 | 55,000

๐Ÿš€ Bonus (Using a Calendar Table)
YTD Sales =
TOTALYTD(
[Total Sales],
'Calendar'[Date]
)

Using a dedicated Calendar/Date table is considered a Power BI best practice and is recommended for all time intelligence calculations.

๐Ÿš€ Tip for Power BI Job Seekers:
Time Intelligence is one of the most frequently tested topics in Power BI interviews. Make sure you can confidently write measures for:
โ€ข YTD (Year-to-Date)
โ€ข MTD (Month-to-Date)
โ€ข QTD (Quarter-to-Date)
โ€ข Previous Year Sales
โ€ข YoY Growth %
โ€ข Rolling 12 Months

These are commonly used in business dashboards and technical interviews.

Power BI Resources: https://whatsapp.com/channel/0029Vai1xKf1dAvuk6s1v22c

โค๏ธ React with โค๏ธ for more Power BI interview challenges!
โค14
๐Ÿš€ ๐—™๐—ฅ๐—˜๐—˜ ๐— ๐—ถ๐—ฐ๐—ฟ๐—ผ๐˜€๐—ผ๐—ณ๐˜ ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐˜€ ๐Ÿ’ป๐Ÿ”ฅ

These FREE courses can help you learn Data Analytics, Power BI & Excel skills that companies actually hire for ๐Ÿš€

โœจ What youโ€™ll learn:
โœ” Excel + Power BI ๐Ÿ“Š
โœ” Data Cleaning with Power Query
โœ” Interactive Dashboards
โœ” Modern Analytics Skills

๐Ÿ’ฏ Beginner Friendly + FREE Learning

๐—˜๐—ป๐—ฟ๐—ผ๐—น๐—น ๐—™๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜๐Ÿ‘‡:-

https://pdlink.in/4tkPNyM

๐ŸŽ“ Perfect for Students, Freshers & Career Switchers
โค2
๐Ÿš€ Power BI Interview Challenge #2 ๐Ÿ”ฅ

๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ:
You have 2 minutes to solve this Power BI problem.

You have a Sales table with the columns: Order Date & Sales

Create a DAX measure to calculate Month-to-Date (MTD) Sales.

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช
MTD Sales =
TOTALMTD(
SUM(Sales[Sales]),
Sales[Order Date]
)

๐Ÿ’ก Explanation:
โ€ข TOTALMTD() calculates cumulative sales from the beginning of the current month up to the selected date.
โ€ข SUM(Sales) returns the total sales amount.
โ€ข Sales[Order Date] is the date column used for the MTD calculation.
โ€ข The measure automatically resets at the beginning of each new month.

๐ŸŽฏ Expected Output Example
Date | Sales | MTD Sales
Jul 1 | 2,000 | 2,000
Jul 2 | 3,500 | 5,500
Jul 3 | 1,500 | 7,000
Jul 4 | 4,000 | 11,000

๐Ÿš€ Bonus (Using a Calendar Table)
MTD Sales =
TOTALMTD(
[Total Sales],
'Calendar'[Date]
)

Using a dedicated Calendar table improves model performance and ensures accurate time intelligence calculations.

๐Ÿš€ Tip for Power BI Job Seekers:
Always create a proper Date Table and mark it as a Date Table in Power BI before using Time Intelligence functions. Many interview questions are designed to test this best practice.

Power BI Resources: https://whatsapp.com/channel/0029Vai1xKf1dAvuk6s1v22c

โค๏ธ React with โค๏ธ for more Power BI interview challenges!
โค8
๐——๐—ฎ๐˜๐—ฎ ๐—ฆ๐—ฐ๐—ถ๐—ฒ๐—ป๐—ฐ๐—ฒ ๐—™๐—ฅ๐—˜๐—˜ ๐—ข๐—ป๐—น๐—ถ๐—ป๐—ฒ ๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ๐—ฐ๐—น๐—ฎ๐˜€๐˜€ ๐Ÿ˜

๐Ÿ’ซ Know The Tools, Skills & Mindset to Land your first Job
โ€‹
๐Ÿ’ซUnderstand the Foundations, tools, skills & the core essentials that you need to excel in the Data Science domain.

Eligibility :- Students ,Freshers & Working Professionals

๐—ฅ๐—ฒ๐—ด๐—ถ๐˜€๐˜๐—ฒ๐—ฟ ๐—™๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜๐Ÿ‘‡ :-

https://pdlink.in/4btjs2G

( Limited Slots ..Hurry Upโ€ )

Date & Time :- 17th July 2026 , 7:00 PM
โค2
๐Ÿš€ ๐Ÿฒ ๐— ๐˜‚๐˜€๐˜-๐—ง๐—ฎ๐—ธ๐—ฒ ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐˜€ ๐—ง๐—ผ ๐—จ๐—ฝ๐—ด๐—ฟ๐—ฎ๐—ฑ๐—ฒ ๐—ฌ๐—ผ๐˜‚๐—ฟ ๐—ฅ๐—ฒ๐˜€๐˜‚๐—บ๐—ฒ ๐—™๐—ข๐—ฅ ๐—™๐—ฅ๐—˜๐—˜

Make your resume stand out to recruiters without spending a single rupee

โœ… 100% FREE Learning
โœ… Free Certificates
โœ… Beginner-Friendly
โœ… Self-Paced Learning
โœ… Resume & LinkedIn Boost
โœ… Industry-Relevant Skills

๐—˜๐—ป๐—ฟ๐—ผ๐—น๐—น ๐—™๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜๐Ÿ‘‡:-

https://pdlink.in/3Rmbzp1

๐Ÿš€ Learn for Free. Get Certified. Upgrade Your Resume. Land Your Dream Job!
โค2
๐Ÿš€ Power BI Interview Challenge #3 ๐Ÿ”ฅ

๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ:
You have 2 minutes to solve this Power BI problem.

You have a Sales table with the following columns:

โ€ข Order Date
โ€ข Sales

Create a DAX measure to calculate Year-over-Year (YoY) Sales Growth %.

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช

YoY Growth % =
VAR CurrentYearSales = [Total Sales]
VAR PreviousYearSales =
CALCULATE(
[Total Sales],
SAMEPERIODLASTYEAR('Calendar'[Date])
)
RETURN
DIVIDE(
CurrentYearSales - PreviousYearSales,
PreviousYearSales,
0
)


๐Ÿ’ก Explanation:

This measure calculates the percentage growth in sales compared to the same period in the previous year.

โ€ข CurrentYearSales stores the current period's sales.
โ€ข SAMEPERIODLASTYEAR() retrieves sales for the same period last year.
โ€ข DIVIDE() safely calculates the percentage growth and avoids divide-by-zero errors.

This challenge tests your understanding of:
โœ… Variables (VAR)
โœ… CALCULATE()
โœ… SAMEPERIODLASTYEAR()
โœ… DIVIDE()
โœ… Time Intelligence

๐ŸŽฏ Expected Output Example

For Year 2025: Sales = 120,000, Previous Year Sales = 100,000, YoY Growth % = 20%
For Year 2026: Sales = 150,000, Previous Year Sales = 120,000, YoY Growth % = 25%

๐Ÿš€ Bonus (YoY Sales Difference)

YoY Sales Difference =
[Total Sales] -
CALCULATE(
[Total Sales],
SAMEPERIODLASTYEAR('Calendar'[Date])
)


This measure returns the absolute increase or decrease in sales compared to the previous year.

๐Ÿš€ Tip for Power BI Job Seekers:

CALCULATE() is the most important DAX function. Learn how it modifies the filter context because it's used in almost every advanced Power BI interview question.

Power BI Resources: https://whatsapp.com/channel/0029Vai1xKf1dAvuk6s1v22c

โค๏ธ React with โค๏ธ for more Power BI interview challenges!
โค8
๐—”๐—œ & ๐——๐—ฎ๐˜๐—ฎ ๐—ฆ๐—ฐ๐—ถ๐—ฒ๐—ป๐—ฐ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ (๐—ก๐—ผ ๐—–๐—ผ๐—ฑ๐—ถ๐—ป๐—ด ๐—ก๐—ฒ๐—ฒ๐—ฑ๐—ฒ๐—ฑ)

Apply Now๐Ÿ‘‰:- https://pdlink.in/4aYWald

By E&ICT Academy, IIT Roorkee

Batch Closing Soon - 18th July 2026
โค2
๐Ÿš€ Power BI Interview Challenge #4 ๐Ÿ”ฅ

๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ:
You have 2 minutes to solve this Power BI problem.

You have a Sales table with the following columns:
Product
Sales

Create a DAX measure to calculate the percentage contribution of each product to total sales.

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช

Sales Contribution % =
DIVIDE(
[Total Sales],
CALCULATE(
[Total Sales],
ALL(Sales[Product])
),
0
)

๐Ÿ’ก Explanation:
This measure calculates how much each product contributes to the total sales.
โ€ข [Total Sales] returns the sales for the current product.
โ€ข ALL(Sales) removes the product filter while keeping other filters intact.
โ€ข CALCULATE() recalculates the total sales after removing the product filter.
โ€ข DIVIDE() safely performs the division and avoids divide-by-zero errors.

This challenge tests your understanding of:
โœ… CALCULATE()
โœ… ALL()
โœ… DIVIDE()
โœ… Filter Context
โœ… Percentage Calculations

๐ŸŽฏ Expected Output Example
Product | Sales | Sales Contribution %
Laptop | 50,000 | 50%
Mouse | 20,000 | 20%
Keyboard | 15,000 | 15%
Monitor | 15,000 | 15%

๐Ÿš€ Bonus (Dynamic Percentage by Selected Filters)

Sales Contribution % =
DIVIDE(
[Total Sales],
CALCULATE(
[Total Sales],
ALLSELECTED(Sales[Product])
),
0
)

Using ALLSELECTED() respects slicers and page filters while removing only the product filter, making the measure more interactive.

๐Ÿš€ Tip for Power BI Job Seekers:
Understanding the difference between these functions is crucial for interviews:
โ€ข ALL() โ†’ Removes all filters from the specified column or table.
โ€ข ALLSELECTED() โ†’ Respects user selections made through slicers and filters.
โ€ข REMOVEFILTERS() โ†’ Modern alternative to remove filters in many scenarios.

These are among the most frequently asked DAX concepts in Power BI interviews.

Power BI Resources: https://whatsapp.com/channel/0029Vai1xKf1dAvuk6s1v22c

โค๏ธ React with โค๏ธ for more Power BI interview challenges!
โค11
๐Ÿ“ˆ ๐——๐—ฎ๐˜๐—ฎ ๐—”๐—ป๐—ฎ๐—น๐˜†๐˜๐—ถ๐—ฐ๐˜€ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐Ÿ˜

Data Analytics is one of the most in-demand skills in todayโ€™s job market ๐Ÿ’ป

โœ… Beginner Friendly
โœ… Industry-Relevant Curriculum
โœ… Certification Included
โœ… 100% Online

๐—˜๐—ป๐—ฟ๐—ผ๐—น๐—น ๐—™๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜๐Ÿ‘‡:- 

https://pdlink.in/4wh2ugB

๐ŸŽฏ Donโ€™t miss this opportunity to build high-demand skills!
๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ:

You have 2 minutes to solve this Power BI problem.

You have a Sales table with the following columns:

Product

Sales

Create a DAX measure to rank products based on total sales, with the highest-selling product ranked as 1.

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช

Product Rank =
RANKX(
ALL(Sales[Product]),
[Total Sales],
,
DESC,
DENSE
)


๐Ÿ’ก Explanation:

โ€ข RANKX() assigns a rank to each product based on its total sales.

โ€ข ALL(Sales) removes the product filter so all products are included in the ranking.

โ€ข [Total Sales] is the expression used for ranking.

โ€ข DESC ranks the highest sales as Rank 1.

โ€ข DENSE ensures there are no gaps in ranking when products have the same sales.[Product]

This challenge tests your understanding of: โœ… RANKX()

โœ… ALL()

โœ… Ranking in DAX

โœ… Filter Context

๐ŸŽฏ Expected Output Example

Product: Laptop | Sales: 75,000 | Rank: 1

Product: Mobile | Sales: 68,000 | Rank: 2

Product: Monitor | Sales: 52,000 | Rank: 3

Product: Keyboard | Sales: 52,000 | Rank: 3

Product: Mouse | Sales: 40,000 | Rank: 4

๐Ÿš€ Bonus (Rank Within Selected Filters)

Product Rank =
RANKX(
ALLSELECTED(Sales[Product]),
[Total Sales],
,
DESC,
DENSE
)


Using ALLSELECTED() makes the ranking dynamic by considering the products visible after slicers and filters are applied.

๐Ÿš€ Tip for Power BI Job Seekers:

RANKX() is one of the most frequently asked DAX functions. Be comfortable using it for:

โ€ข Top N Products

โ€ข Customer Ranking

โ€ข Employee Performance Ranking

โ€ข Regional Sales Ranking

โ€ข Dynamic Leaderboards

React with โค๏ธ for more Power BI interview challenges!
โค11