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
ChrisAZ
Helper V
Helper V

Want to add a target line to bar chart based on a percentage measure

So I am looking to add a line that runs across the months that shows the level based on 70% of the dark blue bar (Paid Hours). I know I need to create some kind of measure and then place it in the Line y-axis space, but I cannot figure out how to get basically 70% of Paid hours. Can someone advise on what that measure would look like?

 

Screenshot 2025-02-05 133457.png

1 ACCEPTED SOLUTION
Gabry
Super User
Super User

Hello @ChrisAZ ,

your new measure should look like this:

 

70%paidhours= [paidhoursmeasure]*0.7

 

if you need to calculate the 70% of the year instead of the current month shown in the graph you can do like this:

 

Var _year=year(selectedvalue('dates'[date]))

return

calculate([paidhourmeasure])*0.7, all('dates'), 'dates'[year]=_year

View solution in original post

2 REPLIES 2
Gabry
Super User
Super User

Hello @ChrisAZ ,

your new measure should look like this:

 

70%paidhours= [paidhoursmeasure]*0.7

 

if you need to calculate the 70% of the year instead of the current month shown in the graph you can do like this:

 

Var _year=year(selectedvalue('dates'[date]))

return

calculate([paidhourmeasure])*0.7, all('dates'), 'dates'[year]=_year

Thank you so much!

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