Stop 15 · Portfolio, PL-300 & InterviewsTopics · 5/7

Data Modeling Interview Questions

Part of the Power BI Roadmap

In short

Modeling questions test whether you can turn a messy business story into clean tables. Expect a scenario like 'design a model for a food delivery app' and follow-ups on grain, relationships and multiple dates.

Modeling questions ask you to design a star schema for a business scenario, choose relationship cardinality and direction, handle multiple dates, and explain the grain of a fact table.

The jaadu leans over a big drafting table drawing a house floor plan with a central room and small rooms around it, a ruler in hand.

Think of it like this

The architect's floor plan

Before building a house, an architect asks how many people live there and how they move around, then draws rooms and doors. A data model is the floor plan: fact tables are the busy rooms where things happen, dimensions are the cupboards with the details, and relationships are the doors.

Watch it happen

A star schema for a food delivery app

Fact: Orders (one row per order)
Date
Customer
Restaurant
Delivery Agent
City

1/5First state the grain: one row per order, with amount, discount and delivery minutes.

The big ideas

What you need to know

Grain first

Always say what one row of the fact table means. Most modeling mistakes come from mixed or unclear grain.

One-to-many, single direction

The default and safest relationship. Use bidirectional filtering only with a clear reason.

Multiple dates

Order date and delivery date both relate to Date. One relationship is active, the other inactive and used with USERELATIONSHIP.

Many-to-many

Usually solved with a bridge table, like customers belonging to many segments. Explain the risk of double counting.

How it works

Answering a design question

  1. 1

    Ask about the questions

    What will people measure and slice by? Revenue by city, delivery time by agent?

  2. 2

    State the grain

    Pick the fact table and say exactly what one row means.

  3. 3

    List dimensions

    Name the who, what, where and when tables and their keys.

  4. 4

    Define relationships

    One-to-many, single direction, and how you handle multiple dates.

  5. 5

    Mention edge cases

    Slowly changing attributes, many-to-many and late-arriving data.

See it in code

Walk through the code

dax
1-- Active:   Orders[OrderDate]    -> 'Date'[Date]2-- Inactive: Orders[DeliveredDate] -> 'Date'[Date]3 4Orders Placed = COUNTROWS ( Orders )5 6Orders Delivered =7CALCULATE (8    COUNTROWS ( Orders ),9    USERELATIONSHIP ( Orders[DeliveredDate], 'Date'[Date] )10)

1/3Only one relationship between two tables can be active at a time.

The role-playing date answer: one Date table, two relationships, one switched on inside a measure.

Save yourself the pain

Common mistakes

Oops

Jumping straight to tables before asking what the business wants to measure.

Do this instead

Ask one or two clarifying questions first. Interviewers reward this.

Oops

Setting every relationship to bidirectional so 'filters just work'.

Do this instead

Bidirectional filters can cause ambiguity and slow models. Use them only when needed and explain why.

Your mission

Design three models on paper

~30 min

Quick check

Orders have an order date and a ship date. What is the usual modeling approach?

Go deeper

  1. 1Design a star schema for a food delivery app on paper in ten minutes.
  2. 2Explain why bi-directional filters can cause problems.
  3. 3Prepare an answer on star vs snowflake schema for Power BI.

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge