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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
rebam12
Helper I
Helper I

relationships with date

hi 

just for practise i downloaded healthcare dataset from kaggle  

 

suppose table1 is the name of table

there is only 1 excel sheet and in that there are 2 columns of date. 

1) date of admit 

2) dischage date

 

now i create another calendar table and add year month and day and date (2019 to 2024) columns

 

now how i idenltify reationships? like  calendar table date column to link with which date column in  table1 .. and what relationship should create ?

 

help needed

1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Hi @rebam12 -If your primary focus is either admissions or discharges you can derive the relationship between calendar to admit date or discharge date as follows

 

Calendar[Date] → Table1[date of admit] (if focusing on admissions)
Calendar[Date] → Table1[discharge date] (if focusing on discharges)

 

suppose you need to provide analysis with the inactive relationship is typically marked with a dotted line. You can then use DAX to activate it when needed using the USERELATIONSHIP function. highlighted.

Active Relationship: Calendar[Date] → Table1[date of admit]
Inactive Relationship: Calendar[Date] → Table1[discharge date]

 

Hope this helps.

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

1 REPLY 1
rajendraongole1
Super User
Super User

Hi @rebam12 -If your primary focus is either admissions or discharges you can derive the relationship between calendar to admit date or discharge date as follows

 

Calendar[Date] → Table1[date of admit] (if focusing on admissions)
Calendar[Date] → Table1[discharge date] (if focusing on discharges)

 

suppose you need to provide analysis with the inactive relationship is typically marked with a dotted line. You can then use DAX to activate it when needed using the USERELATIONSHIP function. highlighted.

Active Relationship: Calendar[Date] → Table1[date of admit]
Inactive Relationship: Calendar[Date] → Table1[discharge date]

 

Hope this helps.

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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