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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Link Date Table with table 'In between'

Hi all,

 

There are 2 tables that I like to link together, however the date column I want to use is in another table. The setup is like this: 

 

Date Table: This is the generic date table that links to all other tables (and I want to use to filter etc).

Monitor_export (This table holds an ID column and the execution_date which I want to use as date). 

Monitor_export_data(This table holds an ID column that links with monitor_export, but has no date column that I want to link to the 'Date Table'.

 

I want to be able to filter the values in monitor_export_data, based on the execution_date column. But however I structure the relationships, I'm not able to make it work. Should I create a direct connection between 'monitor_export_data' and 'Date'?

 

 3 Tables I want to Link3 Tables I want to Link

 

Hope someone is able to help! Thanks in advance. 

5 REPLIES 5
mahoneypat
Microsoft Employee
Microsoft Employee

Seems like you could relate Date and Monitor_export on Execution Date, and then connect Monitor Export and Monitor Export Data on the ID column.  Does that not work?

 

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

Hi @mahoneypat 

 

I'm able to create the relationship, but whenever I do a calculation based on the date, it doesn't seem to recognize the date table properly. Maybe I've set it up wrongly? 

 Free Trials.PNG

 

Regards,

 

Justin

Please make sure the data types are the same between your two tables, and that both are Date data type (not DateTime or text).

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

Hi @mahoneypat.

 

Thanks again for your help. I've tried your suggestion but don't get any closer than the following result, which shows the connection isn't quite working yet. (I only expect values in 2020.)

Example Result.PNG

 

I'm afraid the issues might be caused because my main date column is in the following format datetime format: 

JustinS1916_0-1604328974013.png

I've created an similar column in the monitor_export table and link it together, but to no avail. Is the 'time' part the issue? Any way to fix it in that case?

 

JustinS1916_1-1604329208291.png

Thanks again for thinking along.

 

Regards,

 

Justin

 

The data type and values on both sides of each relationship have to match.  You can highlight the column in Data View and in the ribbon change it from DateTime to Date.  However, if they are now both DateTime, that should work too.  If you can share your pbix (or a representative mock one), I can look at it directly.  You can upload it to Google Drive or OneDrive and share the link.

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.