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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Table transpose

Hey All,

Struggeling to transpose a table.

The original table looks like below.

Employee NameDepartmentCourseDate
AD111/01/2018
AD125/04/2017
CD132/06/2019
DD211/01/2018
DD225/04/2017
DD2315/11/2016
DD242/06/2019

There are more columns, which I want to hide. Also, there are more than 4 courses, which I want to filter the redundant ones.

I want to achieve this view

Employee NameDepartmentCourse 1Course 2Course 3Course 4
AD11/01/20185/04/2017  
BD3    
CD1  2/06/2019 
DD21/01/20185/04/201715/11/20162/06/2019

 

Showing Department, and maybe other columns. Also, Showing Employees without data (empty values), like employee B above.

 

Any hint would be much appreciated.

 

Thanks!
A

1 ACCEPTED SOLUTION

This looks like pivoting text data to me. Read my article here. 

https://exceleratorbi.com.au/pivoting-text-data-using-power-query/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

HI @Anonymous 

Capture2.GIF

Use pivot column -->Course in power query 

In the  options select date

advance options  --> do not aggregate.

 

This looks like pivoting text data to me. Read my article here. 

https://exceleratorbi.com.au/pivoting-text-data-using-power-query/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
Anonymous
Not applicable

@MattAllington 

Thanks Mate.

Apparently, I was missing the do not aggregate thingi which messed up my visual.

 

Cheers!
A

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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