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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Panto
Helper I
Helper I

Average of Averages

Hi everyone,

 

I'm struggling to handle an easy formula which is a nested average computed along a table with 2 dimension (AUTORE,LINK).

Basically I need to compute first of all an average for each author (AUTORE), and then use those aggregated values to create a second level average.

 

AUTORE LINK VALORE
autore_1 url_A 20
autore_1 url_B 20
autore_1 url_C 20
autore_1 url_D 20
autore_1 url_E 10
autore_1 url_F 10
autore_2 url_G 20
autore_3 url_H 5

 

For those familiar with Tableau, you could get the correct result with a nested Level of Deatil2020-04-29 19_27_19-Window.png

 

I've already checked a similar post (https://community.powerbi.com/t5/Desktop/Average-of-average/m-p/1017894#M481085) but I'm not sure I'm understanding 100%, especially in my case where I have 2 dimension columns and one of them (LINK) is not involved in that caluclus.

 

Can anyone help?

 

Thanks in advance.

 

 

Fabio

Follow me on Twitter:@PantoMvp
Get in contact on Linkedin: Fabio Fantoni
1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

The general pattern is:

 

Measure = 

  AVERAGEX(

    SUMMARIZE(

      'Table',

      [Group],

      "__Average",AVERAGE('Table'[Column])

    ),

    [__Average]

  )



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

The general pattern is:

 

Measure = 

  AVERAGEX(

    SUMMARIZE(

      'Table',

      [Group],

      "__Average",AVERAGE('Table'[Column])

    ),

    [__Average]

  )



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

 Hi @Greg_Deckler 

 

thanks for your feedback.

 

It's exactly what I was looking for.

 

 

Regards

Follow me on Twitter:@PantoMvp
Get in contact on Linkedin: Fabio Fantoni

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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