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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors