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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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
Solution Sage
Solution Sage

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
Solution Sage
Solution Sage

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.