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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Getting a aggregate (MAX) for a parent group based on an aggregate calculations at a sub group level

Good day,

Need some help figuring out how to get a aggregate (MAX) for a parent group based on an aggregate calculations at a sub group level.  Note, there is a date column in the dataset that will be used by a date slicer on the page.

Please see below:
Column A = Parent Group
Column B = Sub Group
Column C = Calculation based on Column B (Sub Group)
Column D = Max value in Column C grouped by Column A

 

ParentSub groupConversionExpected Value
AABCD89.9%91.7%
ABCDE82.2%91.7%
ACDEF72.8%91.7%
ADEFG87.7%91.7%
AEFGH78.6%91.7%
AFGHI80.9%91.7%
AGHIJ91.7%91.7%
ATotal73.7%91.7%
BHIJK71.2%85.5%
BIJKL85.5%85.5%
BJKLM78.4%85.5%
BKLMN59.5%85.5%
BLMNO57.5%85.5%
BMNOP69.7%85.5%
BTotal74.7%85.5%
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Based on your description, you can create a measure as follows.

max_value = MAXX(FILTER(ALLSELECTED('Table 2'),'Table 2'[Parent]=SELECTEDVALUE('Table 2'[Parent])),'Table 2'[Conversion])

 

Result:

v-yuaj-msft_0-1608512542564.png

 

v-yuaj-msft_1-1608512542568.png

 

Hope that's what you were looking for.

Best Regards,

Yuna

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Thanks @Anonymous,  I ended up needing to wrap a SUMMERIZE around the table in DAX to work with the final dataset.

Anonymous
Not applicable

Hi @Anonymous ,

 

Based on your description, you can create a measure as follows.

max_value = MAXX(FILTER(ALLSELECTED('Table 2'),'Table 2'[Parent]=SELECTEDVALUE('Table 2'[Parent])),'Table 2'[Conversion])

 

Result:

v-yuaj-msft_0-1608512542564.png

 

v-yuaj-msft_1-1608512542568.png

 

Hope that's what you were looking for.

Best Regards,

Yuna

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

vanessafvg
Super User
Super User

you can using summarize create a table that summarizes the parent group

 

max aggregate = SUMMARIZE('Table', 'Table'[Parent], "MAX Agg", MAX('Table'[Conversion]))




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

Thanks, vanessafvg but I don’t think this option works as the page will also have a date slicer that would be used against the dataset.  I am updating the original message to call out that challenge also.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.