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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
S-M
New Member

Line Graph

I have a dataset which needs to be displayed as a line graph. The first column shows the company names (redacted in the screenshot) and the other columns show their financial status over the last 12 months.

SM_0-1652191270547.png

 

I need to display this as a line graph showing any upwards or downwars trends in the last year, it will be filtered to only show one company at a time. But when I try to create a line graph using this data, it displays all the data points in a single vertical line.

SM_1-1652191555698.png

 

How can I get this graph to display differently? Nothing I change seems to help.

 

1 ACCEPTED SOLUTION
rohit_singh
Solution Sage
Solution Sage

Hi @S-M ,

Based on your requirements, you will need to first unpivot the data in power query. 

rohit_singh_0-1652192695415.png

Once that is done, try doing this

rohit_singh_1-1652192754749.png


Please mark this answer as the solution if it resolves your issue. 
Appreciate your kudos!

Kind regards,

Rohit

View solution in original post

2 REPLIES 2
tex628
Community Champion
Community Champion

Hi @S-M ,


Try selecting the "Business Name" column in power query and then use the unpivot columns transformation. It should give you two new column, "Attribute" and "Value". Attribute will hold the period while the value will hold the related value. 

If you then use the Attribute column as the x-axis in the line graph i believe you should get the overview that youre looking for. 

Let me know how it goes! 

Br, 
Johannes


Connect on LinkedIn
rohit_singh
Solution Sage
Solution Sage

Hi @S-M ,

Based on your requirements, you will need to first unpivot the data in power query. 

rohit_singh_0-1652192695415.png

Once that is done, try doing this

rohit_singh_1-1652192754749.png


Please mark this answer as the solution if it resolves your issue. 
Appreciate your kudos!

Kind regards,

Rohit

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.