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

Combo chart

I am trying to replicate Excel report in Power BI and there is a a Combo chart with columns and two lines. I tried using line and clustered column visual in Power BI, but I am able to add only one line, not two. Is there any way to add multiple lines to the combo chart?

DKDBA_0-1653746301695.png

 

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

I'm not sure where you're running into trouble. You can definitely add multiple fields to the Line y-axis box.

 

AlexisOlson_0-1653771157456.png

View solution in original post

4 REPLIES 4
DKDBA
Frequent Visitor

Thank you very much! It worked, sorry for the delay in my reply. 

AlexisOlson
Super User
Super User

I'm not sure where you're running into trouble. You can definitely add multiple fields to the Line y-axis box.

 

AlexisOlson_0-1653771157456.png

Curious why when switching from a 'Clustered Column' (values by all months and several years) to 'Line and Clustered Column' (drag the values field from Column Y-Axis into the Line Y-Axis), PBI adds together the values for all months and omits years?... calculation is set to 'no calculation' on the 'show value as'... really a strange thing that I can't get to resolve.  Maybe because there's not a 'Line Y-Axis Legend' to drag years into... IDK.

 

Interestingly, when I drag the values field into the 'Small Multiples' field, the engine correctly infers year context, but unfortunately breaks each year into a separate mini-chart for each year.

 

If I switch to the chart type of 'Line Chart', the correct context is rendered there, too... but just need to get the column component, like in Excel with the 'Combo Chart' option (tangent/venting:  the PBI team should have Combo Chart in this software, IMO... MS Office products should leverage continuity between apps whenever possible, especially from Excel into PBI).

For what it's worth, I believe the issue with not having multiple lines work automatically is that there isn't a 'Line Legend', but there is for columns.  So it appears if you want separate lines for each year, you have to write a different formula filtering for each year.

Excel is so much more customizable.

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.

Top Solution Authors