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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors
Top Kudoed Authors