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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Gameplayer13905
Frequent Visitor

Need a measure to average across four months of data in PBI

Hello and thank you in advance. Please see the images below. I have a table with a customer name column and four months of revenue data on it. I need to average the rows in the table below in a column to the right of the "Sep-2023" column

 

2023-11-13_165847.jpg

This is the error I'm getting and as this is my first measure I don't really know what I'm doing

2023-11-13_170130.jpg

These are the firld name column headers and the table is called v_relevelgroupingcode

2023-11-13_170239.jpg

What have I got wrong and how do I link the measure to a new column for the average of rows?

 

Thanks again

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Gameplayer13905 ,

Below is my table:

vxiandatmsft_0-1699927046993.png

The following DAX might work for you:

 

Measure = 
   AVERAGEX(
   v_relevelgroupingcode , 
   (v_relevelgroupingcode[Jun-2023] + v_relevelgroupingcode[Jul-2023] + v_relevelgroupingcode[Aug-2023] + v_relevelgroupingcode[Sep-2023])/4
   )

 

The final output is shown in the following figure:

vxiandatmsft_2-1699927116694.png

Best Regards,

Xianda Tang

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

2 REPLIES 2
Anonymous
Not applicable

Hi @Gameplayer13905 ,

Below is my table:

vxiandatmsft_0-1699927046993.png

The following DAX might work for you:

 

Measure = 
   AVERAGEX(
   v_relevelgroupingcode , 
   (v_relevelgroupingcode[Jun-2023] + v_relevelgroupingcode[Jul-2023] + v_relevelgroupingcode[Aug-2023] + v_relevelgroupingcode[Sep-2023])/4
   )

 

The final output is shown in the following figure:

vxiandatmsft_2-1699927116694.png

Best Regards,

Xianda Tang

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

Wow, thank you Xianda, that actually worked!!! I am marking this as solved. Thank you again! I was close but not quite there

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.