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

Answers that fall short

Who gets asked this

More BI Tools questions