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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
lua2
Frequent Visitor

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 4
v-yadongf-msft
Community Support
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.

Hi @v-yadongf-msft , 

 

This is the Visual I need: 

lua2_0-1668609239944.png

 

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.

lua2_0-1668609044000.png

 

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

lua2_1-1668609059495.png

Screenshots of Tables: 

lua2_3-1668609345636.png

 

lua2_2-1668609323537.png

 

lua2_4-1668609367811.png

lua2_5-1668609384359.png

 

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

lua2_6-1668609412806.png

 

Thanks and kind regards

lua2

amitchandak
Super User
Super User

@lua2 , Not very clear, but you need a common date and projectid column

 

refer if needed - https://amitchandak.medium.com/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-solutio...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.