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
Anonymous
Not applicable

Using Meausre in another measure not working

Hope someone can help me on this.  I am attempting to use a measure to calculate another measure.  I know this works based on tutorials.  However, I am geting the error "The AVERAGE function only accepts a column reference as the argument number 1."   I am using PowerBI desktop version: Version: 2.105.961.0 64-bit (May 2022).

 

Does anyone know if the ability to use a measure to build another measure was introduced in a newer version of Power BI desktop?

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

According to your statement, I think your issue should be caused that you add a measure into AVERAGE() function.

 

As the error tells you, AVERAGE() function only support us to add a column instead of a measure. 

 

If you want to calculate average based on a measure, I suggest you to try AVERAGEX() function.

JustAverage = AVERAGEX('TableName',[Summary_Total])  

For reference:  AVERAGEX

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
tamerj1
Super User
Super User

@Anonymous 

What columns are you placing the stacked area chart and from which table(s)? What average are you looking for? Please provide an example. 

Anonymous
Not applicable

Thank you.  Here is the project.   I have measures created already but when I attempt to create a new measure, I am not seeing those measures available (see below)

 

PowerBI.JPG

 

When I do attempt to use a measure "Summary_Total", I am getting an error that the function will only allow a column referernce.   I know from tutorials that I should be allowed to reference an existing measure to build a new measure.   I am wondering if this is an issue with the version of PowerBI desktop that I am using.

PowerBI2.JPG

Anonymous
Not applicable

Hi @Anonymous ,

 

According to your statement, I think your issue should be caused that you add a measure into AVERAGE() function.

 

As the error tells you, AVERAGE() function only support us to add a column instead of a measure. 

 

If you want to calculate average based on a measure, I suggest you to try AVERAGEX() function.

JustAverage = AVERAGEX('TableName',[Summary_Total])  

For reference:  AVERAGEX

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Rico,

   Thank you.  That worked.  Truly appreciate it.

 

tamerj1
Super User
Super User

Hi @Anonymous 

To sum a measure you can use SUMX however, you need to identify the table to iterate over. This table is dependent on the visual and/or the required granularity of calculation. 
please provide a little more context 

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.