0
0
Power BIbi_tool~20 mins

Star schema concept in Power BI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Star Schema Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Identify the central table in a star schema

In a star schema, which table acts as the main table that connects to all other tables?

ADimension table
BBridge table
CLookup table
DFact table
Attempts:
2 left
💡 Hint

Think about which table holds the measurable data like sales or quantities.

data_modeling
intermediate
1:30remaining
Choose the correct relationship type in a star schema

What type of relationship typically exists between the fact table and each dimension table in a star schema?

AOne-to-many from dimension to fact
BOne-to-many from fact to dimension
CMany-to-many between fact and dimension
DOne-to-one between fact and dimension
Attempts:
2 left
💡 Hint

Consider which table has unique keys and which has repeated keys.

dax_lod_result
advanced
2:30remaining
Calculate total sales by product category using DAX

Given a star schema with a fact table 'Sales' and a dimension table 'Product' with a 'Category' column, which DAX measure correctly calculates total sales amount by product category?

Power BI
Total Sales by Category = CALCULATE(SUM(Sales[Amount]), ALLEXCEPT(Product, Product[Category]))
ACALCULATE(SUM(Sales[Amount]), ALLEXCEPT(Product, Product[Category]))
BSUMX(Product, Sales[Amount])
CSUM(Sales[Amount])
DCALCULATE(SUM(Sales[Amount]), ALL(Product))
Attempts:
2 left
💡 Hint

Think about keeping the filter on category while removing other filters.

visualization
advanced
2:00remaining
Best visualization for star schema sales data

You have sales data in a star schema with dimensions for Product, Date, and Store. Which visualization best shows total sales trends over time by product category?

APie chart showing sales amount by Store
BStacked area chart with Date on X-axis and sales amount stacked by Product Category
CTable listing all sales transactions
DScatter plot with Product price vs sales quantity
Attempts:
2 left
💡 Hint

Think about showing changes over time and comparing categories.

🔧 Formula Fix
expert
3:00remaining
Identify the error in star schema relationship setup

You created relationships in Power BI star schema: fact table 'Sales' linked to 'Product' dimension on ProductID, and to 'Date' dimension on DateKey. But your sales by product report shows incorrect totals. What is the most likely cause?

AThe relationship between Sales and Product is set as many-to-many instead of one-to-many
BThe relationship between Sales and Date is inactive
CThe Product dimension has duplicate ProductID values
DThe Sales table has missing ProductID values
Attempts:
2 left
💡 Hint

Check uniqueness of keys in dimension tables.