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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
CarlosOlmos29
Frequent Visitor

How to align the vertical axis in the combined stacked-column and inline chart

Hello Power Bi Community!

 

I would like to show a Stacked column and line charts where the y axis and the secundary y axis have the same scale when I apply a filter. I already applied a trick, setting the same data at both axis, but it doesn't work perfectly in some cases, as it can see in the picture below.

I hope I have made myself clear. Thanks in advance for your help.

 

CarlosOlmos29_2-1681919261716.png

 

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @CarlosOlmos29 

 

I simulated some data, hoping to match your situation, and you mainly look at the Y-axis setting range.

vzhangti_0-1682045608423.png

MeasureA = CALCULATE(SUM('Table'[Value]),FILTER(ALLEXCEPT('Table','Table'[Date]),[Type]="A"))
MeasureB = CALCULATE(SUM('Table'[Value]),FILTER(ALLEXCEPT('Table','Table'[Date]),[Type]="B"))

vzhangti_1-1682045656453.png     vzhangti_2-1682045669826.png

Result:

vzhangti_3-1682045707105.png

Is this the result you expect?

 

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.

 

View solution in original post

1 REPLY 1
v-zhangti
Community Support
Community Support

Hi, @CarlosOlmos29 

 

I simulated some data, hoping to match your situation, and you mainly look at the Y-axis setting range.

vzhangti_0-1682045608423.png

MeasureA = CALCULATE(SUM('Table'[Value]),FILTER(ALLEXCEPT('Table','Table'[Date]),[Type]="A"))
MeasureB = CALCULATE(SUM('Table'[Value]),FILTER(ALLEXCEPT('Table','Table'[Date]),[Type]="B"))

vzhangti_1-1682045656453.png     vzhangti_2-1682045669826.png

Result:

vzhangti_3-1682045707105.png

Is this the result you expect?

 

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.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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