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
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
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.