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
Anonymous
Not applicable

Group Average Hierarchy

Hey All,

 

I have a hierarchy that goes Division - Group - Sub Group. I'm trying to return a division average that can apply to both the group and subgroup. I've tried variations on the formula below but the best I can return is a division rate that only applies at the Group level but not the subgroup. 

 

Division Rate = 

if(ISFILTERED(dimGroup[Group]),
AVERAGEX(
	KEEPFILTERS(VALUES(dimDivision[Division])),
CALCULATE([Rate],all(dimGroup[Group]))), "FALSE")

The tables below show what I'm returning - you'll see the division rate in the group table matches the respective divisions in the division table and I want the same to apply to the sub grouping. Thanks in advance!

Capture.PNG

 

1 REPLY 1
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

Have you tied replacing dimGroup[Group] with dimSubGroup[SubGroup] in above measure formula to test if it can return expected result?

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.