1. University MCA (AI/ML) Semester 2
  2. CAB206
  3. Unit 4

CAB206 · Unit 4: Visualisation and BI tools

Power BI and Tableau fundamentals

9 practice questions

Key points

  • Power Query = ETL (M); DAX = calculations
  • Measure at query time; calculated column at refresh
  • CALCULATE changes filter context; DIVIDE avoids divide-by-zero errors
  • Import caches data; DirectQuery queries the source live
  • Tableau: dimensions vs measures, extract vs live, LOD expressions

Two widely used BI platforms; the ideas transfer to others (Looker Studio, Qlik, and open-source Apache Superset and Metabase).

Power BI

  • Power BI Desktop is the authoring tool; the Power BI Service (cloud) hosts workspaces, sharing, scheduled refresh and dashboards.
  • Power Query (language M) connects and transforms data, the ETL step inside Power BI.
  • The data model links tables with relationships. Best practice is a star schema: dimension (one side) filters fact (many side) through one-to-many relationships.
  • DAX (Data Analysis Expressions) defines calculations.
  • A calculated column is computed row by row at refresh time and stored in the model.
  • A measure is computed at query time in the current filter context (what slicers, filters and visual axes select).
  • CALCULATE evaluates an expression in a modified filter context; DIVIDE(x, y) safely handles division by zero (returns BLANK by default); time functions include TOTALYTD and SAMEPERIODLASTYEAR.
  • Storage modes: Import copies data into the in-memory model (fast, refreshed on schedule); DirectQuery sends queries to the source at run time (fresh, but speed depends on the source); Composite mixes both.
  • Row-level security (RLS) limits which rows each user or role can see. An on-premises data gateway enables scheduled refresh of on-premises sources.
  • A report has pages of visuals; a dashboard in the Service is a single page of tiles pinned from reports.

Tableau

  • Dimensions are categorical fields; measures are numeric fields to aggregate. Discrete fields show as blue pills, continuous as green.
  • Extract (.hyper) is a fast local snapshot; live connection queries the source.
  • Calculated fields, parameters, and LOD expressions (FIXED, INCLUDE, EXCLUDE) compute at a chosen level of detail regardless of the view.
  • Dashboards combine worksheets with filter and highlight actions; stories sequence views into a narrative.

Try two questions

Question 1 · Tier 3, Apply

A regional manager must see only their own region's rows in a shared report. Which feature provides this?

  1. Calculated tables
  2. Composite storage mode
  3. Row-level security
  4. Report themes
Show the answer

C. RLS defines role rules that filter table rows according to the signed-in user.

Question 2 · Tier 1, Recall

DAX in Power BI stands for:

  1. Dynamic Aggregation Extensions
  2. Data Auditing Exchange
  3. Dimensional Access eXchange
  4. Data Analysis Expressions
Show the answer

D. DAX is the formula language for measures and calculated columns.