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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. 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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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