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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.