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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
mmramo
New Member

Two dates different on table columns

Hi guys!

 

Is it possible to relate two dates different on table columns in a single panel in Power BI?

I used the USERELATIONSHIP function. However it didn't work.

1 REPLY 1
Sahir_Maharaj
Super User
Super User

Hello @mmramo,

 

Yes, it's possible to relate two different date columns from different tables in a single visual panel.

 

The USERELATIONSHIP function is the correct approach to create a relationship between these columns. If it's not working as expected, there might be a few reasons to investigate:

 

  1. Check Column Data Types: Make sure that the data types of the columns you're trying to relate are the same. The columns you're trying to relate should both be of type 'Date'.

  2. Direction of Relationship: The USERELATIONSHIP function allows you to specify a relationship between columns that are not directly related in the model. However, it's important to understand the direction of the relationship.

 

 

USERELATIONSHIP(TableA[Date A], TableB[Date B])

 

 

  • Check Filter Context: Sometimes, issues can arise if there are other filters or slicers in your report that interfere with the relationship you're trying to set. Clear all filters and slicers and try setting up the relationship again.

  • Bi-Directional Filtering: If your tables have a bi-directional relationship (both tables can filter each other), the USERELATIONSHIP function might not be necessary. Power BI will automatically use the appropriate relationship based on the context.

  • Refresh Relationships: If you've recently added the USERELATIONSHIP function, make sure to refresh your data model to apply the new relationship.

Should you require further assistance, please do not hesitate to reach out to me.


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.