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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.