SynfraCore
Synfracore
Start Learning
Navigation

Academies

Platform

RoadmapsLabsCertificationsInterviewPYQsAI AssistantCareer
Start Learning Free Learning Roadmaps

Data Analyst Interview Questions

40 original questions across SQL, Excel, pandas, data visualization, Power BI, Tableau, statistics fundamentals, stakeholder communication, and the AI-era skills every data analyst interview now touches.

Related: AI at Work →Related: Statistics for Analysts →Related: Marketing Analytics & GA4 →

15 Fresher15 Mid-Level10 Senior
Start mock interview HR round

Fresher

What's the difference between INNER JOIN and LEFT JOIN, and when would an INNER JOIN quietly drop rows you didn't mean to lose?
An INNER JOIN returns only rows that have a match in both tables. If a row in the left table has no corresponding row in the right table, it's excluded from the result entirely. A LEFT JOIN keeps every row from the left table regardless of whether a match exists. It fills in NULL for the right table's columns when there isn't one. The common trap: joining a customers table to an orders table with INNER JOIN silently drops every customer who hasn't placed an order yet. That's invisible unless you check. A report meant to show 'all customers and their order totals' would quietly undercount the customer base. Customers with zero orders simply vanish from the result, instead of showing a zero. Use LEFT JOIN from the table you want every row preserved from. Treat NULL in the joined columns as the meaningful 'no match' signal. That avoids this category of silent data loss.
What interviewers look for
  • correctly distinguishes INNER (matches only) from LEFT (keeps all left-side rows)
  • gives a concrete real-world example of silently dropped rows
  • explains that NULL in the result signals 'no match', not an error
What does GROUP BY do, and why does SQL complain if you select a column that isn't in the GROUP BY clause or wrapped in an aggregate function?
GROUP BY collapses rows that share the same value in the grouped column(s) into a single result row per group. This only makes sense alongside aggregate functions, SUM, COUNT, AVG, that reduce every row within a group down to one value. Say a query groups by customer_id but also tries to select order_date without aggregating it. SQL has no defined way to pick which single order_date should represent a customer who placed ten orders on ten different dates. Each group could legitimately have many different values for that column. The database refuses to guess which one you meant. The fix is aggregating that column too, MAX(order_date) or MIN(order_date). Or add it to the GROUP BY clause, if it's meant to further subdivide the groups, not collapse across it. This rule exists to prevent a query from silently returning one arbitrary row's value, and presenting it as if it represented the whole group.
What interviewers look for
  • explains GROUP BY collapses rows sharing a value into one result row
  • explains why an unaggregated, ungrouped column is ambiguous
  • names a concrete fix (aggregate it, or add it to GROUP BY)
What's the practical advantage of XLOOKUP over VLOOKUP, beyond it being newer?
VLOOKUP has two real limitations XLOOKUP removes directly. First, it can only search in the leftmost column of the specified range and return a value to its right. Looking up a value and returning something to its left requires rearranging the data or a workaround. Second, it breaks silently if a column gets inserted or deleted within the lookup range. It refers to the target column by a fixed numeric position that shifts along with the insertion. XLOOKUP searches and returns from any column independently. The lookup column and the return column are specified separately. So there's no leftmost-column restriction, and no fragile positional reference to break when columns are added or removed. XLOOKUP also defaults to an exact match. VLOOKUP historically defaulted to an approximate match, a frequent source of wrong results when someone forgot to set the match-type argument. XLOOKUP also natively supports searching from the bottom up, which VLOOKUP can't do at all.
What interviewers look for
  • correctly explains the leftmost-column restriction VLOOKUP has
  • correctly explains why VLOOKUP breaks when columns are inserted/deleted
  • mentions the exact-match default difference or search-direction flexibility
A pivot table's source data gets new rows added every week, but the pivot table doesn't show them until you manually refresh. Why, and is there a way to avoid the manual step?
A pivot table isn't a live view of the source range. It's a cached snapshot taken at the time it was created or last refreshed. That's why Excel can render it instantly, without re-scanning the source data on every interaction. It's also why new rows added after that snapshot don't appear, until a refresh explicitly rebuilds the cache. Convert the source range into an Excel Table, not just a plain cell range, before building the pivot table. That solves half the problem: new rows not being included at all. A Table automatically expands its own defined range as rows are appended. A pivot table built on a Table reference picks up that expanded range the next time it refreshes. The manual refresh step itself can be automated. Use a 'refresh on open' setting in the pivot table's options, or a simple macro tied to the workbook opening. A scheduled background refresh on a timer isn't a built-in Excel feature, though, the way it is in some BI tools.
What interviewers look for
  • correctly explains the pivot table is a cached snapshot, not live
  • recommends converting the source to an Excel Table to handle new rows
  • mentions refresh-on-open or an equivalent automation, with a correct caveat about its limits
What's the difference between COUNTIF and SUMIF, and when would COUNTIFS (plural) be needed instead of COUNTIF?
COUNTIF counts how many cells in a range meet a condition. SUMIF adds up the values in a separate range for every row where a condition is met elsewhere. COUNTIF(A:A, "North") counts how many rows say 'North'. SUMIF(A:A, "North", B:B) sums column B only for the rows where column A says 'North'. Both take exactly one condition. COUNTIFS and SUMIFS, plural, with the range/criteria pairs structured a little differently, support multiple conditions combined with an implicit AND. They can count or sum rows that match 'North' in one column and 'Active' in another at the same time. Plain COUNTIF/SUMIF can't express that at all, since they only accept one condition-range pair. Reach for the plural form the moment a question involves more than one filtering condition. That avoids an awkward workaround with nested formulas that the plural versions already handle natively.
What interviewers look for
  • correctly distinguishes COUNTIF (count) from SUMIF (conditional sum)
  • correctly explains COUNTIFS/SUMIFS support multiple AND-combined conditions
  • gives a concrete example of each
What's the difference between a pandas Series and a DataFrame, and why does df['column'] return a Series while df[['column']] returns a DataFrame?
A Series is a single one-dimensional labeled array. It's essentially one column of data plus an index. A DataFrame is a two-dimensional table made up of multiple Series sharing the same index. That's why selecting a single column with single brackets, df['column'], returns just that one Series. Wrapping the column name in a list, df[['column']], tells pandas to select a subset of columns and return a DataFrame. That holds even if that subset happens to be only one column. This distinction matters practically. Series and DataFrames support slightly different operations and behave differently in some contexts. Plotting a single Series versus a one-column DataFrame, or passing one to a function expecting a specific shape, can produce different results. Be deliberate about which one you're working with, especially when a method's output type isn't obvious from the code alone. That avoids subtle bugs where a later step assumes the wrong shape.
What interviewers look for
  • correctly distinguishes 1D Series from 2D DataFrame
  • correctly explains why the single-bracket vs double-bracket syntax changes the return type
  • notes this distinction can cause real downstream bugs
A column of numbers imported from a CSV shows up as NaN for several rows that clearly have visible values in the source file. What are the likely causes?
NaN, Not a Number, is pandas' way of representing a missing or unparseable value in a numeric column. It shows up for a few common reasons. The source file has a blank cell for that row, which pandas correctly treats as missing. Or the cell contains text pandas can't convert to a number. A stray space, a currency symbol like '$1,200', or a value like 'N/A' typed as text are examples. Pandas can't parse that as numeric, and replaces it with NaN rather than crashing the import. Or a thousands separator or regional number format wasn't handled by the default parsing. That turns what looks like a valid number into something pandas can't interpret. Check the raw CSV text directly, not just how Excel or a spreadsheet tool renders it, for the affected rows. That usually reveals which case applies. A currency symbol or stray text character is common, fixable by specifying a conversion function or cleaning the column after import. Truly blank cells need a decision. Drop those rows, fill them with a default, or leave them as NaN. The right call depends on what the missingness means for the analysis.
What interviewers look for
  • correctly explains NaN represents missing or unparseable values
  • names at least two concrete real causes (blank cells, unparseable text/symbols)
  • proposes checking the raw file content, not just the rendered spreadsheet view
Why is a pie chart with eight or more slices generally considered a poor choice for comparing values, even if the data is technically correct?
The human eye is comparatively bad at judging and comparing angles and areas precisely. It's a well-documented perceptual limitation, not just a stylistic preference. With two or three slices of clearly different sizes, a pie chart works fine, since the differences are large and obvious. Once there are eight or more slices, several typically end up visually similar in size. A viewer can't tell which of two close slices is larger just by looking, even though the underlying numbers might differ meaningfully. A bar chart solves this directly. Length along a single shared axis is one of the perceptual tasks humans handle well and precisely. Comparing bar heights or lengths side by side makes small differences visible, that the same data as pie slices would hide. The data being 'technically correct' in a pie chart doesn't make the chart an effective communication tool. Not if the format itself prevents the viewer from accurately reading the comparison it's meant to convey.
What interviewers look for
  • correctly identifies the perceptual limitation (angle/area judgment) as the real issue
  • explains why this gets worse with more slices
  • proposes a bar chart as the fix and explains why it's perceptually better
What's the difference between a calculated column and a measure in Power BI, and why does picking the wrong one hurt performance?
A calculated column computes a value row by row and stores the result physically in the data model. It takes up memory for every row, exactly like a regular imported column. It's evaluated once when the data refreshes, then just sits there as static data. A measure is calculated on the fly, at query time, in the context of whatever filters and groupings are currently applied in a visual. It takes up effectively no storage, since nothing is pre-computed and stored. It correctly recalculates as a user slices or filters a report. Using a calculated column for something that depends on filter context produces a static, wrong-in-most-contexts number. A running total, or a percentage of a filtered subtotal, is a good example. It was computed once under one specific condition, and can't adapt as filters change. Using a measure for something that's a fixed per-row attribute works, but adds unnecessary query-time computation to every single visual that needs it. A full name built from first and last name is an example. Storing it once as a calculated column would be both correct and cheaper.
What interviewers look for
  • correctly explains calculated columns are stored/static, measures are computed at query time
  • correctly explains why a measure is needed for filter-context-dependent calculations
  • gives the reverse case too — when a calculated column is the more efficient choice
What's the difference between a dimension and a measure in Tableau, and how does that distinction decide where a field ends up by default?
A dimension is a categorical field used to slice, group, or label data. Things like a product category, a region, or a customer name are examples. Tableau treats it as qualitative, determining the level of detail or grouping a view is built around. A measure is a numeric field meant to be aggregated, like revenue, quantity, or a calculated ratio. Tableau defaults to summarizing it, usually as a sum, instead of listing every individual value. Tableau guesses this classification automatically on data connection. It's usually correct for an obviously numeric revenue column or an obviously categorical region column. But it can guess wrong for a field like a numeric customer ID or year. That's technically a number, but functions as a category; you'd never want to sum customer IDs together. In those cases, manually converting the field's role, dimension to measure or vice versa, fixes how it behaves in a view. Getting this right matters because dragging a field onto a shelf behaves completely differently depending on which role it currently has.
What interviewers look for
  • correctly distinguishes categorical dimensions from aggregatable measures
  • explains Tableau's automatic but imperfect classification
  • gives a concrete example of a field that needs manual reclassification
A dataset's average (mean) household income looks much higher than most households would recognize as typical. What's likely going on, and what measure would give a more representative picture?
The mean is sensitive to extreme values. A small number of very high incomes pulls the average upward, well past what a typical household earns. The mean sums everything and divides by the count, letting a handful of outliers dominate the result. The median, the middle value when every observation is sorted in order, isn't affected by how extreme the highest or lowest values are. It's only affected by their relative position. So it stays representative of a typical household, even when a small number of very high earners would otherwise skew the mean upward dramatically. This is a standard pattern with income, home prices, and similar right-skewed distributions. That's exactly why income statistics reported publicly are very often the median, not the mean, to avoid this distortion. Reporting both together, when possible, gives a fuller picture. A large gap between them is itself a meaningful signal that the distribution has a heavy tail of outliers worth investigating.
What interviewers look for
  • correctly explains the mean's sensitivity to outliers/skew
  • correctly proposes the median as more representative here, and why
  • recognizes this as a general pattern with skewed distributions, not a one-off
What does correlation between two variables tell you, and why doesn't it prove one causes the other?
Correlation measures how strongly two variables tend to move together. As one increases, does the other tend to increase, positive correlation, decrease, negative correlation, or show no consistent relationship at all. It says nothing about why they move together. That's exactly the gap between correlation and causation. Ice cream sales and drowning incidents both rise in summer, correlating with each other. But neither causes the other. A third factor, hot weather, drives both independently. A real relationship could run in either direction. It could run through a shared underlying cause neither variable directly controls. Or, in some cases, it could be pure coincidence in a small enough dataset. Establishing causation generally needs a controlled experiment, randomly assigning who gets which condition, removing confounding factors by design. Or it needs careful statistical techniques built to account for confounders, when a true experiment isn't possible. Correlation from observational data alone, however strong, isn't sufficient evidence on its own.
What interviewers look for
  • correctly explains what correlation measures (direction and strength of co-movement)
  • gives a correct, concrete example of correlation without causation
  • mentions what's needed to establish causation (experiments, confounder control)
A stakeholder asks for 'all the data' on a topic rather than a specific question. How would you handle that request before diving into analysis?
Starting analysis on a vague 'give me all the data' request risks real wasted effort. It can produce something that doesn't answer whatever underlying question prompted the ask. 'All the data' usually isn't the stakeholder's real goal. It's a placeholder for a question they haven't fully articulated yet. A short clarifying conversation first, asking what decision this data would inform, or what prompted the request, usually surfaces the real, narrower question underneath. Often that's something like 'are sales trending up or down this quarter', not truly every row of every table. This isn't about refusing the request. It's recognizing that a few minutes of clarification upfront saves far more time. Guessing wrong and redoing the analysis after presenting something that misses the real point costs much more. If the stakeholder can't articulate a narrower question yet, a brief, high-level summary first, instead of a full raw export, often helps. Seeing the shape of the data often helps them recognize what they're really looking for.
What interviewers look for
  • recognizes 'all the data' as usually a placeholder for an unarticulated question
  • proposes clarifying the underlying decision/question before starting analysis
  • frames this as time-saving, not obstructive
You've finished an analysis and the result doesn't support what the stakeholder was hoping to see. How would you present that?
The analysis's job is to reflect what the data shows, not what anyone hoped it would show. Presenting it honestly is the entire point of doing the analysis in the first place. That includes when the result is disappointing or contradicts an existing assumption. The presentation itself matters for how that honest result lands. Lead with the finding plainly. Explain the methodology briefly, so the stakeholder can trust how the conclusion was reached. Frame the result around what it means for a decision going forward, not around who was right or wrong. That usually keeps the conversation productive instead of defensive. It also helps to proactively address the most likely objection or alternative explanation the stakeholder might raise. Show the analysis already considered it, instead of waiting for them to find the gap themselves and lose confidence in the broader result. Softening the real number, or burying the unwelcome finding to avoid an uncomfortable conversation, is the wrong trade. It costs trust in every future analysis, once the gap between what was shown and what the data said eventually surfaces.
What interviewers look for
  • commits to presenting the honest result, not softening or hiding it
  • proposes a constructive framing (decision-focused, not right/wrong-focused)
  • mentions proactively addressing likely objections
An AI assistant generates a SQL query for you from a plain-English request. What should you check before running it against a production database?
The query compiling and returning some result doesn't mean it returns the correct result. An AI assistant can misunderstand which table a column belongs to. It can silently use an inner join where a left join was needed, quietly dropping rows. It can apply an aggregation at the wrong grouping level. All of these can still produce a result that looks plausible at a glance. The real check is reading through the generated query's logic line by line, the same way you'd review a colleague's query before trusting its output. Confirm the joins match the intended relationships, and the filters match the intended scope. Don't just confirm it ran without an error. Run it first against a test or read-only replica. Or wrap a first run in a transaction that can be rolled back, if it's a write query. That adds a safety margin, because a plausible-looking but subtly wrong query is the common failure mode, not an obvious crash. Checking the row count of the result against a rough expectation is also a fast, cheap sanity check. It catches a surprising number of silent mistakes.
What interviewers look for
  • explains a plausible-looking result doesn't mean a correct one
  • proposes reading the query logic (joins, filters, grouping), not just running it
  • mentions a concrete safety step (test environment, row-count sanity check, or similar)

Mid-Level

A report needs each customer's running total of spend over time, ordered by order date. Why is a window function the right tool instead of a self-join or a subquery per row?
A window function like SUM(amount) OVER (PARTITION BY customer_id ORDER BY order_date) computes a running total per customer directly, in a single pass over the result set. It does this without collapsing rows the way GROUP BY does. Each row keeps its own identity, while also getting access to an aggregate computed across a defined window of related rows. Here that's all of that customer's prior orders, up to and including the current one. A self-join or correlated subquery achieving the same running total would need to re-scan and re-sum all of that customer's earlier orders, for every row. That cost grows roughly quadratically with order count. It repeats overlapping work for every single row, instead of computing it once in an ordered pass. Window functions exist for this class of problem: calculations needing both row-level detail and an aggregate relative to some ordering or partitioning. GROUP BY alone can't express that, since it only returns one row per group.
What interviewers look for
  • correctly explains PARTITION BY and ORDER BY in a window function
  • explains why a self-join/subquery approach is more expensive (repeated overlapping work)
  • notes window functions preserve row-level detail, unlike GROUP BY
Likely follow-up: How would you adjust this if the requirement changed to a 7-day rolling total instead of an all-time running total?
A WHERE clause filters on a calculated column (WHERE price * quantity > 100) and the query runs noticeably slower than a similar filter on a plain stored column. Why?
A plain stored column can use an index directly. The database looks up matching values using a pre-built, sorted structure, instead of inspecting every row. A calculated expression like price * quantity has no corresponding index, unless one was built for that exact expression. Many databases support expression or computed-column indexes for this reason. So the database typically has to evaluate the expression for every single row, then check the filter. That's a full table scan in practice, regardless of what indexes exist on the underlying price or quantity columns individually. This is a common performance gap between a query that looks simple and one that's cheap to run. The filter's shape, not just which columns it references, determines whether the database can use an index at all. If this filter runs frequently on a large table, there are two real fixes. Persist the calculated value as its own indexed column, updated via a trigger or application logic. Or create an expression index built on price * quantity. Either restores the index-lookup path.
What interviewers look for
  • correctly explains that an index on price/quantity individually doesn't help a calculated filter
  • explains the full-scan consequence
  • proposes a real fix (expression index or a persisted calculated column)
What does Power Query add over doing the same cleanup steps manually with formulas, for a dataset that needs the same transformation applied every month?
Power Query records every cleanup step as a named, ordered step in a query. Removing duplicates, splitting a column, changing a data type, filtering rows, are all examples. That whole sequence can be re-applied to a brand-new month's raw data with one click, 'Refresh'. That beats redoing each formula or manual click by hand again. Formulas achieve a transformation once, on the data they're written against. They don't generalize automatically to a differently-shaped new file, without re-checking or re-dragging every formula. Power Query's recorded steps apply the same logic to new data. That works as long as the new data's shape, column names, roughly the same structure, matches what the query expects. This makes Power Query the better fit for a repeating monthly process. The value is in the transformation being reusable and auditable. Each step is visible and can be edited or reordered. That's worth more than just cleaning one dataset a single time.
What interviewers look for
  • correctly explains the recorded, reusable step sequence
  • contrasts this with formulas not generalizing automatically to new files
  • connects this to the stated repeating-monthly-process scenario
A formula referencing A1 behaves differently when copied down a column versus across a row than one referencing $A$1. Explain the difference and when you'd deliberately want each.
A1 is a relative reference. When the formula is copied to a new cell, Excel shifts the reference by the same offset as the copy. A formula in B2 referencing A1 becomes, when copied to B3, a reference to A2. That preserves the same relative relationship. $A$1 is an absolute reference. The dollar signs lock both the column and row. So copying that formula anywhere still points at exactly A1, never shifting. Relative references are what you want for something like 'multiply this row's quantity by this row's unit price'. Every row's formula should reference its own row's data. Absolute references are what you want for something like 'divide every row's value by a single total stored in one fixed cell'. Every copy of the formula needs to keep pointing at that same one cell, not shift to a different, likely-empty cell as it's copied down. A mixed reference, $A1 or A$1, locks only the column or only the row. That's useful when building a reference table where one axis should shift and the other shouldn't.
What interviewers look for
  • correctly explains relative references shift on copy, absolute ones don't
  • gives a correct concrete use case for each
  • mentions mixed references, even briefly, showing full command of the concept
A pandas script that filters and modifies a DataFrame triggers a SettingWithCopyWarning. What's causing it, and why is it worth fixing rather than ignoring?
This warning appears when pandas can't tell for certain whether an operation is modifying the original DataFrame or a temporary copy of it. It's common after chained indexing, like df[df['status'] == 'active']['value'] = 0. The first bracket there creates an intermediate object. That object may or may not be a view into the original data, depending on internal factors not obvious from the code. The real risk isn't just a noisy warning. Depending on which case pandas lands in, the assignment might silently modify the original DataFrame, or might silently modify a copy that then gets discarded. The code gives no visible indication of which one happened. So a script can appear to run successfully, while quietly not updating the data it was meant to update. The reliable fix is using .loc for the combined filter-and-assign in one step, df.loc[df['status'] == 'active', 'value'] = 0. That gives pandas an unambiguous single operation, instead of two chained, order-dependent ones. Or explicitly call .copy() when an independent copy is intended.
What interviewers look for
  • correctly explains the ambiguous view-vs-copy cause behind chained indexing
  • explains the real risk: a silently wrong result, not just a cosmetic warning
  • proposes the .loc fix or explicit .copy() correctly
What's the difference between merge and concat in pandas, and which fits a 'stack two months of the same report together' task versus a 'join customer info onto an orders table' task?
concat stacks DataFrames together along an axis, typically rows, appending one DataFrame's rows below another's. It doesn't match on any shared key. It assumes the DataFrames already share the same, or at least compatible, column structure, and just need to be combined end to end. merge combines DataFrames based on matching values in one or more key columns. That's the same conceptual operation as a SQL join. It pulls together related rows from two differently-structured tables based on a relationship between them. A customer id shared between a customers table and an orders table is a good example. Stacking two months of the same report together is a concat task. Both months share identical columns, and the goal is simply 'more rows of the same shape, one after another'. Joining customer info onto an orders table is a merge task. The two tables have different columns, and need to be combined based on a shared key, customer_id, not just stacked.
What interviewers look for
  • correctly distinguishes stacking (concat) from key-based joining (merge)
  • correctly maps each stated scenario to the right operation
  • doesn't conflate the two or suggest either works for both
A chart's y-axis is set to start at 95 instead of 0 to 'make the difference more visible.' What's wrong with this, and is there ever a legitimate reason to truncate an axis?
A truncated y-axis exaggerates visual differences that may be small in real, proportional terms. A change from 96 to 98 looks dramatic on an axis running from 95 to 100. The same change on a 0-to-100 axis would correctly look like the small shift it is. This isn't a neutral stylistic choice. It actively misleads a viewer scanning bar heights or line steepness for a quick visual impression. That's exactly how most people read a chart at a glance, instead of carefully checking the axis labels first. There is a legitimate, narrower case. When the data never approaches zero, and the meaningful variation only happens within a tight band far from it, a truncated axis can be defensible. A stock's price history, or body temperature readings clustered near 37°C, are examples. But it has to be clearly and visibly labeled as such, so the viewer isn't misled about the scale. It should never be used purely to make an otherwise unremarkable change look more significant than it is.
What interviewers look for
  • correctly explains why truncation exaggerates the visual impression of a change
  • names the specific risk — most viewers read bar/line shape before checking axis labels
  • gives the legitimate exception with its required caveat (clear labeling)
When is a line chart the wrong choice for showing a trend over time, even though 'trend over time' is usually line-chart territory?
A line chart implies continuity between points. The line drawn between two data points visually suggests there's meaningful data in between them. That's accurate for continuous measurements, like temperature readings every hour. But it's misleading for categorical or discrete time buckets with no real values between them, like monthly revenue totals. There's no meaningful 'value' between January's total and February's total, just two separate, complete numbers. A bar chart communicates discreteness correctly in that case. Each bar stands alone as one complete period's value, with no implied interpolation between bars. Line charts also struggle once more than four or five series are plotted together. Overlapping lines become hard to visually trace and distinguish, regardless of how distinct the colors are. Past that point, small multiples work better: several simple charts side by side, one per series. They usually communicate the same comparison more clearly than cramming every series onto one shared axis.
What interviewers look for
  • correctly explains the implied-continuity problem with discrete time buckets
  • proposes bar charts as the fix for discrete periods
  • mentions the too-many-overlapping-lines problem and small multiples as an alternative
A Power BI report uses a 'flat' data model — one giant table with every field — instead of separate fact and dimension tables. What problems does this cause as the report grows?
A single flat table forces every piece of information into one wide table. Product details, customer details, date attributes, transaction amounts, all end up repeated. That means repeating the same product name or customer address on every single transaction row that references it. It bloats the model's size far beyond what a normalized star schema would need for the same data. A star schema uses a central fact table of transactions, linked to smaller dimension tables for product, customer, and date. Beyond size, filtering and relationships become harder to reason about. A star schema's relationships let Power BI's engine optimize how filters propagate between tables. A flat table has no such structure to leverage, often forcing slower, more literal scans. DAX calculations become harder to write correctly against a flat table. They rely on relationship-based filter context, which is how most of Power BI's calculation engine is designed to work. There's no clean dimension to filter by, independent of the fact data. Restructuring into a proper star schema, even retroactively, usually improves both report performance and how maintainable the DAX measures are going forward.
What interviewers look for
  • correctly explains the size/repetition cost of a flat table versus a star schema
  • explains the filtering/relationship-propagation disadvantage
  • recommends restructuring to a star schema as the real fix
A DAX measure using CALCULATE with a filter argument doesn't behave the way a simple WHERE clause would in SQL. What's the conceptual difference in how filters apply?
SQL's WHERE clause filters rows out of a single query's result set directly and explicitly. It's a straightforward row-level condition applied once. DAX's CALCULATE works by modifying the filter context a measure is evaluated within. It can add a new filter. But it can also override or remove filters that were already being applied by the surrounding report visual, like row/column headers or slicers. That's a fundamentally different mental model than SQL's row-filtering. A measure wrapped in CALCULATE(SUM(Sales[Amount]), Sales[Region] = "North") doesn't just add a North-region filter on top of whatever the visual is already filtering by. Depending on how it's written, it can replace an existing region filter that a slicer set. That produces a result that looks wrong to someone thinking in SQL terms, but is DAX correctly doing what filter-context modification is designed to do. DAX filters operate on context, not directly on rows. Understanding that is usually the single biggest conceptual shift for an analyst coming from a SQL background.
What interviewers look for
  • correctly explains SQL's row-level WHERE versus DAX's filter-context modification
  • explains CALCULATE can override, not just add to, existing visual filters
  • frames this as the key SQL-to-DAX conceptual shift
What's the difference between a context filter and a regular filter in Tableau, and why would you deliberately add a filter to context?
Regular filters in Tableau are all computed somewhat independently and in parallel against the underlying data. That usually works fine, but can behave unexpectedly when filters interact. A Top N calculation is an example. It needs to know what the relevant pool of rows is, before it can determine the top entries from that pool. A context filter is computed first, creating a temporary, filtered table that every other filter and calculation downstream then operates against. That resolves ordering ambiguity: a Top N filter placed in context guarantees other filters are already applied before the Top N calculation runs. For large data sources, it can also meaningfully improve performance by shrinking the working dataset before other filters and calculations process it. The trade-off is that context filters are recomputed whenever the underlying data changes. That has its own processing cost, so adding one isn't free. It's deliberately used when filter ordering matters for correctness, or when a large dataset's performance benefits from an early reduction in row count.
What interviewers look for
  • correctly explains context filters are computed first, creating a filtered working set
  • explains the ordering-dependency problem this solves (e.g. Top N)
  • mentions the performance trade-off (not free, has its own recompute cost)
A/B test results show a 3% lift in conversion for the new design, with a reported p-value of 0.04. How would you explain what that p-value does and doesn't tell a non-technical stakeholder?
A p-value of 0.04 means something specific. Say there were truly no real difference between the two designs. There would be roughly a 4% chance of seeing a result at least this large, purely by random sampling variation. It's a statement about how surprising this result would be under the assumption of no real effect. It is not a direct statement about how likely the new design is to be better. And it definitely isn't a measure of how large or important the effect is. A common miscommunication to avoid: a statistically significant result, a low p-value, isn't automatically a practically meaningful one. A 3% lift might be statistically real, but still too small to justify the cost of shipping the change, depending on the business context. A result just above the significance threshold might still represent a real, meaningful effect that a slightly larger sample would have confirmed. Pair the p-value with the real effect size and a confidence interval. Be explicit that significance answers 'is this probably not random noise', not 'is this a big or important effect'. That usually prevents the stakeholder from over- or under-reading the result.
What interviewers look for
  • correctly explains what a p-value represents (probability of this result under no real effect)
  • explicitly separates statistical significance from practical/business significance
  • proposes pairing it with effect size/confidence interval for a fuller picture
Two stakeholders from different departments ask for the same metric but define it slightly differently (one counts refunded orders, one doesn't). How do you handle this without just picking a side?
The real problem isn't a disagreement about the number. It's that 'the same metric' is two different metrics wearing the same name. Treating it as a single number to compute correctly would just reproduce the conflict in a different form later, whichever definition gets picked. Surface the real difference explicitly. Name both versions clearly, gross orders versus net-of-refunds orders, for instance, and show both numbers side by side with the gap between them. That turns an implicit disagreement into a visible, resolvable one, instead of analysts silently choosing a side and one department feeling overruled without discussion. From there, get both stakeholders, or whoever owns the metric definition at a broader level, to explicitly agree on a single documented definition going forward. Document it somewhere both teams can reference. That prevents this exact disagreement from recurring every time someone pulls the number. The analyst's job here is making the ambiguity visible and facilitating agreement. It is not quietly deciding it unilaterally and hoping nobody notices which version got used.
What interviewers look for
  • correctly reframes the issue as two different metric definitions, not one disputed number
  • proposes showing both definitions explicitly rather than silently picking one
  • proposes getting a documented, agreed definition to prevent recurrence
A dashboard built partly with AI-generated DAX measures is shown to leadership and gets praised for how fast it was built. What's the real risk in that praise, and how would you address it?
Speed of delivery and correctness of the underlying logic are separate qualities. Praising the speed implicitly treats them as the same thing. Leadership seeing a polished, fast dashboard has no way to independently judge the measures behind it. A filter-context issue in one of the AI-generated measures could be quietly producing a wrong number somewhere in it. The real risk isn't the AI assistance itself. It's that the review bar for AI-generated logic can quietly drop, simply because it looks finished and the process felt efficient. The correctness check still needs to happen, regardless of how the code was produced. Read what each measure does. Test it against a known-correct value. Confirm filter context behaves as intended. Addressing this directly means applying the same validation discipline to AI-assisted work as to hand-written work. Spot-check key measures against a manually calculated value. Be candid with leadership that speed of building and correctness of the result are two different things. Both are worth asking about separately, instead of assuming one implies the other.
What interviewers look for
  • explicitly separates speed of delivery from correctness of logic
  • identifies the real risk as a lowered review bar, not the AI assistance itself
  • proposes concrete validation (spot-checking against known-correct values)
You ask an AI tool to summarize a dataset's key findings for a stakeholder report. What's a real risk in relying on that summary directly, beyond factual errors?
Beyond outright factual mistakes, a generated summary can be technically accurate about individual numbers while still misrepresenting the overall picture. It might emphasize a dramatic-sounding but statistically minor fluctuation because it reads well in prose. Meanwhile it underplays a less flashy but far more important trend buried in the same data. The tool is optimizing for a readable, confident-sounding narrative, not for correctly weighting what matters most for this specific audience and decision. It can also smooth over caveats that matter. A small sample size, a seasonal effect that explains part of a trend, a known data-quality issue in part of the dataset, are examples. Caveats make a summary read less confidently. But omitting them is exactly how a technically-true summary ends up giving a misleading overall impression. The fix isn't avoiding the tool for drafting. It's treating its output as a first draft of the narrative. Then check that draft against your own understanding of which findings matter, and which caveats truly need to stay in. Don't just pass the generated text through unedited.
What interviewers look for
  • identifies emphasis/weighting distortion as a risk beyond simple factual errors
  • mentions caveats getting smoothed over because they hurt readability
  • proposes treating the output as a draft to check, not a final deliverable

Senior

A dashboard query joins five large tables and has become slow enough that stakeholders complain about load times. Walk through how you'd approach optimizing it.
The first step is reading the query's execution plan, not guessing. It reveals which joins are doing a full scan versus using an index. It also shows which join order the optimizer chose, and roughly how many rows pass through each stage. That points directly at the bottleneck, instead of a plausible-sounding one. A common fix at this scale is pre-aggregating. Instead of joining five large raw tables live on every dashboard load, build a smaller, pre-computed summary table. Update it on a schedule, or incrementally as new data arrives. It already holds the joined, aggregated shape the dashboard needs, cutting the live query down to reading from one much smaller table. Where live joins are unavoidable, check that every join column is properly indexed. Also apply filters as early as possible in the query, reducing the row count before the expensive joins happen, not after. Both meaningfully reduce the work. The underlying judgment call is recognizing when a dashboard's real requirement is 'fast and acceptably fresh', not 'live and exactly current to the second'. Most stakeholder-facing dashboards tolerate the former far better than they tolerate slow load times.
What interviewers look for
  • proposes reading the execution plan as the first diagnostic step, not guessing
  • proposes pre-aggregation/summary tables as a realistic fix at this scale
  • recognizes the freshness-vs-speed trade-off as the real underlying decision
A large Power Query transformation that previously ran quickly against a database source becomes noticeably slower after adding an early step that uses a custom M function. What's likely happening, and how would you investigate?
Power Query, when connected to a database source, can push many of its transformation steps down to the database itself. This happens as part of the generated query. It's called query folding. It's a major reason database-backed Power Query transformations are often fast. Filtering, grouping, and many other steps happen inside the source database's own query engine, instead of after all the data is pulled into Excel. A custom M function, or certain non-foldable operations, typically breaks folding at the step it's introduced. Every step after that point then has to run locally against data already pulled into memory. That loses the database's own optimization and indexing entirely, for the rest of the transformation chain. Check the query's step-by-step 'View Native Query' option, available when folding is still active, to see exactly where folding stops. The fix is usually reordering steps, so foldable operations, filters, basic column selection, happen before the custom function. That pushes as much work as possible down to the database before folding breaks, not after.
What interviewers look for
  • correctly explains query folding and why it matters for performance
  • correctly identifies the custom function as breaking folding at that step
  • proposes reordering steps to push foldable operations earlier as the fix
A pandas script that processes a multi-gigabyte CSV crashes with a memory error on a machine that technically has enough disk space to hold the file several times over. Why does disk space not matter here, and how would you fix it?
Loading a CSV with pd.read_csv by default reads the entire file into RAM as a DataFrame. Disk space is irrelevant to this specific failure, because the constraint being hit is available memory, not storage. A DataFrame in memory also typically takes up noticeably more space than the file's raw bytes on disk. That's due to Python object overhead and how pandas represents different data types internally. So 'the file fits on disk' says nothing about whether it fits comfortably in RAM. A few concrete fixes, in rough order of effort. Specify explicit, smaller data types for each column. Reading a column of small integers as int32, instead of pandas' default wider type, cuts its memory footprint directly. Read and process the file in chunks via the chunksize parameter, so only one piece is ever in memory at a time. Or switch to a library built for out-of-core or lazy processing, like Polars or Dask. Those don't require the full dataset resident in memory at once. The right fix depends on whether the processing can be done chunk-by-chunk. A sum or a filter can. Some operations needing the whole dataset's context, like certain joins, can't as easily.
What interviewers look for
  • correctly explains why disk space is irrelevant — the constraint is RAM
  • explains why in-memory representation can be larger than the file's raw size
  • proposes concrete fixes: dtype tuning, chunked reading, or an out-of-core library
A stakeholder asks for a dashboard with 'as many metrics as possible on one screen' so nothing important gets missed. How would you push back constructively, and what would you propose instead?
Pushing back here works better grounded in what happens to attention, not taste. A dashboard crammed with everything gives every metric roughly equal visual weight. That paradoxically makes it harder to notice the one or two numbers needing attention on a given day. Nothing is visually prioritized over anything else. The practical counter-proposal is a layered structure. Place a small set of the most decision-relevant metrics prominently at the top, the ones that would really change what someone does that day. Make secondary detail available one click deeper for whoever needs to dig in, instead of flattening it onto one dense screen. Frame this to the stakeholder simply: let's agree on the three numbers that should trigger action. Then build around making those impossible to miss. That usually lands better than arguing abstractly against density. It reframes the conversation from 'how much fits on screen' to 'what does this dashboard need to make someone do, in practice'. Showing a quick mockup of both versions side by side, if time allows, makes the trade-off concrete rather than theoretical.
What interviewers look for
  • grounds the pushback in attention/prioritization, not just aesthetic preference
  • proposes a concrete layered structure (key metrics prominent, detail available deeper)
  • proposes a constructive reframing of the stakeholder conversation, not just a refusal
A set of company-wide dashboard templates uses red and green to distinguish 'bad' from 'good' metrics. What's the problem with that default, and how would you fix it without losing the at-a-glance signal it's meant to provide?
Red-green color blindness is common enough in the general population that a red-versus-green encoding fails to communicate anything to a meaningful share of viewers. They see the two colors as much closer to indistinguishable than the designer intended. For those viewers, the entire 'glance at the color and know if it's bad or good' mechanism simply doesn't work. That's regardless of how clear it looks to someone with typical color vision. The fix that preserves the at-a-glance signal for everyone pairs color with a second, redundant visual cue that doesn't rely on color perception at all. An up or down arrow, a different icon, or a position/shape difference alongside the color, are examples. The information is then encoded at least twice through different channels. Swap red/green for a colorblind-safe palette, commonly blue/orange. It remains distinguishable across the common forms of color vision deficiency. Keep the redundant icon or shape cue too. That gives the strongest result. The signal survives even for a viewer who can perceive neither color difference clearly, since it's no longer resting on color alone.
What interviewers look for
  • correctly identifies red-green color blindness as a real, common accessibility gap
  • proposes a redundant non-color cue (icon, shape, direction) as the core fix
  • mentions a colorblind-safe palette swap as a complementary improvement, not the only fix
A Power BI dataset importing several years of transaction history has grown large enough that scheduled refreshes are slow and occasionally time out. How would you address this without losing historical reporting?
Incremental refresh is built for this situation. Instead of re-importing the entire history on every scheduled refresh, it partitions the data by a date range. It only re-pulls the recent partitions, the last few days or months, wherever data still changes. Older, settled partitions stay untouched after their initial load. That cuts both the refresh time and the load on the source system. The cost drops to roughly the size of the changing window, not the whole dataset. Setting this up correctly requires a reliable date column to partition on. It also requires deciding how far back data is still considered 'changeable' versus settled and safe to leave untouched. That depends on the real business process. Can a transaction from eight months ago still be corrected or backdated, or is anything older than a month effectively final? Say the full history still needs to be queryable for reporting, but doesn't really need to be refreshed. Incremental refresh keeps that older data present in the model, while excluding it from the ongoing refresh cost entirely. The historical reporting capability isn't lost. Only the unnecessary repeated reprocessing of data that never changes is cut.
What interviewers look for
  • correctly explains incremental refresh partitions by date and only re-pulls recent partitions
  • correctly reasons about how far back data should be considered settled vs changeable
  • clarifies historical data stays queryable, only the refresh cost is reduced
A Tableau dashboard connected live to a production database starts causing noticeable load on that database as more users open the dashboard. What would you investigate and change?
A live connection sends a new query to the source database for essentially every interaction. Opening the dashboard, changing a filter, hovering for a tooltip in some cases, all trigger one. So dashboard usage translates fairly directly into database query load. That load multiplies with concurrent viewers, which is exactly the pattern described. The first thing to check is whether the dashboard really needs to-the-second freshness. An extract, a Tableau-managed snapshot of the data refreshed on a schedule, hourly or nightly, might serve the use case just as well. Extracts move the query load to one scheduled refresh job, instead of every single user interaction. They're usually dramatically faster for the viewer too, since they read from Tableau's own optimized local data engine, rather than round-tripping to the source database. Where true live data is required for part of the dashboard, isolate just that piece to a live connection, while converting everything else to extracts. That limits the production database impact to only the parts that need it, instead of the whole dashboard inheriting live-query cost by default.
What interviewers look for
  • correctly explains why live connections multiply query load with usage
  • proposes extracts as the primary fix and explains why they help both load and speed
  • proposes a mixed approach (extract for most, live only where truly needed) for the harder case
A model built to predict customer churn performs very well on the training data but noticeably worse on new, unseen data. What's happening statistically, and how would you explain the fix to a stakeholder who just wants 'a better model'?
This is overfitting. The model has learned patterns specific to the quirks and noise of the exact training dataset, including relationships that are coincidental rather than really predictive. It hasn't learned the underlying signal that generalizes to new customers it hasn't seen. A model with enough flexibility can achieve near-perfect training performance precisely by fitting noise. Too many features relative to the amount of data, or a model complex enough to memorize rather than generalize, are examples of that flexibility. That's why training performance alone is a misleading signal of real-world usefulness. The practical fix directly targets generalization rather than training-set accuracy. Simplify the model, use regularization, or ensure evaluation always happens on a held-out validation set the model never saw during training. Explaining this to a stakeholder works better framed around the real business risk, not the statistical mechanism. A model that looks excellent in testing but overfit to the training data will make unreliable predictions on real future customers. That's the only performance that matters for a churn-prediction tool meant to guide real retention decisions.
What interviewers look for
  • correctly identifies overfitting and explains it as learning noise, not signal
  • proposes real fixes (simplification, regularization, held-out validation)
  • frames the stakeholder explanation around real-world reliability, not jargon
A senior stakeholder wants to ship a decision based on a pattern you've found in the data, but your own analysis shows the sample size is small enough that the pattern could easily be noise. How do you communicate that risk without simply being overruled?
Framing this purely as 'the sample is too small, I'd advise against it' invites exactly the kind of override being worried about. It reads as caution without a concrete, actionable alternative. A stronger approach quantifies the uncertainty concretely. Show a confidence interval or a realistic range of outcomes, instead of a single point estimate. The stakeholder then sees the pattern alongside how much it could plausibly vary, not just a confident-looking number with shaky foundations underneath. Propose a concrete way to reduce the risk without blocking the decision entirely. A smaller-scale pilot is one example. A short extension of the data collection period, or a decision that's explicitly reversible if the pattern doesn't hold at scale, are others. That gives the stakeholder a real path forward, instead of a binary 'wait' versus 'proceed anyway' choice. Say the decision still gets made despite the flagged risk. Document the uncertainty and the recommendation clearly, in writing, at the time, not after something goes wrong. That protects both the stakeholder's ability to make an informed call and the analyst's credibility, regardless of how the decision turns out.
What interviewers look for
  • proposes quantifying uncertainty concretely rather than just asserting caution
  • proposes a concrete risk-reducing alternative (pilot, more data, reversible decision)
  • mentions documenting the flagged risk in writing at the time, not after the fact
Your team is considering an AI tool that auto-generates insights and anomaly alerts directly from the company's live data warehouse. What would you want evaluated before trusting its output in front of stakeholders?
The first thing worth evaluating isn't the tool's output quality in isolation. It's understanding its underlying definition of 'anomaly' well enough to know what it will and won't flag. A threshold-based or statistical-deviation detector behaves very differently around known seasonal patterns, like a holiday sales spike, than a model trained to account for seasonality. Not knowing which kind is running underneath is a real risk. An important shift could be missed, or a routine, expected pattern could be falsely flagged as alarming. Run the tool against a period of historical data where the real anomalies and non-anomalies are already known. That quiet validation period, before it's trusted on live alerts, reveals its real false-positive and false-negative rate concretely. Don't just trust the vendor's marketing description of its accuracy. Beyond the tool itself, establish who reviews a flagged anomaly before it reaches a stakeholder. Also establish what the escalation path is when the tool is wrong. That matters just as much as the tool's raw accuracy. An unreviewed automated alert reaching leadership directly removes exactly the human sanity-check step that catches the tool's own mistakes before they cause a bad decision.
What interviewers look for
  • proposes understanding the tool's anomaly-detection methodology, not just trusting output
  • proposes validating against known historical anomalies before trusting live use
  • names human review/escalation process as a necessary safeguard, not just tool accuracy
Asked something we don’t cover? Tell us