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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Yosinator
Frequent Visitor

Creating a measure to average all the values in this chart

Does anyone know how I can average the datapoints in this chart? 

Yosinator_0-1669328261777.png

 

1 ACCEPTED SOLUTION
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @Yosinator 

 

Do you work with other measures and do you use filters?

 

Pleae try the following:

 

Average =

CALCULATE(
   AVERAGE(TableValue[ColumnWithValue]),
   ALL(TableXAxis[ColumnOnXAxis)
)

 

or

 

Average =

CALCULATE(
AVERAGE(TableValue[ColumnWithValue]),
ALLSELECTED(TableXAxis[ColumnOnXAxis)
)

 

or if you already work with measures and you want to put the average on top:

 

Average =

CALCULATE(
   AVERAGEX(
      VALUES(TableXAxis[ColumnonXAxis]),
      CALCULATE(
         [Measure]
      )
   )
ALLSELECTED(TableXAxis[ColumnOnXAxis)
)

 

WIth a little bit more context (data model, measures used as well as filters used) I would be able to give a more specific answer.

 

Best regards

Michael

-----------------------------------------------------

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

@ me in replies or I'll lose your thread.

-----------------------------------------------------

LinkedIn

 

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

View solution in original post

1 REPLY 1
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @Yosinator 

 

Do you work with other measures and do you use filters?

 

Pleae try the following:

 

Average =

CALCULATE(
   AVERAGE(TableValue[ColumnWithValue]),
   ALL(TableXAxis[ColumnOnXAxis)
)

 

or

 

Average =

CALCULATE(
AVERAGE(TableValue[ColumnWithValue]),
ALLSELECTED(TableXAxis[ColumnOnXAxis)
)

 

or if you already work with measures and you want to put the average on top:

 

Average =

CALCULATE(
   AVERAGEX(
      VALUES(TableXAxis[ColumnonXAxis]),
      CALCULATE(
         [Measure]
      )
   )
ALLSELECTED(TableXAxis[ColumnOnXAxis)
)

 

WIth a little bit more context (data model, measures used as well as filters used) I would be able to give a more specific answer.

 

Best regards

Michael

-----------------------------------------------------

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

@ me in replies or I'll lose your thread.

-----------------------------------------------------

LinkedIn

 

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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