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
Anonymous
Not applicable

Line chart with multiple axes

Hi, im trying to replicate the below chart from Tableau to powerbi. 

tab line chart.png

 

The 4 horizontal lines are a result of values from 4 different columns and the bottom two lines (black and orange) are from one particular column. Is it possible to achieve the same in Powerbi?

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

I create the sample data:

vkkfmsft_0-1650005075648.png

 

1. Use the cunstom visual: Multiple Axes Chart - XViz.

Then we need create these measures.

Line 1 = CALCULATE(SUM('Table'[Line1]),REMOVEFILTERS('Table'[Type]))
Line 2 = CALCULATE(SUM('Table'[Line2]),REMOVEFILTERS('Table'[Type]))
Line 3 = CALCULATE(SUM('Table'[Line3]),REMOVEFILTERS('Table'[Type]))
Line 4 = CALCULATE(SUM('Table'[Line4]),REMOVEFILTERS('Table'[Type]))

vkkfmsft_1-1650005260529.png

 

2. Or Use Line chart.

Then create measures:

Line5_TypeA = CALCULATE(SUM('Table'[Line5]),'Table'[Type] = "A")
Line5_TypeB = CALCULATE(SUM('Table'[Line5]),'Table'[Type] = "B")

vkkfmsft_2-1650005439383.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.

View solution in original post

2 REPLIES 2
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

I create the sample data:

vkkfmsft_0-1650005075648.png

 

1. Use the cunstom visual: Multiple Axes Chart - XViz.

Then we need create these measures.

Line 1 = CALCULATE(SUM('Table'[Line1]),REMOVEFILTERS('Table'[Type]))
Line 2 = CALCULATE(SUM('Table'[Line2]),REMOVEFILTERS('Table'[Type]))
Line 3 = CALCULATE(SUM('Table'[Line3]),REMOVEFILTERS('Table'[Type]))
Line 4 = CALCULATE(SUM('Table'[Line4]),REMOVEFILTERS('Table'[Type]))

vkkfmsft_1-1650005260529.png

 

2. Or Use Line chart.

Then create measures:

Line5_TypeA = CALCULATE(SUM('Table'[Line5]),'Table'[Type] = "A")
Line5_TypeB = CALCULATE(SUM('Table'[Line5]),'Table'[Type] = "B")

vkkfmsft_2-1650005439383.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.

amitchandak
Super User
Super User

@Anonymous , In analytics pane( visual format, search glass icon). You have the option for constant line, You can use a measure or static value there

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.