Menu
CoddyTech

Filters Follow Relationships

Part of the Power BI Basics section of Coddy's Power BI journey. Lesson 19 of 28.

Sales and Products are linked by a relationship on ProductID. A filter on Products flows to the sales of those products.

Filters flow from the lookup tables to Sales, not back: a store filter does not filter Products.

COUNTROWS(Products) counts the whole menu in every store row; DISTINCTCOUNT(Sales[ProductID]) counts what the store sold.

challenge icon

Challenge

Easy

How much of the menu does each shop really sell? Write Products Bought: how many different products appear in the sales. It is checked for each store.

Try it yourself

Products Bought =
StoreProducts Bought
Lisbon Riverside
Porto Ribeira
Madrid Centro
Barcelona Gracia
Berlin Mitte
Total
Fields
  • Sales
  • Products
  • Stores
    • StoreID
    • Store
    • City
    • Country
    • OpenDate
  • Customers
  • Dates
  • Targets
quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

All lessons in Power BI Basics