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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Tevon713
Helper IV
Helper IV

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.