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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
andyor
Resolver I
Resolver I

Average value possible on line chart Y axis?

Any way of getting in an average value of all the values in my line chart?

 

My current graph is like this

 

andyor_0-1676007178313.png

 

And I want to include a horizontal line average like this:

 

andyor_1-1676007227101.png

 

1 ACCEPTED SOLUTION
AntonioM
Solution Sage
Solution Sage

Hi @andyor 

 

You can add an average line from the analytics pane in the visualisations tab

 

AntonioM_0-1676024953464.png

 

Which would then give you this

 

AntonioM_1-1676024986693.png

 

Is that what you're after?

View solution in original post

5 REPLIES 5
andyor
Resolver I
Resolver I

That's what I was after Antonio thanks. I never knew about this area

AntonioM
Solution Sage
Solution Sage

Hi @andyor 

 

You can add an average line from the analytics pane in the visualisations tab

 

AntonioM_0-1676024953464.png

 

Which would then give you this

 

AntonioM_1-1676024986693.png

 

Is that what you're after?

Hello! I can say that it works for a simple graph but if you use small multiples (let's say that you have two values) then the average line will be calculated for total value of the two multiples: you will see the same average on both small multiples graphs... 

So then you would need a measure to calculate an average.

 

For something simple like this:

 

AntonioM_0-1721893791528.png

 

and using 'type' as your small multiple

 

AntonioM_1-1721893807129.png

AntonioM_2-1721893815602.png

 

Average = CALCULATE(AVERAGE('Table'[Value]), ALL('Table'[Day]))

 

That gives you two different average lines (5 and 15 in my example)

 

AntonioM_3-1721893875169.png

 

 

Yes, a measure is the solution! My issue is that I need to have an average of a complex measure, which basically is the cumulated value of a table field up to the date. Transactions are positive and negative and you see the cumulated value go up and down.. And I need the average of that cumulated value! I'm geting crazy to obtain it...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.