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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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