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

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

Reply
meyer
Regular Visitor

Creating a date column with a join from different tables

Hi everybody,

 

I have a fact table which contains incidents. For each incident I have a an OPEN_DATE and a CLOSED_DATE which have yyyyMMdd format in my table.

On the other side, I have my DATE dimension table which have as primary key yyyyMMdd which is name ID_DATE and an other column which contains the date with the format : dd/MM/yyyy.

 

Now, I want to create a column which will contain my dates with the dd/MM/yyyy format. (Basically, I want to join my OPEN_DATE column from my fact table with my ID_DATE column from my date dimension to get the corresponding date)

 

How can I manage to do that please ?

 

 

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @meyer,

 

You can create a one to many relationship from DATE dimension table to Fact table based on ID_DATE and OPEN_DATE. Then, use RELATED() function to refer to the dates with "dd/MM/yyyy" format.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-yulgu-msft and thanks for your response.

 

I've already created the relationship you mentionned but could you elaborate on the use of the RELATED function please ?

 

Here's my relationship between the two tables : power_bi_question2.PNG

 

I've read the power bi documentation related to this function and I can't manage to get it work. I think there's something I'm missing.

 

Note that I want to be able to have the matching dates in a slicer.

 

Regards,

Meyer

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.