Menu
CoddyTech

Checking Copilot's DAX

Part of the DAX with CALCULATE section of Coddy's Power BI journey. Lesson 23 of 24.

A measure can run without an error and still answer a different question.

Check which filters it removes, one row you know, and the total.

Store Share = DIVIDE([Revenue], CALCULATE([Revenue], ALL(Products)))

By store this is 1, or 100%, everywhere: it removes the wrong table's filters.

challenge icon

Challenge

Medium

Copilot wrote Store Share for Mia, and every store shows 1, which is 100%. Fix it so each store shows its share of all stores. It is checked for each store and the total.

Try it yourself

Store Share =
StoreStore Share
Lisbon Riverside
Porto Ribeira
Madrid Centro
Barcelona Gracia
Berlin Mitte
Total
Fields
  • Sales
    • Revenue
    • Total Units
    • Customers
  • 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 DAX with CALCULATE