Forum Discussion

Krexx's avatar
Krexx
Icon for Helper I rankHelper I
6 years ago
Solved

Filter table based on calculated measure from another Table

Hello, i have two tables one table called "Orders" contains following Columns: 

Productnumber, Orderdate


And the other Table "Time" that contains only Dates from 01/01/2019 until 31/12/2021. In the Time have an calculated measure where i want to display the min(date)-6 months from the selected Filter. 

Now i would like to create a new column in the Table "Orders" where minDate <= Orderdate gives me True or False back. 

This function doesnt seem to work.
Includes = IF(RELATED(Time[minDate] <= 'Orders'[Orderdate]),TRUE,FALSE)

Has anyone an idea?

Thanks in advance



  • Krexx , You can not create a calculated column on the slicer  . Assume the two are related. You can get all dates/order below the selected date

     

    measure =
    var _min = minx(Date, Date[Date])
    return
    calculate(Count('Orders'[Orderdate]), filter(All(Date),Date[Date] <_min))

2 Replies