Forum Discussion

Yqy's avatar
Yqy
Helper I
3 years ago
Solved

Get date from other table columns

I need the earliest start date and latest end date from two different columns and put them as date range  
  • amitchandak's avatar
    3 years ago

    Yqy , If you need a two columns

     

    Min(Table[Start])

     

    Max(Table[End])

     

     

    If you need as two measures

     

    Minx(allselected(Table) , Table[Start])

     

    Maxx(allselected(Table) ,Table[End])

     

    If you want default a range based slicer , create a calendar with those date, I doubt you can initialize range based slicer

     

    calendar(

    Min(Table[Start]) , Max(Table[End]) )

  • Yqy's avatar
    Yqy
    3 years ago

    the calender one works thank you