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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.