This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA 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.
Hi,
I have a table in PowerQuery that is built in a following way:
| Name | Primary Cost Center | Secondary Cost Center | Primary FTE | Secondary FTE |
| Employee 1 | CC1 | CC2 | 0.5 | 0.5 |
| Employee 2 | CC1 | 1 |
I would like to have a query showing data in layout like this:
| CC1 | 1.5 |
| CC2 | 0.5 |
Do you have any tips how to do it in a smart way? Do I need to transform the table?
Solved! Go to Solution.
@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
@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
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 32 | |
| 26 | |
| 23 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 45 | |
| 28 | |
| 24 | |
| 22 |