Forum Discussion

julesdude's avatar
julesdude
Icon for Post Partisan rankPost Partisan
3 years ago
Solved

Filtering Date Results in Two Tables Using User Selected As Of Date

Hi All, I have a from/to date slicer with a hidden from date the user can't change, but an 'as of date' that the user can change to filter all items by date up to the chosen point in time. I want a...
  • v-jialluo-msft's avatar
    3 years ago

    Hi julesdude ,

     

    Please follow these steps:

    (1) Create a new measure

     

     

     

    FLAG = 
    IF (
        MAX ( 'Table1'[Unit Start Date] ) <= MAX ( 'Date'[Date] )
            && (
                MAX ( 'Table1'[Unit End Date] ) >= MAX ( 'Date'[Date] )
                    || MAX ( 'Table1'[Unit End Date] ) = BLANK ()
            ),
        1
    )

     

     

     

    (2) Set up filtering

     

    (3) The end result

     

     

     

    Best Regards,

    Gallen Luo

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