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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Markie
Regular Visitor

Conditional sum of values in column

Hi all!

 

I have a a dataset such as:

 

TypeValue

Month

Income123

Jan

Expense321

Feb

Other456

Mar

 

I'd like to sum all incomes per month as well as expenses.

 

Once i do that i'll be able to substract Income-Expense and display a burndown chart of the finances.

 

Any help would be appreciated on how to best achieve it.

 

Thanks in advance!

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Markie

 

You can create three measures and put them as well as the Month column into a table visual to check the sum result.

Incomes Total = CALCULATE(SUM('Table'[Value]),'Table'[Type]="Income")

Expenses Total = CALCULATE(SUM('Table'[Value]),'Table'[Type]="Expense")

Remains = [Incomes Total] - [Expenses Total]

072201.jpg

 

You can put these measures in other visuals later.

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @Markie

 

You can create three measures and put them as well as the Month column into a table visual to check the sum result.

Incomes Total = CALCULATE(SUM('Table'[Value]),'Table'[Type]="Income")

Expenses Total = CALCULATE(SUM('Table'[Value]),'Table'[Type]="Expense")

Remains = [Incomes Total] - [Expenses Total]

072201.jpg

 

You can put these measures in other visuals later.

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors