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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors