Forum Discussion
Calculating a total value within a filtered context
- 1 year ago
hidenseek9 , Try using
dax
TotalSalesFiltered =
CALCULATE(
SUM('ACT Data'[Value]),
'ACT Data'[Phase] = "Actus",
'ACT Data'[Line Item] = "Net Sales",
NOT('ACT Data'[Brand] IN {"New Product", "Discontinued"}),
ALLEXCEPT(MasterMapping, MasterMapping[Macro Brand])
)TotalVolumeFiltered =
CALCULATE(
SUM('ACT Data'[Volume]),
'ACT Data'[Phase] = "Actus",
'ACT Data'[Line Item] = "Net Sales",
NOT('ACT Data'[Brand] IN {"New Product", "Discontinued"}),
ALLEXCEPT(MasterMapping, MasterMapping[Macro Brand])
)
hidenseek9 , Try using
dax
TotalSalesFiltered =
CALCULATE(
SUM('ACT Data'[Value]),
'ACT Data'[Phase] = "Actus",
'ACT Data'[Line Item] = "Net Sales",
NOT('ACT Data'[Brand] IN {"New Product", "Discontinued"}),
ALLEXCEPT(MasterMapping, MasterMapping[Macro Brand])
)
TotalVolumeFiltered =
CALCULATE(
SUM('ACT Data'[Volume]),
'ACT Data'[Phase] = "Actus",
'ACT Data'[Line Item] = "Net Sales",
NOT('ACT Data'[Brand] IN {"New Product", "Discontinued"}),
ALLEXCEPT(MasterMapping, MasterMapping[Macro Brand])
)