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
Want To Learn Power BI
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
Want To Learn Power BI
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
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

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

Top Solution Authors
Top Kudoed Authors