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
asgharhussaini
Frequent Visitor

Having multiple Y axis dynamically in a single line chart Power BI

Hi there,

I need a solution (Power BI) to develop a line chart that can display 3 or more Y-axes. Each time I add a measure, a new Y-axis should appear and show the corresponding plot. Could you please provide a solution for this requirement?

Thank you.

 

Contact Person: Asghar Hussaini

Cell# +923262281725

Time Zone: Pakistan Standard Time (PST)

Contact Time: 10 AM - 19 PM (Mon - Fri)

 

graph-22 - Copy.png

2 REPLIES 2
Anonymous
Not applicable

Hi,@asgharhussaini 

Regarding the issue you raised, my solution is as follows:

1.First, you can try customizing your visuals in R, and here's the sample code:
Multiple axes in R (plotly.com)
 

vlinyulumsft_0-1722312645314.png


Create advanced analytics and visualizations using R scripts - Power BI | Microsoft Learn
 

2.Second, you can try using python for custom visuals, here's the relevant sample code:
Multiple axes in Python (plotly.com)
 

vlinyulumsft_1-1722312645316.png
Create Power BI visuals using Python in Power BI Desktop - Power BI | Microsoft Learn
 

Finally, I found a custom visual that matches your requirements that you can try out.

vlinyulumsft_2-1722312664684.png

Of course, if you have any new ideas, you are welcome to contact us.

Best Regards,

Leroy Lu

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

Hi @Anonymous 


I want to add measures dynamically like parameters, whenever user select measures in filter a new plot created with new YAxis. The user should be able to deselect or remove any measure from chart.

 

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.

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.