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
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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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