Forum Discussion

Tevon713's avatar
Tevon713
Helper V
2 years ago
Solved

ALLSELECTED SUM only data filtered

Hi All,

 

Have simple sample of data. See below snippet in data table. The formula seem to work fine, with selection in filter.

I want to be able to omit certain column or attribute that not expenses. If I hide non expenses in filter and then sum it appear to be same result. How would able to sum correctly for just the shown attribute columns? Thank you all.

 

With ALL Columns

Total Exp_1 = CALCULATE(SUM('Table'[Value]),ALLSELECTED())

 

HIDE NON Expenses:

 

 

 

  • Tevon713 

     

    you can set the filter on the page level in the filter pane .

    that would work . 

     

    or ,

    you need to select each value in the slicer, ( and not using the select all ) for it to work .

     

     

     

     

     

     

    If this answers your question  ,  mark it as the solution āœ… so can you can help  other people in the community find it easily .

     

8 Replies

      • Daniel29195's avatar
        Daniel29195
        Community Champion

        Tevon713 

        can you please try the following measure : 

        sumx (

        values(tbl_name[col_name]) ,

        CALCULATE(SUM('Table'[Value])

        )

         

        let me know if that works for you .

         

         

        if this not what you are looking for, please share a screenshot of wthe desired output with sampl data .

         

         

        If this answers your question  ,  mark it as the solution āœ… so can you can help  other people in the community find it easily .