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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
HCBD13
Regular Visitor

Excel Line graph possible to PBI?

Anyone knows how to make this excel graph to PBI? Everytime I place specialty on Y axis, it turns to count.

HCBD13_0-1695841934337.png

 

1 ACCEPTED SOLUTION
gmsamborn
Super User
Super User

Hi @HCBD13 

If I understand correctly, you need to unpivot your table in Power Query.

 

In PQ:

- select the [Specialty] column

- right-click and select "Unpivot other columns"

 

In my example, I also had to convert the date.

Unpivot.pbix

 

View solution in original post

3 REPLIES 3
gmsamborn
Super User
Super User

Hi @HCBD13 

If I understand correctly, you need to unpivot your table in Power Query.

 

In PQ:

- select the [Specialty] column

- right-click and select "Unpivot other columns"

 

In my example, I also had to convert the date.

Unpivot.pbix

 

This worked. Thank you.

Ritaf1983
Super User
Super User

Hi @HCBD13 
Yes
you need to put a date on the X axis
numeric value on Y axis

specialty on the legend

if your table looks like on the picture (horizontal )
You need to transpose it with pq , please refer to the linked tutorial:
https://www.youtube.com/watch?v=Jyl4UPnuJyI

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

 
Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.