cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LoonaMoon
Regular Visitor

Individual student's performance line chart with Y axis as categories

Hello all,

I need to visualize an improvement of a student's skills set by level and date. Here is the data I have:

Capture.PNG

 

 

 

 

 

 

I need to draw a line chart per student with level names instead of Y axis and dates as X axis

I added a slicer to choose student's name, but it didn't work in Power BI

How can I draw a line chart like below?

2.PNG

 

I would appreciate your help!

 

1 ACCEPTED SOLUTION
AlexisOlson
Community Champion
Community Champion

With the built-in line chart, you can get pretty close.

 

AlexisOlson_0-1617649981412.png

or

AlexisOlson_1-1617650051156.png

 

These both use a measure for the values.

LevelNumber = VALUE ( RIGHT ( SELECTEDVALUE ( Performance[Level] ) ) )

 

I think you'd probably need a non-built-in visual to do the categorical Y axis with the lableing you specified.

View solution in original post

3 REPLIES 3
AlexisOlson
Community Champion
Community Champion

With the built-in line chart, you can get pretty close.

 

AlexisOlson_0-1617649981412.png

or

AlexisOlson_1-1617650051156.png

 

These both use a measure for the values.

LevelNumber = VALUE ( RIGHT ( SELECTEDVALUE ( Performance[Level] ) ) )

 

I think you'd probably need a non-built-in visual to do the categorical Y axis with the lableing you specified.

View solution in original post

Thank you it worked! now I have another problem with line chart. I have a filter with students' name and whenever I choose any of them I got mess on my line chart. Dots for each student do not connect with each other.  How i can fix it? Appreciate your help!
tempsnip.png

edugoncalves
Resolver I
Resolver I

Hi @LoonaMoon ,

I feel like you won't be able to use a "text" type field on the Y axis.
In return, I propose you to use a measure to extract only the numerical part of the "Level" column.

Measure = VALUE( RIGHT( MAX( 'Table' [Level] ) ) )

With this measure created, just add it on the "Values" section of the desired visual.
(I renamed it as "Level" on the visual to adapt the solution to the presented scenario).

edugoncalves_1-1617649694744.png

Best Regards,
Eduardo

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

Get Ready for Power BI Dev Camp

Power BI Dev Camp - September 30th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors