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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
pooofy
Helper I
Helper I

Constant line in bar and column chart

Hi,

 

I am using a bar and line chart, but require to write a measure to show a constant line (horizontal), which is based on another measure.

 

This is my current measure:

 

Average No. of Claims for 3 years = 
var maxyear = MAXX(Table, Table[Claim Payment Date].[Year])
var minyear = maxyear - 2
var result = Calculate(average(Table[No. of Claims per Year]),
filter(ALL(Table), Table[Claim Payment Date]
.[Year] <=maxyear && Table[Claim Payment Date].[Year]>=minyear))
return result

 

 

How do i convert my measure to show a constant line instead? 

 

Thank you!

 

 

2 REPLIES 2
pooofy
Helper I
Helper I

Sorry, I need to use the column and line chart. Thank you!

Uzi2019
Super User
Super User

Hi @pooofy 
You can add constant line in Line chart from here.

Uzi2019_1-1697441485015.png

You can add your measure value under this category

Uzi2019_2-1697441530536.png

I hope I answered your question. please give kudos and accpet as a solution!
Thanks!

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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
Top Kudoed Authors