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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
AbigailCole
Frequent Visitor

Multi-Year Line and Clustered Column Chart with Trend Line

Hello all,

 

My boss's boss is asking me to make this chart from excel in power bi:

AbigailCole_0-1692105892852.png

 

However, I can only get power bi to show me trend lines (the dashed ones on the chart) when I use year or the full date as the x-axis. aka it will not show the trend line when using month/year as the x-axis. Googling this gives me old versions of power bi or only one year trend lines, and he wants up to 5 years, so any help would be appreciated!

 

I have thought about calculating the trend line myself however there isn't a place to add in a line (only error bars) when I use the month/year as my x-axis.

 

I have a date table that lets me choose date, year, month, ect. Here is a sample set of the data. Orange is a count from one table, green and blue are measures.

 

OrangeGreenBlue LineMonthYear
17083.702.03Nov2020
18284.252.16Dec2020
17885.602.08Jan2021
17077.132.20Feb2021
20793.342.22Mar2021
21487.522.45Apr2021
13387.921.51May2021
15888.901.78Jun2021
12186.701.40Jul2021
9185.931.06Aug2021
8085.710.93Sep2021
11291.801.22Oct2021
11288.151.27Nov2021
8785.121.02Dec2021
8188.900.91Jan2022
9788.031.10Feb2022

 

 

Honestly I think he would be okay with the trend lines on a seperate chart if it at least could still show it on a monthly axis. so any suggestions like that would be great too!

1 REPLY 1
amitchandak
Super User
Super User

@AbigailCole , Based on what I get for the above Line clustered bar visual you need Year and Month Axis with concatenate label-off, sorted on axis.

 

keep the measures in y-axis and line as per need. That is best I can think of in standard power bi visuals

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.