Forum Discussion

lua2's avatar
lua2
Frequent Visitor
3 years ago

linking two tables

Hello, 

I have two tables that I want to link together, but I don't know how to do it correctly. Because in table A there are different phases per ID with a start date (start of the phase). In table B there are per ID several values that are recorded per day.

The problem is that only the dates are linked that have the same month as the start date from table A. But the months between the IDs are missing.

 

Table A

ProjectIDPhaseIDDate
1101.04.22
1216.06.22
1323.10.22
2418.12.21
2510.04.22

 

 

Table B 

ProjectIDNameDaysDate
1A216.04.22
1B518.08.22
1C820.10.22
2D120.12.21
2F310.02.22
2G423.03.22

 

If I want to look at the days per phase, then lines 2,5,6 are missing. (Name B,F and G)

 

Thanks in advance.

 

4 Replies

    • lua2's avatar
      lua2
      Frequent Visitor

      Hi amitchandak
      I would like to be able to have a relationship built between the tables so that if I were to have 2 tables/matrices in the Report view, with one table showing the Daily Date Data and the other table showing the Ranged Data Data, I would be able to select a record in the Daily table and Power BI's highlight functionality would filter the records in the Ranged table so that only date ranges containing my selected date appear, and vice-versa

  • v-yadongf-msft's avatar
    v-yadongf-msft
    Community Support

    Hi lua2 ,

     

    I want to confirm the following things with you:

    1. What's the relationship between date column in table A and date column in table B ?

    2. What's the meaning of Ranged Date Data ?

     

    In order to better understanding your demands and give the right solution, could you please share with me some screenshots of your data after hiding sensitive information and tell me what's your expected output?

     

    Best regards,

    Yadong Fang

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

    • lua2's avatar
      lua2
      Frequent Visitor

      Hi v-yadongf-msft , 

       

      This is the Visual I need: 

       

      But in the visual I am now missing the column [Name] from the table Allocation. The column [Name] should then be in the rows of the matrix table under phase name.

       

      Then I need the widget with which I can filter by month.

      Screenshots of Tables: 

       

       

       

      I have tried several ways to connect the tables, unfortunately I have not found a solution.

       

      Thanks and kind regards

      lua2