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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Anonymous
Not applicable

Averge per header instead of line level

dear all,

 

I have the following table:

OrderOrderlineQ
A11000
A2500
A310000
B15000
B22500
C1400
C2200
C3600
C4600
 average =2311,1

 

The average of the lines is 2311, but i want an order average, which would look like this, with the following outcome:

 

OrderOrderlineQOrder Q
A1100016500
A2500 
A310000 
B150007500
B22500 
C14001800
C2200 
C3600 
C4600 
 average =2311,18600

 

So where all the Q's are summed together, and then taken the average, so you know the average Q per order.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous ,

Try like

AverageX(Summarize(Table,Table[Order], "_1",sum(Table[Q])),[_1])
Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous ,

Try like

AverageX(Summarize(Table,Table[Order], "_1",sum(Table[Q])),[_1])
Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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