skip to content

Power BI

4 roadmaps36 questionsupdated

Microsoft's stack from ingestion to sharing: Power Query for shaping, a star-schema model, DAX measures, report visuals, and the Service for distribution. Interviewers ask about it as a whole, because each layer's mistakes surface in the next one.

on this pageshow

guide

overview

~1 min

Power BI is a business-intelligence product, and interviews treat it as a pipeline rather than a charting tool: data is shaped in Power Query, loaded into a tabular model, calculated with DAX, drawn on report pages and distributed through the Power BI Service. Interviewers probe the seams between those layers, because a mistake made early rarely fails loudly. It surfaces two layers later as a slow refresh, a total nobody can explain, or a manager who can see another region's figures. The hub follows that pipeline. [Power Query (M)](/topics/data-power-bi-power-query) is shaping data before it reaches the model, and deciding whether that work runs at the source or on the refresh machine. [Data modeling](/topics/data-power-bi-data-modeling) is the star schema and its relationships, where most wrong numbers begin. [DAX measures](/topics/data-power-bi-dax-measures) is the calculation language and its two kinds of context. [Report visuals](/topics/data-power-bi-report-visuals) is the canvas and how visuals filter each other. [Power BI Service](/topics/data-power-bi-service-sharing) covers publishing, refresh, workspaces and apps, and [row-level security](/topics/data-power-bi-row-level-security) decides who sees which rows. Junior rounds check vocabulary: measure or column, merge or append, what a click on one chart does to the page. Senior and principal rounds turn into diagnosis and design: why a total looks wrong, why a refresh succeeded while the numbers stayed old, where a rule should live when several tools read the same data. Start where the data does, in Power Query, then spend the most time on the model and filter context: they explain most of what DAX, visuals and security do.

primer

### Five layers, one direction Power Query produces tables, the model relates them, DAX computes over those relationships, visuals ask the model questions, and the Service schedules, secures and shares the result. A strong answer names the layer a problem belongs to before proposing a fix, because the same symptom, a slow page or a wrong figure, can start in any of them. ### The model is a star Fact tables of events and transactions sit in the middle; dimensions such as date, product, customer and region surround them, joined on keys. Filters flow from a dimension down to its facts along one-to-many relationships. Departures from that shape (filters running both ways, many-to-many joins, snowflaked dimensions) are allowed, but each has a price interviewers expect you to name. ### Measures over columns A calculated column is computed at refresh and stored per row; a measure is a formula evaluated for every cell a visual shows. Most business logic belongs in measures, so one definition answers every slice of the data. Choosing between the two is the first DAX judgement an interviewer checks. ### Filter context decides every number Every aggregated figure on a report is evaluated under a set of filters assembled from the visual's grouping, slicers, cross-filtering, page and report filters, and security roles. `CALCULATE` exists to change that set. Once you can say which filters apply to one cell, totals, time intelligence and RLS stop looking like special cases. ### Where work runs decides speed Refresh time depends on how much Power Query pushes down to the source; query time on model size, relationship design and measure complexity; render time on how many visuals a page asks for. **Import** caches data in the in-memory engine, **DirectQuery** sends each visual's query to the source: the choice moves the cost rather than removing it. ### Security rides on the model Row-level security is a filter on the model, so beyond the table it is defined on it reaches only what relationships connect. Workspace roles, apps and permissions decide who reaches the model at all. Both are configured in the Service, but a sound security answer starts with the model's design.

Query folding
Power Query converting its steps into one native source query, so filters and aggregation run in the database before rows are transferred.
Semantic model
The published model behind reports: tables, relationships, measures, security roles and, in Import mode, the data itself. Formerly called a dataset.
Star schema
A model layout with fact tables of events at the centre and dimension tables of descriptive attributes around them, joined one-to-many on keys.
Cross-filter direction
The relationship setting that decides which way filters travel: from the one side to the many side by default, or both ways.
Measure
A named DAX formula evaluated at query time for each cell of a visual. It stores no values in the model.
Filter context
The set of filters in force when a DAX expression is evaluated, assembled from visuals, slicers, report filters, security roles and CALCULATE.
Row context
The notion of a current row, present in calculated columns and iterator functions. It identifies a row but does not filter the model.
CALCULATE
The DAX function that evaluates an expression under a modified filter context; the main tool for changing what a measure sees.
Iterator
A DAX function such as SUMX that evaluates an expression once per row of a table, then aggregates the results.
Date table
A table with one row per day over a continuous range, related to the facts and marked as the model's date table for time intelligence.
Storage mode
How a table's data is served: Import caches it in memory at refresh, DirectQuery queries the source each time a visual asks.
On-premises data gateway
Software installed inside a private network that lets the Power BI Service reach sources it cannot connect to directly.
Row-level security (RLS)
Roles on the semantic model holding DAX filters that limit the rows read-only users see, either fixed per role or driven by the signed-in user.
USERPRINCIPALNAME
A DAX function returning the signed-in user's sign-in name, used by dynamic RLS to look that user up in a mapping table.

Follow one refresh and one click. On refresh, the Service runs each query's applied steps, reaching through a gateway when the source sits in a private network. The folded part executes at the source, the rest on the machine doing the refresh, and the results load into the semantic model's tables. Calculated columns and calculated tables are recomputed and stored at the same moment; measures are not. When a reader opens a page, each visual sends a DAX query to the model. The visual's grouping, slicers, page and report filters, any cross-filter from a clicked visual, and the reader's RLS role together form the filter context. Relationships carry those filters from dimensions to facts, and measures are evaluated once per cell and again for each total. Nothing on the page stores numbers: bookmarks, drill-through and tooltips change what the next query asks, not what the model holds. The layers therefore depend on each other in one direction: - Power Query decides the **grain and keys** the model receives; a messy key reappears later as a (Blank) row or a relationship that cannot be built. - The model decides **which way filters can travel**, which bounds both DAX and RLS. - DAX decides **what each cell means**, so a non-additive measure produces a total that is correct and still surprising. - The Service decides **who reaches the model and how fresh it is**. One measure and one role show the layers meeting: ```dax // Measure on Sales: a ratio, so its total is a fresh evaluation, not a sum Margin % = VAR Revenue = SUM ( Sales[Revenue] ) VAR Cost = SUM ( Sales[Cost] ) RETURN DIVIDE ( Revenue - Cost, Revenue ) // Role "EMEA": a filter on the Region table, not on Sales [Region] = "EMEA" ``` The role never names Sales. It restricts Sales only because a relationship runs from Region to Sales, and it binds only readers without edit rights on the model. Replace the fixed value with a lookup of the signed-in user and the same design becomes dynamic RLS.

  1. Power Query (M) →

    Where the data enters: applied steps, merges and folding decide the tables, keys and refresh cost everything downstream inherits.

  2. Data Modeling →

    The star schema, relationships and filter direction that DAX, visuals and security all rely on; most wrong numbers start here.

  3. DAX Measures →

    Row and filter context, CALCULATE and iterators: the language makes sense only once the model it filters is clear.

  4. Report Visuals →

    How visuals filter each other and how drill-through, bookmarks and diagnosis of a slow page build on the model and measures.

  5. Power BI Service →

    Publishing, refresh through a gateway, workspaces and apps: how a finished model and report reach their readers.

  6. Row-Level Security →

    Last, because it combines a DAX filter, the model's relationships and the Service's workspace roles.

  • Writing business logic as calculated columns because they feel like spreadsheet formulas: the value is fixed at refresh, enlarges the model and ignores the reader's slicers.

  • Setting relationships to filter in both directions to make numbers appear, which creates ambiguous paths, slows queries and can widen what a security role lets through.

  • Expecting a matrix total to equal the sum of its rows; for ratios and distinct counts it is its own evaluation, see the total row question.

  • Running time-intelligence functions against the fact table's own date column instead of a continuous date table that is related to the facts and marked.

  • Placing a step that cannot fold early in a query, so every later filter runs on the refresh machine over the full source table.

  • Testing RLS while signed in as a workspace member and drawing a conclusion: editors are not filtered, so use View as or a Viewer account.

  • Treating a successful refresh as proof of fresh data without checking which model refreshed and whether the upstream load had finished.

Power BI is weighed most often against Tableau, Qlik Sense and Looker. A defensible comparison names each tool's centre of gravity: Power BI and Looker put a governed semantic model at the core, defined in DAX in one and LookML in the other, while Tableau's strength is visual exploration over the sources it connects to. In organisations already on Microsoft 365 and Azure, licensing and identity integration often settle the choice before features are compared. Its pieces are shared across Microsoft's analytics stack. The same tabular engine and DAX run in Analysis Services Tabular and in Excel's Power Pivot, and Power Query also appears in Excel and in dataflows, so the skills transfer. Microsoft Fabric now hosts Power BI alongside lakehouse, warehouse and pipeline workloads. Upstream, Power BI usually reads from a warehouse or lakehouse such as SQL Server, Azure SQL, Snowflake or Databricks, and a recurring design question is how much logic belongs there rather than in Power Query or DAX. The working split: shared, governed transformation upstream; calculation that must respond to the reader in DAX; Power Query for the shaping only one model needs.

explore

report an issue with this guide →

questions

page 2 of 2

In Power BI, how do you model both order date and ship date against one Date table?

level: middleimportance: nice to knowfreq 42%

basics

~20 s

Only one relationship between two tables can be active, so the second date relationship is created inactive. Either activate it per measure with USERELATIONSHIP, or load a second, separately named date table so users can slice by each role directly.

open as a page

In DAX, why doesn't CALCULATE change the value of a VAR defined before it?

level: seniorimportance: nice to knowfreq 32%

basics

~20 s

A DAX variable is evaluated once, in the context where it is defined, and its result is then a constant. CALCULATE later in the expression modifies the filter context for what follows, but cannot re-evaluate a value that has already been computed.

open as a page

In Power BI, what causes Power Query's Formula.Firewall error and how do you fix it?

level: seniorimportance: nice to knowfreq 30%

basics

~20 s

Power Query's data privacy firewall blocks combinations where a value from one source could leak into a query sent to another. It fires when a query both references other queries and touches a source directly, or when combined sources have incompatible privacy levels.

open as a page

How do Publish to Web, secure embedding and Power BI Embedded differ in who can see the data?

level: seniorimportance: nice to knowfreq 34%

basics

~20 s

Publish to Web makes a report anonymously public to anyone with the link. Secure embedding still authenticates each viewer with their own account and licence. Power BI Embedded lets an application authenticate on behalf of users who have no Power BI identity.

open as a page

How do you decide whether to allow AppSource custom visuals in Power BI reports across an organization?

level: principalimportance: nice to knowfreq 24%

basics

~20 s

Weigh the capability gained against supportability: certified visuals pass a Microsoft code review and avoid external service calls, so they behave in export and subscription scenarios. Most organizations allow certified visuals plus a short vetted list, and block the rest.

open as a page

Should row filtering live in Power BI RLS or in the warehouse when several tools read the same data?

level: principalimportance: nice to knowfreq 30%

basics

~20 s

Enforce once, as close to the data as the access pattern allows. Warehouse row policies with DirectQuery and single sign-on cover every tool but cost per query; Power BI RLS is faster and self-contained but re-implements the rule for one tool over a cached copy.

open as a page

showing 31–36 of 36