Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

USE Relationship for date filter

HI ,


Below is my issue


Have 2 dates in my table (Go Live Date , Transaction date) and I joined date table with  Transaction date 

but i need to Filter out the crosstab with with conditon ( GO Live Date <= Selected date from Slicer ) For suppose in  below example date slicer i have selected May 1st till 31st but if you can see the GO Live date 10-06-2022 which shouldnt be there 

the reason it is showing  because we have a join with Transaction date we dont have join with Go Live Date 

Created inactive relation ship from date table to Go Live date  but how to  use USE RELATIONSHIP Function for filter (Go Live date<= selected date slicer) Beacuase use relation will only work in Calculate 


Any help would be Highly Appreciated.Thanks




Super User
Super User

Alright, i think this will do the trick:


Just add the measure to the visual level filter pane and go from there

Super User
Super User

It's a good idea to include sample data, as solutions may vary depending on data structure.

Measure = 
Var _MaxDate = Max(calendar[date])
Var _GoLivedate = Max(Table[GoLiveDate])
Var _Result = If(_GoLiveDate > _MaxDate, 0,1)
_Result // Add to filter pane and remove all who return 0

 You'll probably also need to incorpora the same for minimum date



its not working its always showing  1  .i have active relationship with Trasaction date not with Go Live date so in date slicer when i try to filter Actual go live date willl not work since there is no join somehow we need to  create this filter (golive date< max date from slicer) by using userelationp  (changing context from Transaction date with Go Live date ) with go live date

Are you able to share a .pbix or dummy .pbix through dropbox for your preferred sharing service?

Any idea? am not able to  find any solution for this any @Akarsh28 Experts?

Hi @Varun511 ,

May I know if @NickolajJessen 's last reply can solve your problem? If not, could you please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It is better if you can share a simplified pbix file with fake data. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

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

unfortnately cant share as it contains company date but i can explain what you are trying to expect

below is the data model 

my only question is to apply filter Actual date < max date from slicer (Slicer is coming date table) since have joined date table with Transaction date as active relationship Actual go live date filte is not working need to remove the current text and add use relationship to filter but calculate will not work in this case am just wondering how to approach this colution



Helpful resources

May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors