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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
AppleMan
Helper III
Helper III

Adding total line to graph with multi item X axis

Hi,

 

I am currently trying to find a solution for a graph that I was requested to create. The user would like a graph that shows the items on the x axis broken down by year, and then by our different companies, which is easy enough to do. The issue is they also want a line on the graph that shows the total for each year (or basically all items for all companies rolled into one total). It seems to not be possible to do this since adding a second x axis item removes the line options in formatting. 

 

Here is a picture of what I was requested to create:

AppleMan_0-1695315777489.png

 

Here is what I have been able to create in powerBI, issue is, as soon as I add a second item to the X axis I am not able to add a trend or reference line, the option dissapears. 

AppleMan_2-1695316000635.png

 

 

The X axis needs to be split by a count, as well as year, while still retaining the option to add a line that I can code to show the total for each year.

Is there a work around for the line option disappearing with two x axis items? 

1 ACCEPTED SOLUTION
dlopesc04
Resolver II
Resolver II

Try this (using the native bar and line stacked chart):
Year on X axis
Sum of items on column Y axis
Sum of items on line Y axis
Company id on legend
Here's my result:

dlopesc04_0-1695322289237.png

 

View solution in original post

3 REPLIES 3
dlopesc04
Resolver II
Resolver II

Try this (using the native bar and line stacked chart):
Year on X axis
Sum of items on column Y axis
Sum of items on line Y axis
Company id on legend
Here's my result:

dlopesc04_0-1695322289237.png

 

That worked perfect, thank you so much!

Glad to hear it!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors