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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PowerBI123456
Post Partisan
Post Partisan

Date Tables Multiple

Hi - I have a date table connected to one of my fact tables. However, I have dates in my other fact tables that I want to filter on as well. These fact tables are connected directly, do I need seperate date tables for each field I want to filter on? 

1 ACCEPTED SOLUTION

@PowerBI123456 , if you need the same date filter on all the dates, then you can join them with date table, there will be inactive joins you can activate using userelationship

The example I want closed and open in Jan based on respective dates

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

 

But if you need Dec Open and Jan Closed then you need two have two date tables or need to use a filter on thee date from table

 

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@PowerBI123456 , Ideally two fact tables should not join. You can join Date and other common dimesnion table with your fact tables.

You should able to join date with other fact tables. It should not create a loop.

 

Try to have stat schema at the end - https://www.sqlbi.com/articles/the-importance-of-star-schemas-in-power-bi/

@amitchandak  What if your one fact table has multiple date fields in there that you want to filter on in different scenarios? Right now my date table is connected to one of those date fields (1 to many), how can I connect it to the other date fields in that fact table?

@PowerBI123456 , if you need the same date filter on all the dates, then you can join them with date table, there will be inactive joins you can activate using userelationship

The example I want closed and open in Jan based on respective dates

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

 

But if you need Dec Open and Jan Closed then you need two have two date tables or need to use a filter on thee date from table

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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