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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Transform Data in Power Query

I have two tables one has entries for dimensions with a dimension set id.

CaptainHardhead_0-1598371227379.png

CaptainHardhead_0-1598371819814.png

 

My other table has ledger entries that I am trying to create a realtionship between these two tables so I can show all the transactions associated with a specfic dimension codes. What would be the best way to create one line for each Dimension set id so that I can create a relationship?

3 REPLIES 3
mussaenda
Super User
Super User

Hi @Anonymous ,

 

Your first table has two lines for each SET ID and you only want one line to be able to create a relationship to your second table.

Am I getting you right?

 

On your first table you can use the pivot column function.

 

Hope this helps!

Icey
Community Support
Community Support

Hi @Anonymous ,

 

What do you mean that "...create one line for each Dimension set id..."?

 

For creating relationships, please refer to this document: Create and manage relationships in Power BI Desktop.

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it more quickly.

edhans
Super User
Super User

I'm not sure I understand your issue. Your first table seems to have a unique Dimesion Set ID and your second table has repeated Dimension Set IDs. That is the text-book definition of a valid One-To-Many releationship in Power BI.

 

Can you explan exactly what it is you are trying to accomplish? And if you need any transformations, please provide some usable data. Images are good for end goals, but not for data.

How to get good help fast. Help us help you.
How to Get Your Question Answered Quickly
How to provide sample data in the Power BI Forum



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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