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
bipolarminds
Frequent Visitor

Create measure that computes average over groups of rows

I am given a table table1 with columns A, B, C and D. I would like to group rows that have same column entry in A, B and C. Then I would like to count the rows in every group, so that I can vizualize the average group size in the category defined by column C.

How can I achieve this?

 

1 REPLY 1
amitchandak
Super User
Super User

@bipolarminds , No vary clear

 

you need like

 

AverageX(filter(allselected(Table), [C] = max(Table[C]) ) , Table[Value]))

 

or

 

calculate(AverageX(values(Table[C]) , calculate(Sum(Table[Value]))),filter(allselected(Table), [C] = max(Table[C]) ))

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.