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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
lorasloan
Frequent Visitor

Table filter using Two Table Dates with one Inactive Relationship to Calendar

I have a table that uses two table dates that have an active and an inactive relationship to calendar table.  

 

In my table visualization are measures for Open and Closed that are attached to different dates.  I have both working properly with using Userrelationship function for the inactive relationship.  

 

Now I need to add a filter (not slicer) on table to limit the dates.  If I use the Year/Mo from the calendar table it only applies to the active relationship values.  

 

How can I add filter where it uses both dates?  

 

lorasloan_0-1636581560214.png

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@lorasloan , if you apply to the date table, it should work for both, as inactive join can only work using userelationship and at that time it is having join with date.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

@amitchandak 

 

I  stand to be corrected.  The issue is with the Month End measure that you actually helped me resolve from another post I made.  This is the code for that measure you provided:

 

Month end = CALCULATE([Open] -[Closed],filter(allselected(date),date[date] <=max(date[Date])))

 

Since I'm filtering on date for visual, I used 'all' instead of 'allselected' and it is now working properly.  

 

Appreciate your expert knowledge. 

 

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@lorasloan , if you apply to the date table, it should work for both, as inactive join can only work using userelationship and at that time it is having join with date.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 

 

I  stand to be corrected.  The issue is with the Month End measure that you actually helped me resolve from another post I made.  This is the code for that measure you provided:

 

Month end = CALCULATE([Open] -[Closed],filter(allselected(date),date[date] <=max(date[Date])))

 

Since I'm filtering on date for visual, I used 'all' instead of 'allselected' and it is now working properly.  

 

Appreciate your expert knowledge. 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.