Forum Discussion

George87's avatar
George87
New Member
2 years ago
Solved

CALCULATE DOES NOT FILTER AS INTENDED

Good day all, I am new to PB and I am having problems in obtaining a value that is the difference between demand and capacity for a given region. The goal is to create a measure that gives the diffe...
  • ValtteriN's avatar
    ValtteriN
    2 years ago

    Hi,

    You can use ALL to remove only the location: ALL( [<table> | <column>[, <column>[, <column>[,…]]]] )

    [Sales all locations] = CALCULATE(SUM('Master Capacity'[weekly capacity]), ALL('Master Capacity'[location]))