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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
united2win
Helper III
Helper III

How to link two tables together?

Hi, 

 

Any help will be greatly appreciated. I have the following table:

 

ClientService RequiredCountryStatus
Company AVAT RegistrationDEClosed 
Company AVAT RegistrationFRWIP
Company AVAT TransferBEWIP
Company AVAT TransferATRegistered 
Company BVAT RegistrationDEWIP
Company BVAT RegistrationBEWIP

 

I have another table with the sales bookings and the naming convention on product name does not follow a consistent pattern.

 

ClientProduct NameSales Book Value
Company AVAT Registration-DE,FR12000
Company AVAT Transfer-BE,FR1100
Company BVAT Registration-DE,BE50000

 

My job is to provide a status on these bookings using the first table on a per registration level. How would you best go about this?  

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

In the second table it seems like you need to split your second column on the dash. Then you are going to need to do something to get the resulting second column from that split into rows, something like an unpivot or pivot. @ImkeF should be able to help.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @united2win ,

If it is convenient, could you share your desired output so that we could understand your logic better?

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi all,

 

I'm using the unpivot function as per Greg's suggestion and it's working well. Now, I have encountered another issue where I have three coloumns and I need to combine the data into one coloumn for only countries. Any suggestions? I've attached a screenshot below.Power Bi Question.JPG

Anonymous
Not applicable

Create a table with single unique values, probably with distinct Client names.

 

Then, create a link between them with cardinality one to many for both tables. Use this variable as the filter or variable in the matrix, and it will work for both tables.

 

PBI works better doing Star Structure for Databases. Look it up and understand the logic.

 

You can also watch videos from this page: https://www.youtube.com/watch?v=vjBprojOCzU (this video should help you)

Greg_Deckler
Super User
Super User

In the second table it seems like you need to split your second column on the dash. Then you are going to need to do something to get the resulting second column from that split into rows, something like an unpivot or pivot. @ImkeF should be able to help.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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