Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Tevon713
Helper V
Helper V

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())

 

Tevon713_0-1707841510707.png

HIDE NON Expenses:

Tevon713_0-1707842830936.png

 

 

 

1 ACCEPTED SOLUTION

@Tevon713 

Daniel29195_0-1707860869373.png

 

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 .

Daniel29195_1-1707860918962.png

 

 

 

 

 

 

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

 

View solution in original post

8 REPLIES 8
Daniel29195
Super User
Super User

@Tevon713 

did you filter the slicer values from the filter pane ? 

on filter visual or page   ?

Thanks @Daniel29195 filters on visual. What can I do on the measure to sum it up?

 

Tevon713_0-1707850635789.png

 

@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 .

 

 

@Daniel29195 

No that didn't work it almost simiar to my formula.

 

Tevon713_0-1707857836536.png

 

@Tevon713 

could you please share the file so i can take  a look?

@Daniel29195 

Yes, please see below.

 

Demo PBI 

@Tevon713 

Daniel29195_0-1707860869373.png

 

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 .

Daniel29195_1-1707860918962.png

 

 

 

 

 

 

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

 

Duh... why I didn't think of that. Maybe just caught up in the moment tyring to solve for x. Thanks @Daniel29195 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.