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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
TAD80
Frequent Visitor

Line Chart Help

Hi,  

I'm looking for help creating a line chart from a table like the sample below. I want the months to be on the x axis and a trend line for each of the KPI's. I'm not sure if this is possible because I have the months in the columns and not rows, I just can't get it to work. Does anyone know if this is possible? Any help much appreciated. 

 

TAD80_1-1729111858687.png

 

1 ACCEPTED SOLUTION
Kedar_Pande
Super User
Super User

@TAD80 

  • Click on Transform Data to open the Power Query Editor.
  • In the Power Query Editor, select all the month columns (July to December).
  • With the month columns selected, right-click and choose Unpivot Columns. This action will convert the months from columns into rows.
  • After unpivoting, you will have two new columns: Attribute (which holds the month names) and Value (which contains the KPI values).
    Consider renaming these columns to Month and KPI Value for clarity.
  • Click on Close & Apply to load the transformed data back into Power BI.
  • Now create a line chart

💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

View solution in original post

3 REPLIES 3
Kedar_Pande
Super User
Super User

@TAD80 

  • Click on Transform Data to open the Power Query Editor.
  • In the Power Query Editor, select all the month columns (July to December).
  • With the month columns selected, right-click and choose Unpivot Columns. This action will convert the months from columns into rows.
  • After unpivoting, you will have two new columns: Attribute (which holds the month names) and Value (which contains the KPI values).
    Consider renaming these columns to Month and KPI Value for clarity.
  • Click on Close & Apply to load the transformed data back into Power BI.
  • Now create a line chart

💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

Thanks Kedar! That exactly what I needed.

lbendlin
Super User
Super User

This table format is typical of Excel.  Unpivot the data to bring it in a usable format for Power BI.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.