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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
matal4
New Member

Table transformation

Hi,

I have a table in PowerQuery that is built in a following way: 

NamePrimary Cost CenterSecondary Cost CenterPrimary FTESecondary FTE
Employee 1CC1CC20.50.5
Employee 2CC1 1 

 

I would like to have a query showing data in layout like this:

CC11.5
CC20.5

 

Do you have any tips how to do it in a smart way? Do I need to transform the table?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@matal4 try the following

 

1) Duplicate the tables and call it lets say table2

2) rename primary cost center & primary fte cols to cost center and fte  in orig table

3) delete secondary cost center & secondary fte cols from orig table

4) group by fte by cost center in orig table

5) rename secondary cost center & secondary  fte cols to cost center and fte  in table2

6) delete  primary cost center & primary fte cols from table2

7) group by fte by cost center in table2

😎 union these tables which have been grouped by cost center

View solution in original post

1 REPLY 1
Anonymous
Not applicable

@matal4 try the following

 

1) Duplicate the tables and call it lets say table2

2) rename primary cost center & primary fte cols to cost center and fte  in orig table

3) delete secondary cost center & secondary fte cols from orig table

4) group by fte by cost center in orig table

5) rename secondary cost center & secondary  fte cols to cost center and fte  in table2

6) delete  primary cost center & primary fte cols from table2

7) group by fte by cost center in table2

😎 union these tables which have been grouped by cost center

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.