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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Find the distinct project sum of budget

I am looking to find the sum of the budget of disticnt project .  Really appreciate if someone can help me on this

 

Project namestatusbudgetdatesk
Project Adev650020200528
Project Bin progress500020200528
Project CQA550020200528
Project Acompleted650020200529
Project BUnit testing500020200529
Project CComplted 550020200529

 

expected result : 

Budget of project17000 (6500+5000+5500)
1 ACCEPTED SOLUTION
stevedep
Memorable Member
Memorable Member

Hi,

 

Here is the solution for you:

sumdistinct = 
var tbl = SUMMARIZE('Table';'Table'[Name];'Table'[Project];'Table'[Budget])
return
SUMx(tbl;'Table'[Budget])

As can be seen here:

sumdistinct.png 

Power BI file is available here

 

Please mark as solution if this is what you are looking for. Thanks!

 

Kind regards,

 

Steve. 

View solution in original post

7 REPLIES 7
stevedep
Memorable Member
Memorable Member

Hi,

 

Here is the solution for you:

sumdistinct = 
var tbl = SUMMARIZE('Table';'Table'[Name];'Table'[Project];'Table'[Budget])
return
SUMx(tbl;'Table'[Budget])

As can be seen here:

sumdistinct.png 

Power BI file is available here

 

Please mark as solution if this is what you are looking for. Thanks!

 

Kind regards,

 

Steve. 

Anonymous
Not applicable

@stevedep  thanks you so much Steve. Its working fine. 

 

 

harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

 

You can try these measures.

 

1.jpg

 

 

BudgetT = MAX('Table'[budget])
 
Project Budget = SUMx(DISTINCT('Table'[Project name]),[BudgetT])
 
 
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Anonymous
Not applicable

@harshnathani  thank you Harsh for you time. Really appreciate it. Sorry for not provideing more details on the requirement. 

Anonymous
Not applicable

Hi @harshnathani 

when i create this measure BudgetT = MAX('Table'[budget]) getting an error "The MAX funtion only accept a column reference as the argument number 1". 

 

Then i tried to change it by BudgetT = MAX('Table'[budget],1) , this measure error got fixed but the final measure getting as below

 

project budget: 6500212

 

Could you please help me 

Hi @Anonymous ,

 

Can you share your .pbix file removing all sensitive data ?

 

Regards.

HN

Hi @Anonymous ,

 

Is budget a column in your table or a measure ?

 

 

 

Regards,

HN

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors