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])
)
Hi hidenseek9,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution so that other community members can find it easily.
Thank you.
Hi hidenseek9,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.