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

How to create an average line measure in PowerBi

Hi,

 

I want to use a measure to create an average line for this chart (I don't just want to use the visual average line you can get in Analytics bit of PowerBi).

 

My chart looks like this:

 

HHutton9_0-1659440603859.png

I started by trying just to create a simple average 

Average 1 = AVERAGE('ROI Sites'[Volume (MWh)])

 

However, you can see from the table it creates an average of individual volumes in each day (not the average of the day in total)

 

HHutton9_1-1659440730657.png

 

I then tried to create an average which gives me the average of each day.

Average 2 = CALCULATE(AVERAGEX('Dates',[Total Volume]),ALLSELECTED('Dates'))

 

This got me a the correct total average, but for each day the average just represents the volume for that day. How can I alter the measure from here so that the average is 14.32 for each day?

 

HHutton9_2-1659440861299.png

 

Thanks,

H

 

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Try like

 

calculate(AVERAGE('ROI Sites'[Volume (MWh)]), allselected())

 

or use the measure AVERAGE('ROI Sites'[Volume (MWh)]) in analytics Tab - constant line using fx option

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak thanks for your reply.


I've tried your first suggestion (which I called Average 3) but that puts everything at 0.15 which is far too low?

 

HHutton9_0-1659448175594.png

 

I don't quite understand what you are saying for the second option either - if you could clarify that would be great.


Many thanks,

H

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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