Menu
CoddyTech

Share of What Is Shown

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

With a visual filter on, a share built with ALL still divides by everything.

ALLSELECTED removes the row's filter and keeps the visual's and the page's filters.

Share Shown = DIVIDE([Revenue], CALCULATE([Revenue], ALLSELECTED(Stores)))

The rows the visual shows add up to 100%.

challenge icon

Challenge

Medium

The table is filtered to Portugal and Spain. Write Share Shown: a store's Revenue as a share of the stores shown, so the rows add up to 100%. It is checked for each store.

Try it yourself

Share Shown =
StoreShare Shown
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