Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello
I am querying Microsoft Dynamics Business Central.
I have two tables;
General Ledger enteries.
GL Dimensionsets
The General Ledger enteries has a column called DimensionsetID, this links to GL Dimensionsets.
However GL Dimensionsets has mulitple enteries for 1 ID.
So it's like;
DimensionsetID,Dimension_Code,Dimension_Code_Value
8,Cost_centre,30-33-001
8,Source,Merlin
8,Period,5
8,Year,2021
I want to add these demsions to my General Ledger enteries table.
How do I do that in Power BI?
So I will have all the General Ledger enteries columns, then columns Cost_centre,Source,Period,Year.
30-33-001,Merlin,5,2021
I have tried doing a Merge but that gives me 4 rows a line for each column, I just want one row of data.
Regards
Graham
Solved! Go to Solution.
Try this in Power Query.
1. Select column Dimension_Code and click "Pivot Column":
2. Select values:
3. Result:
Proud to be a Super User!
Try this in Power Query.
1. Select column Dimension_Code and click "Pivot Column":
2. Select values:
3. Result:
Proud to be a Super User!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |