Forum Discussion
DataSundowner
Helper II
1 year agoDAX to Calculate Sum Ignoring a Column
Hello Community. I need some help to build a DAX measure that calculates sum of sales for total region regardless of store being filtered. It sounds pretty straight forward, but my model is a little ...
- Anonymous1 year ago
Hi DataSundowner ,
I suggest you to try code as below to create a measure.
Sales - Region Total = CALCULATE(SUM(Sales[Sales]),REMOVEFILTERS(RegionStoreMap[MapStoreID]),Store[RegionID] in VALUES(Store[RegionID]))Relationship in my sample:
Result is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
1 year agoNot applicable
Hi DataSundowner ,
I suggest you to try code as below to create a measure.
Sales - Region Total =
CALCULATE(SUM(Sales[Sales]),REMOVEFILTERS(RegionStoreMap[MapStoreID]),Store[RegionID] in VALUES(Store[RegionID]))
Relationship in my sample:
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- DataSundowner1 year ago
Helper II
It works perfect. Thank you very much, Rico!