Forum Discussion

bob57's avatar
bob57
Helper IV
6 years ago
Solved

Pivoting Data?

Thanks in advance for your help. Wonderful forum for a rookie like me.

I need to create the following table visualization (Employee Hours/Status) based on the information provided further below.

Employee Hours/Status

Name Week 1 HoursWeek 1 StatusWeek 2 HoursWeek 2 Status
Joe152113
Bob143161
Sue151112

 

Over simplified example.

3 tables (Employees, TimeSheets, TimeEntries).

Relationships: Employees[ID] -> TimeSheets[Employees ID], TimeSheets[ID] -> TimeEntries[TimeSheets ID]

Summary of table data: Joe, Bob, and Sue have each worked for 2 days/week durings Weeks #1 and #2. Status #'s (1, 2, 3) map to "Draft, "Pending", and Approved" respectively (not necessarily relevent, just clarification).

 

Employees Table

IDName
1Joe
2Bob
3Sue

 

TimeSheets Table

IDEmployee IDWeek
111
231
321
432
512
622

 

TimeEntries Table

IDTimeSheets IDHoursStatus
1182
2172
3271
4281
5383
6363
7453
8463
9552
10562
11681
12681
  • Anonymous's avatar
    Anonymous
    6 years ago
     

    Hi bob57 ,

     

    This can again be done through 2 matrix visuals.

     

     

     

     

    Regards,

    Harsh Nathani

     

     

    Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!!

     

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi bob57 ,

     

    Is this what you want to visualise at the end, then a matrix can be helpful.

     

     

     

     

    Thanks and Regards,

    Harsh Nathani

     

    Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!!

    • bob57's avatar
      bob57
      Helper IV

      Thank you, but unfortunately, that does not satisfy the the boss' requirement. More specifically, I need 2 tables as they appear below. I only called for the one table in the original post to keep things simple. Also, the "status" does need to remain numeric because, ultimately, they will be displayed using a traffic light KPI. But I'm not worried about that. I just need these two tables.

      Hours by Week

      Name Week 1 HoursWeek 2 Hours
      Joe1511
      Bob1416
      Sue1511

      Status by Week

      Name Week 1 StatusWeek 2 Status
      Joe23
      Bob31
      Sue12
      • Anonymous's avatar
        Anonymous
        Not applicable
         

        Hi bob57 ,

         

        This can again be done through 2 matrix visuals.

         

         

         

         

        Regards,

        Harsh Nathani

         

         

        Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!!