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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.