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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
HCBD13
New Member

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.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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