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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
gulberg
Frequent Visitor

Create Summarized Table Based on Value of One Table and Max of Another

Hello,

I am trying to create a new table (not a measure) by way of DAX, where I want to have a new column summarized by one column (Effor Type) and display sum of MAX Values based on another column (Effort Class)
I have this as the main table:

IDEffort TypeEffort ClassCalculated Value
401EFFORTComplexity2.5
401EFFORTComplexity2.5
401EFFORTComplexity2.5
401EFFORT Budget4
401EFFORT Budget4
401EFFORT Budget4
401EFFORT Resourcing4
401EFFORT Resourcing4
401EFFORT Resourcing4
401EFFORT Timing4
401EFFORT Timing4
401EFFORT Timing4
401EFFORTSustainment4
401EFFORTSustainment4
401EFFORTSustainment4
401READINESSInternal Resourcing2.5
401READINESSInternal Resourcing2.5
401READINESSInternal Resourcing2.5
401VALUE Impact8
401VALUE Impact8
401VALUE Impact8
401VALUECloud0
401VALUECloud0
401VALUECloud0
401VALUERegulatory0
401VALUERegulatory0
401VALUERegulatory0
401VALUEUE8
401VALUEUE8
401VALUEUE8

 

I want the summarize table as follows;

IDEffort TypeTotals
401EFFORT18.5
401READINESS2.5
401VALUE16

 

Any help is much appreciated.

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

I would probably do this in Power Query where it would be 2 'Group By' transforms.

A new table in DAX would be :

TableWE = var _preTab = SUMMARIZECOLUMNS(TableYTest[ID],  TableYTest[Effort Class], TableYTest[Effort Type], "Amoun",  MIN(TableYTest[Calculated Value]))
RETURN
GROUPBY (_preTab, TableYTest[ID],  TableYTest[Effort Type],  "Spec Amount", SUMX ( CURRENTGROUP (), [Amoun] ))

View solution in original post

2 REPLIES 2
HotChilli
Super User
Super User

I would probably do this in Power Query where it would be 2 'Group By' transforms.

A new table in DAX would be :

TableWE = var _preTab = SUMMARIZECOLUMNS(TableYTest[ID],  TableYTest[Effort Class], TableYTest[Effort Type], "Amoun",  MIN(TableYTest[Calculated Value]))
RETURN
GROUPBY (_preTab, TableYTest[ID],  TableYTest[Effort Type],  "Spec Amount", SUMX ( CURRENTGROUP (), [Amoun] ))

Thank you very much @HotChilli I am a newbie so can you please expand on why you would Group by in Power Query instead of doing this in DAX?

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

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