Forum Discussion

DataSundowner's avatar
DataSundowner
Icon for Helper II rankHelper II
1 year ago
Solved

DAX 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 ...
  • Anonymous's avatar
    Anonymous
    1 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 Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.