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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Syndicate_Admin
Administrator
Administrator

Add a second line to a bar and line chart

Hello! I wanted to know if you can help me with the following:

barraylinea.png

I have a graph of columns and lines, where one represents a quantity and the other an average, what I need is to add a second horizontal line that would have a fixed value and would be the limit that the average line can reach.
Something like this:

barraylinea2.png

Thanks a lot.
Best regards.

1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi @Syndicate_Admin  marcoms

 

Check these links, and you can find the solution:

 

https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-analytics-pane

 

https://community.powerbi.com/t5/Desktop/I-would-like-to-create-a-bar-graph-with-a-target-line/m-p/9...

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

View solution in original post

4 REPLIES 4
v-kkf-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

Has your problem been solved? If it is solved, please mark a reply which is helpful to you.

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.


Best Regards,
Winniz

Hariharan_R
Solution Sage
Solution Sage

Yes. Average line in Analytics Pane will help you to display overall average.

Hariharan_R_0-1647581286303.png

Thanks

Hari

v-kkf-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

You can only use the constant line from the Analytics pane for this visual if the x-axis is the date/number format. According to your screenshot, your x-axis field is in text format, so I think you had to create a measure, like this:

 

Measure = 10

vkkfmsft_0-1647580330842.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

VahidDM
Super User
Super User

Hi @Syndicate_Admin  marcoms

 

Check these links, and you can find the solution:

 

https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-analytics-pane

 

https://community.powerbi.com/t5/Desktop/I-would-like-to-create-a-bar-graph-with-a-target-line/m-p/9...

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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