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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
GrahamR99
Resolver I
Resolver I

General Ledger with dimensionsets

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

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@GrahamR99,

 

Try this in Power Query.

 

1. Select column Dimension_Code and click "Pivot Column":

 

DataInsights_0-1631109315290.png

 

2. Select values:

 

DataInsights_1-1631109367451.png

 

3. Result:

 

DataInsights_2-1631109387168.png

 





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

Proud to be a Super User!




View solution in original post

1 REPLY 1
DataInsights
Super User
Super User

@GrahamR99,

 

Try this in Power Query.

 

1. Select column Dimension_Code and click "Pivot Column":

 

DataInsights_0-1631109315290.png

 

2. Select values:

 

DataInsights_1-1631109367451.png

 

3. Result:

 

DataInsights_2-1631109387168.png

 





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

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.