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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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

 



Proud to be a Super User!

daxformatter.com makes life EASIER!

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

 



Proud to be a Super User!

daxformatter.com makes life EASIER!

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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