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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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