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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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])

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])

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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