All jobs / Data analyst / BI / BI Tools
Data analyst / BI interview question · 3–5 years
A margin percent field in the BI tool reads correctly on a row of detail but is wrong on every subtotal.
What happened, and how do you write the field?
The strongest answer
It is computed per row and then aggregated — usually averaged — by the tool; I write it as an aggregate, sum of margin over sum of revenue, so it recomputes at whatever grain the view shows
Why it works
Right — where the division happens decides the answer. Divide the sums; never average the ratios.
What a good answer covers
- Aggregate, then divide.
- Row-level calculations get averaged.
- Write ratios over the sums.
- Check the field at every grain.
Answers that fall short
- Close, but not the strongest: The subtotal is averaging the rows underneath it, so I would hide the subtotals
You found the cause and then removed the evidence; the field is still wrong wherever it is grouped. - Weak: The tool rounds each row, so the subtotal drifts a little from the detail
Rounding gives you pennies of drift, not a wrong percentage on every subtotal. - Red flag: I export it to a sheet and type the correct subtotals in by hand
Hand-typed subtotals break at the next refresh and nobody can trace where they came from.
Who gets asked this
More BI Tools questions
- Self-serve BI is producing 30 versions of revenue. What do you change?
- Half the workspace is unused dashboards. What do you do?
- A new joiner asks for warehouse admin “to explore.” What do you give?
- Extract the data into the BI tool or query the source live — how do you decide?
- Power BI and Tableau both exist. How do you stop a third?
- Product wants event-level replay of named customers in a shared tool. What do you require?
- Power BI, Tableau, Looker — what actually differs, and what decides it for a company?
- What does an analytics-platform team ship?