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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
DRobson
Frequent Visitor

line and clustered bar chart in power bi.

Hi all, 
I have a line and clustered bar chart in power bi.
The bar chart axis is in percentages, whereas the line is numerical.
I want to add another line to the chart, but to the same axis as the bar chart (It will represent a target %)
Is this possible with the default visual, or do I need a custom visual? If so, can anyone reccommend anything?

1 ACCEPTED SOLUTION
DRobson
Frequent Visitor

For anyone needing a solution here, I reccommend the custom visual: Dual Y axis combo chart.

View solution in original post

6 REPLIES 6
DRobson
Frequent Visitor

For anyone needing a solution here, I reccommend the custom visual: Dual Y axis combo chart.

v-zhangti
Community Support
Community Support

Hi, @DRobson 

 

Can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures or Excel. I look forward to your response.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi is a screenshot from the table I want to re-create from excel:
The chart is a clustered column chart showing the min and max values of a data column per week.
There is also a line axis showing the average per week. As you can see, all three lie on the same axis. If I use the line and clustered column visual in power bi, the line gets added to its own axis. does anyone know a good custom visual alternative here?

DRobson_0-1700214846551.png

 

DRobson
Frequent Visitor

I don't suppose there is a 3rd party one you recommend?

dk_dk
Super User
Super User

Normally you would be able to add a constant line to a bar chart from the Analytics menu, but for some reason the combined line an bar chart only allows error bars to be added, not constant lines.

dk_dk_0-1699981709149.png

If your target is very static and constant across the categorical axis (the bars) thne you could cheat it by forcing the y axis to always start at 0% and end at 100%, and then just adding a horizontal line graphic in the correct place. Otherwise you probably would need a 3rd party visual.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





DRobson
Frequent Visitor

Do you know a third party visual I can use?

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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