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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
DylanBanINT
Helper I
Helper I

Calculate total cost of projects but removing duplicates

Hi, I am trying to calculate the total cost of all my projects, however my projects are in multiple parts but the cost at the end of each part is still the same

 

Project NameProject PartBudget
Project 1Part 1£123.45
Project 1Part 2£123.45
Project 1Part 3£123.45
Project 2Part 1£45.95
Project 2Part 2£45.95
Project 3Part 1£68.72
Project 3Part 2£68.72
Project 3Part 3£68.72
Project 3Part 4£68.72
Project 3Part 5

£68.72

 

 

Example table above, I want to calculate the total amount of the budget column however I only want to do it for each project and remove any duplicates so that the total amount I should get should be ££238.12

 

Unfortunately I cannot do this manually as the data gets update live on Sharepoint so I will need a formula for this! Thanks in advance for anyone that can help. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@DylanBanINT ,

Create a measure like

 

Sumx(summarize(Table, Table[Project Name], Table[Budget]), [Budget])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@DylanBanINT ,

Create a measure like

 

Sumx(summarize(Table, Table[Project Name], Table[Budget]), [Budget])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi, what does the 'Table' parts do in this?

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.