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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
jlutz
New Member

How to display related records between table X and Calendar table if relationship is INACTIVE?

I have a single Calendar table with multiple other tables related to it by date.  All of the relationships are "inactive" to avoid circular references et cetera.  For my measures, it's easy enough to use USERELATIONSHIP to specify which relationship to use.

 

However, I have a Table visual, and I want to display all of the records related (via one of the inactive relationships) between table X and my Calendar table.  

 

How can I do this?   

1 ACCEPTED SOLUTION
v-xjiin-msft
Solution Sage
Solution Sage

@jlutz

 

To achieve your requirement, you can refer to following method:

 

1. Create measures to get the Max and Min date of Calendar table with expression like:

 

StartDate =
CALCULATE ( MIN ( 'Calendar Table'[Date] ), ALLSELECTED ( 'Calendar Table' ) )

2. Create a measure in your source table to filter the records:

 

Flag =
IF (
    MAX ( Table3[Date] ) >= [StartDate]
        && MAX ( Table3[Date] ) <= [EndDate],
    1,
    BLANK ()
)

1.PNG

 

Thanks,
Xi Jin.

View solution in original post

1 REPLY 1
v-xjiin-msft
Solution Sage
Solution Sage

@jlutz

 

To achieve your requirement, you can refer to following method:

 

1. Create measures to get the Max and Min date of Calendar table with expression like:

 

StartDate =
CALCULATE ( MIN ( 'Calendar Table'[Date] ), ALLSELECTED ( 'Calendar Table' ) )

2. Create a measure in your source table to filter the records:

 

Flag =
IF (
    MAX ( Table3[Date] ) >= [StartDate]
        && MAX ( Table3[Date] ) <= [EndDate],
    1,
    BLANK ()
)

1.PNG

 

Thanks,
Xi Jin.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.