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
menik_sun
Regular Visitor

Average of average of average in power BI

Hi,

 

Below is how my data looks like:

 

Selling ChannelMonthTransaction NoSales Amount
StoreJan1200.00
StoreJan2400.00
StoreJan3600.00
StoreJan4800.00
OnlineJan5200.00
OnlineJan6400.00
OnlineJan7600.00
StoreFeb8800.00
StoreFeb9200.00
StoreFeb10300.00
OnlineFeb11400.00
OnlineFeb12600.00
OnlineFeb13800.00
OnlineFeb14200.00
StoreMar15400.00
StoreMar16600.00
StoreMar17800.00
StoreMar18200.00
OnlineMar19400.00
OnlineMar20600.00
OnlineMar21800.00

 

When I use average function in Power BI, I get average based on no of transactions happened during the month or channel. But, I want to get average of average of data like below.

 

  Avg Selling- How I want to seeAvg Selling- How I get using average formula
JanAverage450.00457.14
 Store500.00500.00
 Online400.00400.00
    
FebAverage466.67471.43
 Store433.33433.33
 Online500.00500.00
    
MarAverage550.00542.86
 Store500.00500.00
 Online600.00600.00

 

I want to get the average of average value of Store & Online for any month (or vice-versa), assuming Store & Online counting it as 1 each (not as per total count of transactions). This is because to check the actual average selling and avoiding any big selling in any of the channel or any month.

 

Can you please help

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@menik_sun , Try like

avergageX(summarize(Table, Table[Selling Channel], Table[Month] ,"_1",average(Table[Sales Amount])),[_1])

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @menik_sun,

It sounds like a common multiple aggregate requirement, you can take a look at the following blog to know how to achieve this.

Measure Totals, The Final Word 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@menik_sun , Try like

avergageX(summarize(Table, Table[Selling Channel], Table[Month] ,"_1",average(Table[Sales Amount])),[_1])

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.