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
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.
This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in DAX with CALCULATE
1Changing the Filters
Meet CALCULATEA Filter Replaces a FilterSeveral Filters at OnceKeeping FiltersRecap - Member Drink Sales4DAX You Can Read
Variables with VARChoosing with SWITCHSWITCH(TRUE()) for RangesOne Value or ManyRows or the TotalChecking Copilot's DAXRecap - Sales by Price Band