Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
bob57
Helper IV
Helper IV

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
1 ACCEPTED SOLUTION

 

Hi @bob57 ,

 

This can again be done through 2 matrix visuals.

 

125.JPG

 

2.JPG3.JPG

 

 

Regards,

Harsh Nathani

 

 

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

 

View solution in original post

4 REPLIES 4
harshnathani
Community Champion
Community Champion

Hi @bob57 ,

 

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

 

 

2.JPG

 

 

Thanks and Regards,

Harsh Nathani

 

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

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

 

Hi @bob57 ,

 

This can again be done through 2 matrix visuals.

 

125.JPG

 

2.JPG3.JPG

 

 

Regards,

Harsh Nathani

 

 

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

 

That worked perfectly. Thank you for your effort and prompt response.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.