Forum Discussion

united2win's avatar
united2win
Icon for Helper III rankHelper III
7 years ago
Solved

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?  

  • 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.

4 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Icon for Community Champion rankCommunity Champion

    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.

  • Anonymous's avatar
    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)

  • v-piga-msft's avatar
    v-piga-msft
    Icon for Resident Rockstar rankResident Rockstar

    Hi united2win ,

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

    Best Regards,

    Cherry

    • united2win's avatar
      united2win
      Icon for Helper III rankHelper III

      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.