Forum Discussion

Jameswh91's avatar
Jameswh91
Helper III
4 years ago

Sum with filter

Hi, I'd like help with a filtered calculation. I'm looking to sum the net sales but filtering out the other countries.

 

Any idea as to the example dax?

2 Replies

  • NilR's avatar
    NilR
    Post Patron

    Measure Name= 
    var _Countires= SelectedValue('table'[countriecolumn])
    var _OtherFilterSlicers= SelectedValue('table'[slicer])

    Return
    Calculated(Sum(Sales),filter('table', [countriescolumn]=_Countires && [othercolumns]=_OtherFilterSlicers)

  • v-zhangti's avatar
    v-zhangti
    Community Support

    Hi, Jameswh91 

     

    Can you provide some sample data? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures.

     

    Best Regards,

    Community Support Team _Charlotte

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