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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
PowerBIOrg
Resolver II
Resolver II

Sum by Category/Type without ignoring other filters

Hi All, 

 

I would like to sum up the amount by Type. I know that ALLEXCEPT work in Scenario 1. 

 

Is there anyone can help to create a measure that could work for all scenario?

 

     Scenario 1Scenario 2Scenario 3Scenario 4
         
    Filter 1 (Category):All SelectedmAll Selectedm
    Filter 2 (Year):All SelectedAll Selected20202021
         
Claim NoTypeCategoryYearAmountSum by TypeSum by TypeSum by TypeSum by Type
axl2019100600NANANA
dxm2020300600500300NA
exm2019200600500NANA
bym2021100200100NA100
fyn2021100200NANANA
czn2020100100NA100

NA

 

Thanks!

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @PowerBIOrg 

Please check the below.

 

Picture1.png

 

Sum by Type Measure =
CALCULATE (
SUM ( 'Table'[Amount] ),
ALLSELECTED ( 'Table' ),
VALUES ( 'Table'[Type] )
)

 

 

https://www.dropbox.com/s/sgydb85cmf1uuum/powerbiorg.pbix?dl=0 

 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM



Microsoft MVP



If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.




LinkedInVisit my LinkedIn page




Outlook BookingSchedule a short Teams meeting to discuss your question



View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi, @PowerBIOrg 

Please check the below.

 

Picture1.png

 

Sum by Type Measure =
CALCULATE (
SUM ( 'Table'[Amount] ),
ALLSELECTED ( 'Table' ),
VALUES ( 'Table'[Type] )
)

 

 

https://www.dropbox.com/s/sgydb85cmf1uuum/powerbiorg.pbix?dl=0 

 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM



Microsoft MVP



If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.




LinkedInVisit my LinkedIn page




Outlook BookingSchedule a short Teams meeting to discuss your question



Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.