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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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