Forum Discussion

HCBD13's avatar
HCBD13
Regular Visitor
2 years ago
Solved

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.

 

  • 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.

     
  • 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

     

3 Replies

  • 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.

     
  • 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