Data Analyst question bank
552 questions. Filter by level and skill, track what you've solved, and see how many people get each one right.
- WHERE vs HAVING
- Mean or median for salaries
- Which join keeps all customers
- COUNT(*) vs COUNT(column)
- Best chart for a trend
- What a pivot table does
- Finding NULL values
- Correlation and causation
- COUNT(DISTINCT) with NULLs
- Rows from an INNER JOIN
- UNION vs UNION ALL
- AVG with a NULL value
- Bucketing with CASE WHEN
- Dividing two integers in SQL
- Why this GROUP BY fails
- Does BETWEEN include the ends
- Matching text with LIKE
- Top seller with ORDER BY and LIMIT
- Absolute references in Excel
- VLOOKUP returns wrong prices
- SUMIFS with two conditions
- Median of an even-sized list
- Percent change up and down
- Percentage points vs percent
- Calculating monthly churn
- Overall funnel conversion
- Chart for 12 product categories
- Lost leading zeros in IDs
- Counting missing values in pandas
- Total sales per city in pandas
- Type of a 1 to 5 rating
- Dimensions vs measures
- Which set has more spread
- What a primary key guarantees
- Ad spend against sales by city
- Ranking 15 products with long names
- Busy hours across the week
- Explaining a profit change
- Showing sign-up drop-off
- A KPI number with no context
- Twelve lines on one chart
- Spread of delivery times
- Sales by category and sub-category
- Why avoid a 3D pie
- Matching lines to a legend
- A better chart title
- Order of bars for 10 branches
- Making one region stand out
- Number format for an Indian audience
- Power Query or DAX for cleaning
- Months in alphabetical order
- Why build a date table
- What a slicer does
- From a store bar to store details
- Margin % when sales is zero
- Refreshing from an office SQL Server
- Each manager sees only their region
- Blue and green pills in Tableau
- Live connection or extract
- Letting users try a discount rate
- Clicking a map to filter a table
- Bombay and Mumbai as one city
- Finding the slow visual
- A button that switches chart and table
- First question before building a dashboard
- A dashboard for a warehouse shift lead
- Where to put the main KPIs
- Are these numbers from today
- Cleaning up a busy chart
- UPI is blue here and orange there
- What the box in a box plot shows
- Box plots per city in Python
- What the F4 key does in a formula
- COUNT versus COUNTA
- What #DIV/0! means
- What causes #NAME?
- A cell full of ####
- Quick way to insert SUM
- Result of =10+5*2
- Turning a range into a Table
- Keeping headers visible while scrolling
- Copying a formula down one row
- Pass or fail with IF
- SUM ignores some numbers
- Counting orders above ₹50,000
- Finding the second-highest sale
- A date that should not change
- The 3 in a VLOOKUP
- Writing a basic XLOOKUP
- Friendly message when an ID is missing
- Cleaning extra spaces from names
- Fixing capital letters in names
- State code from a GSTIN
- Joining first and last name
- Spotting wrong mobile numbers
- Days between two dates
- Showing the weekday name
- Last day of the month
- Filling a pattern from one example
- Splitting "City, State" into two columns
- How Excel stores 12:00 noon
- Lookup on a repeated ID
- Listing only one region's rows
- A list of cities without repeats
- Sorting by sales, highest first
- What #SPILL! means
- Referring to a whole spilled list
- Highlighting overdue amounts
- A dropdown for status values
- Deleting repeated rows
- Sort by state, then by city
- Total sales per branch in a pivot
- Pivot shows old numbers
- Buttons to filter a pivot
- Chart for monthly revenue trend
- Letting users edit only input cells
- Sending numbers without formulas
- GST formula gives a huge number
- Growth from last year
- One big salary skews the average
- Ranking salespeople
- Target achievement percentage
- A running total column
- GST with many decimals
- Why PMT shows a negative EMI
- Monthly EMI needs a monthly rate
- A leading indicator for renewals
- What a north star metric is
- Gross margin from revenue and COGS
- Calculating average order value
- Computing an NPS
- DAU/MAU stickiness ratio
- Spotting a vanity metric
- Purpose of a guardrail metric
- Inventory turnover ratio
- Repeat purchase rate
- CSAT from a 1–5 survey
- Annual run rate from MRR
- Margin versus markup
- Showing 0 instead of NULL
- Full name comes out empty
- Rows from a CROSS JOIN
- DISTINCT with two columns
- Column alias in WHERE fails
- Sorting by two columns
- Window function vs GROUP BY
- An empty OVER clause
- What PARTITION BY does
- RANK values for tied scores
- Filtering on ROW_NUMBER in WHERE
- LAG on the first row
- What LEAD returns
- Each product's share of sales
- Top 3 products in each category
- Second highest salary with ties
- A 3-day moving average frame
- Salary vs department average
- Each customer's first product bought
- Team size on every employee row
- ORDER BY inside and outside OVER
- Computing PERCENT_RANK
- Computing CUME_DIST
- Highest DENSE_RANK value
- Deleting duplicate rows
- Total count beside a page of rows
- Window functions in MySQL
- Reusing a window alias
- Highest balance so far
- Rows with a NULL region
- Looking two rows ahead
- Sorting by a window value
- Revenue doubled after a join
- Latest order per customer
- Running total of sales
- What a p-value means
- Reading a cohort retention table
- Calculating conversion rate
- Filling missing income values
- Designing an executive dashboard
- LEFT JOIN that lost customers
- RANK vs DENSE_RANK after a tie
- Month-over-month change with LAG
- Share of paid orders in one query
- Customers who never ordered
- Grouping orders by month
- Counting repeat customers with a CTE
- Looking up a value to the left
- Share of sales in a pivot table
- Pivot ignores new data rows
- Same cleaning every Monday
- Measure or calculated column
- Outlier cutoff with the IQR rule
- Average price across two stores
- Reading a 95% confidence interval
- False positive in an A/B test
- Relative lift of a variant
- Rows after a pandas left merge
- Month 2 retention for a cohort
- ARPU vs ARPPU
- Bar chart that exaggerates
- Why use a 7-day moving average
- Report total does not match finance
- Z-score of a branch
- Shaping a Power BI model
- SUM over zero matching rows
- Actual against target for 12 KPIs
- Change between two years
- Which complaint types matter most
- Comparing the middle of stacked bars
- Mix change or volume change
- Zero baseline for bars and lines
- Cities from 2,000 to 20 lakh users
- A scatter plot that is a solid blob
- Two y-axes on one chart
- A map that just shows population
- Colour for an ordered measure
- Above and below target
- Conversion from 20% to 25%
- Comparing growth of very different sizes
- Typical salary on a dashboard
- Retention by sign-up month
- Diwali in different months
- A daily chart that jumps around
- A running total that always goes up
- Showing a target on a trend
- Every row shows UAE sales
- Revenue from quantity and price
- Share of total for each product
- Last year's sales show blank
- Sales by ship date and order date
- Turning on both-direction filtering
- Import or DirectQuery
- Refreshing only recent data
- A refresh that pulls the whole table
- A timestamp column bloating the model
- Hidden date tables in the model
- One chart should ignore a selection
- One chart, user-chosen measure
- Average sales per customer by region
- Region total on each month row
- Running total going the wrong way
- Sales doubled after a join in Tableau
- How Tableau blends a second source
- Top 10 products shows only 4
- RLS without one role per region
- Layering detail in a dashboard
- Light grey labels on white
- A dashboard on a phone
- A new user's empty chart
- Labels on every point of a busy line
- Three numbers for active users
- A histogram that hides two groups
- Showing a sales forecast honestly
- Click products to compare with the rest
- Row-level security in Tableau
- One formula for a whole grid
- COUNTIF with the limit in a cell
- Counting names that contain a word
- IFERROR hides too much
- IFS returns #N/A for some rows
- Turning codes into names with SWITCH
- Sum that skips hidden rows
- Summing a column that has errors
- Circular reference warning
- Summing the same cell on many sheets
- Why name the tax rate cell
- What [@Qty] means in a Table
- AVERAGE with a blank and a zero
- Total is off by 0.01
- #REF! after a column was deleted
- #VALUE! with + but not with SUM
- Formulas do not update
- Weighted average price
- Highest sale in one region
- Rounding prices up to the next ₹5
- Commission rate from slabs
- Lookup by row and column
- The 0 at the end of MATCH
- One XLOOKUP, three columns back
- Latest price for a product
- Lookup fails for values that look identical
- ID 1001 not found
- Removing commas from amounts
- FIND versus SEARCH
- Getting the domain from an email
- TEXTAFTER for the email domain
- Joining address parts without gaps
- Month labels sort in the wrong order
- One month after 31 January
- Working days in two weeks
- Due date 3 working days later
- Age in completed years
- Hours for a night shift
- Weekly hours show 16:30
- Paying an hourly rate
- What SEQUENCE returns
- FILTER with two conditions
- FILTER returns #CALC!
- Sort names by a column you do not show
- Customers who ordered only once
- Colouring the whole row by status
- A second dropdown that depends on the first
- January shows two years together
- Counting unique customers in a pivot
- A strange GETPIVOTDATA formula
- Months spread across columns
- Merge or Append in Power Query
- Finding the price for a target profit
- EMI for many rates and tenures
- Revenue and margin % on one chart
- Filling blanks with the value above
- Top 5 products in one formula
- Stacking two sheets with a formula
- A dropdown that grows with the data
- A 2-million-row CSV
- GST inside a price
- VAT inside a UAE receipt
- Markup and margin on the same item
- STDEV.S or STDEV.P
- EMI on a ₹10 lakh loan
- Value of a 10-year SIP
- Where the initial investment goes in NPV
- Returns on irregular investments
- CAGR when revenue doubles
- Straight-line depreciation
- Reading a CORREL result
- Ageing buckets for receivables
- Paid CAC versus blended CAC
- SaaS quick ratio
- Calculating the burn multiple
- Applying the Rule of 40
- RevPAR for a Dubai hotel
- Days sales outstanding
- Reporting revenue without GST
- Session conversion fell by half
- Why revenue stayed flat
- A correct GMV metric tree
- Marketplace revenue from take rate
- Checking a 90% response SLA
- Why a 7-day moving average
- Cash conversion cycle
- Contribution margin per order
- Logo churn versus revenue churn
- What EBITDA still subtracts
- Order of CASE branches
- Customers listed many times
- Showing each employee's manager
- Each region's share of total sales
- Counting paid orders returns all orders
- Bought in both January and February
- Rows from GROUP BY ROLLUP
- ROW_NUMBER in a WHERE clause
- What QUALIFY is for
- Running total that resets per customer
- Computing a running total
- Value of a 3-row moving average
- 7-row average with missing days
- Splitting clicks into sessions
- Grouping consecutive dates
- Share of total after GROUP BY
- Previous order from another customer
- Best seller per city with ties
- The third purchase amount
- Running count of distinct customers
- Month-over-month growth value
- Tagging rows with a cohort month
- Counting ticket status changes
- Finding missing invoice numbers
- LAG in pandas
- YTD for an April–March year
- Reusing one window definition
- Filtering before or after the window
- A centred 3-day average
- A date-based 7-day frame
- Day-over-day change with gaps
- LAG on raw order rows
- A window inside a window
- Year-over-year with LAG 12
- Spotting customers who lapsed
- Products making 80% of revenue
- Window function after GROUP BY
- Marking duplicates in an UPDATE
- Speeding up a ranking query
- RANK in pandas
- Latest row with DISTINCT ON
- DISTINCT and a window count
- Overall rate goes the other way
- Stopping a test early
- NOT IN returns nothing
- Detecting a small lift
- Average of averages
- Only looking at active customers
- Daily numbers do not match
- A metric that can be gamed
- Running total with tied dates
- Filter inside the ON clause
- Not-equal filter loses rows
- PERCENTILE_CONT vs PERCENTILE_DISC
- NTILE with 10 rows
- Latest order changes between runs
- Click-through rate with zero impressions
- Adding up daily active users
- How reliable is a fraud flag
- Uneven groups in a 50/50 test
- Lift that fades after week one
- Randomised by user, analysed by session
- Halving the margin of error
- Worst stores improved on their own
- Correlation near zero
- Feature users retain better
- Total row is less than the sum
- FIXED LOD ignores a filter
- Grand total of an average pivot
- Filtering NaN with == in pandas
- Combining two store medians
- Comparing a week to last year
- East sales on the West row
- GROUP BY with NULL cities
- A bubble twice as big
- Which encoding people judge best
- Better in every segment, worse overall
- Average conversion across two stores
- A store with 100% conversion
- The same data looks dramatic or flat
- Two lines that seem to move together
- A trend that depends on the start date
- Error bars that overlap
- Pie labels adding up to 101%
- Reading the top layer of a stacked area
- Is today's spike unusual
- A moving average that reacts late
- Big regions dominating a map
- Charting a 5-point survey
- Customer counts that do not add up
- A variable that ignores CALCULATE
- Red sales showing on every colour row
- Average monthly sales for a year
- 40 measures for YTD and last year
- Same total on every customer row
- Filtering months but keeping % of total
- A YTD line that should reset each year
- An asterisk instead of a value
- A DirectQuery table visual errors out
- Fast summaries over a DirectQuery fact
- What Direct Lake mode does
- A matrix that suddenly shows every product
- A manager sees every region
- Monthly budget next to daily sales
- Churn shown as 4.2817%
- Gaps in time squeezed out
- Month-on-month swings during Ramadan
- Worst stores improved after coaching
- A heatmap where everything looks the same
- Income bands of different widths
- Call times drop, complaints rise
- Result of =-2^2
- A difference of -2.78E-17
- 16-digit numbers lose a digit
- Why the model recalculates slowly
- SUMIF adds the wrong rows
- INT and TRUNC on a negative number
- COUNTIF finds duplicates that are not
- An intended circular formula
- Summing two regions in one SUMIFS
- The "Set precision as displayed" option
- Why the double minus
- An @ appears in an old formula
- Why use LET
- Creating a GST function with LAMBDA
- Counting codes with exact case
- Dates swapped when opening a CSV
- The date that never existed
- Approximate lookup on unsorted data
- XLOOKUP with a partial name
- Lookup on two conditions
- TRIM does not remove a space
- Financial year from a date
- Week number of 1 January 2027
- Lookup shows 0 for an empty cell
- Wrong values after inserting a column
- Times stored as text
- First day of the month from any date
- Fast lookup on a million rows
- Working days with a Friday–Saturday weekend
- Monthly total from a date column
- Margin in a calculated field
- Query breaks after a column rename
- Duplicates that Power Query keeps
- Total Sales that follows slicers
- Share of total with CALCULATE
- A summary table with one formula
- Production mix with limits
- Model slows down after adding data tables
- Highlight lands one row off
- Invalid values despite validation
- Chart loses data when rows are hidden
- Grouping one pivot changes another
- Protecting confidential salary data
- Loading big data without a worksheet
- FILTER inside an Excel Table
- A project with two IRRs
- Effective rate of 12% compounded monthly
- Lease paid at the start of each month
- Interest in the first EMI
- Double-declining depreciation in year 1
- Forecasting the next month
- GST total differs by a paisa
- Showing amounts in lakh style
- NRR inflated by new customers
- CAC with a three-month sales cycle
- Active user definition changed
- Resolution time fell, backlog grew
- Median delivery improved, p90 worse
- Growth in constant currency
- Scaling a loss-making order
- Monthly churn in a growing base
- Engagement lift that fades
- A feature that took others' revenue
- Refund rate dropped during a sale
- ARR of a ramped three-year deal
- 7-day average over missing days
- March total misses the last day
- SUM(DISTINCT) gives a low total
- Customers who bought every item in a set
- Month-1 retention for a cohort
- Subquery returns more than one row
- NULL score ranked first
- Every share shows 0
- LAG default vs COALESCE
- Forward-filling missing prices
- Streaks broken by repeat logins
- Runs of the same machine status
- Merging overlapping bookings
- Largest fall from a peak
- PRECEDING with a descending order
- Running totals in an incremental model
- Spark window with no partition
- Average of everyone else in the team
- GROUPS frame with tied dates
- Percent of total with LIMIT 10
- End dates for history rows
- Equal scores in different quartiles
- A slow filter on a window view
- Order count of zero after a LEFT JOIN
- Users with a 3-day streak
- One partition takes all the time
- Five windows, five sorts
- Products within ₹500 of each price
- What EXCLUDE TIES removes
- Median per department in PostgreSQL
- Last known value with IGNORE NULLS
- Ties that are not quite ties