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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Pratz203
Helper I
Helper I

DAX formula to find sum

Hello Experts,
I have data in the below format

Project IDRisk DescBudget
1aaa100
1bbb100
1ccc100
2ddd200
2eee200
3fff300
3ggg300


Expectation: I want to find the sum of budget for all the projects but here each project ID has multiple rows.
Ideally, for the above data, the sum of budget should be 600. I am sure we can implement using a measure but I am unable to proceed.
Thanks.


1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @Pratz203 

try smth like

Measure = SUMX(SUMMARIZE('Table', 'Table'[Project ID], "avrg", AVERAGE('Table'[Budget])), [avrg])

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

1 REPLY 1
az38
Community Champion
Community Champion

Hi @Pratz203 

try smth like

Measure = SUMX(SUMMARIZE('Table', 'Table'[Project ID], "avrg", AVERAGE('Table'[Budget])), [avrg])

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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