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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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