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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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