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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. 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

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.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

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

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.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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