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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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])

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])

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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