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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
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 community update carousel

Fabric Community Update - June 2025

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