Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

date_passed_to_condition_column_from_dateslicer

Hi,   Please i want to pass date from date slicer("type - before date") to conditional column. I have 2 tables: 'DataTable' 'CalendarTable'   Slicer is configured to column 'CalendarTable'[dat...
  • v-yingjl's avatar
    5 years ago

    Hi Anonymous ,

    First you should know that column would not affect by the slicer changed so if you want to do that, you need to create a measure instead of a column:

    conditional measure =
    VAR to_date =
        CALCULATE ( MAX ( 'Calendar Table'[Date] ), ALLSELECTED ( 'Calendar Table' ) )
    RETURN
        IF ( MAX ( 'DataTable'[date] ) <= to_date, 1, 0 )
    

     

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

  • v-yingjl's avatar
    v-yingjl
    5 years ago

    Hi Anonymous ,

    If you want to filter the date by the slicer in the table visual, just put the previous measure in the table visual filter and set its value as 1:

     

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