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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.