cancel
Showing results for 
Search instead for 
Did you mean: 
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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors