Skip to main content
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

Frequent Visitor

Dax Measure to get the average of a column at total level

Hi everybody, Im trying to do a dax measure that has to calculate the total average of the values of the column cells, this measure has to work with any attributes and/or level in the pivot table (excel). The thing is I have correct values only at store level, but no for the other attributes in my model.

To better describe my problem, I attached a sample power BI file.

thanks a lot for your help!

Power BI Sample File 

Resolver II
Resolver II

@ctrip77 , hello


try this measure:

average Sales_per_store_v1 = 
        [Total Sales],


Is it of any help?

Thans for your reply @Sergiy !

Your metric works perfect, but only when in the table you put the Machine_Name attribute.

If I change Machine_name to Cat_1 then my average is wrong again.

That's just the problem that I can not solve!, I just want a metric that works for any attribute in the model, it should always show the average of the values displayed in the column (in the grand total row)

have any workaround for this?


Helpful resources

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.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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


Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.