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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
v-linyulu-msft
Community Support
Community Support

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 @v-linyulu-msft 


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
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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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