cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
leont3
Helper II
Helper II

Help Representing Dates in a Line Graph

Hi all,

Thanks for help in advance I have spent the past hour trying to work what to do but would like your help. I am trying to represent the working status of employees and would like to present the data across the time with each function representing a line if that makes sense.  

 

I currently have a data set that looks like this:

NameFunction

19/09/2020

29/09/2020

Stefan Bloggs

Finance

WorkingReduced Hours
Flossy ChatHuman ResourcesReduced HoursWorking
Peter PanFinanceReduced HoursReduced Hours
Iron ManHuman ResourcesWorkingWorking

etc...

 

Do I need to transform any of the data so I am able to represent it in a line graph? I would like the line graph across the X axis to represent date, the Y axis to represent how many, and the line (different coloured lines for each group) to either represent the functional area (HR, Finance) or the status of the employee (reduced hours/working). How would you represent this?Your help is greatly appreciated.

 

 

 



1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@leont3 , Can you share sample output in table format

You need to unpivot this data first

https://radacad.com/pivot-and-unpivot-with-power-bi
Transpose : https://yodalearning.com/tutorials/power-query-helps-transposing-data/

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin

Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@leont3 , Can you share sample output in table format

You need to unpivot this data first

https://radacad.com/pivot-and-unpivot-with-power-bi
Transpose : https://yodalearning.com/tutorials/power-query-helps-transposing-data/

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin

Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.