Forum Discussion

9 Replies

  • Parvez933 , In place Max Last refresh date take today() in calendar function

     

    calendar(Min(Table[Last refresh Date]), today())

    • Parvez933's avatar
      Parvez933
      Icon for Helper I rankHelper I

      Hi amitchandak,

       

      Tried by editing the max(last refresh) to today(). but still the future dates are available

       

       

  • Samarth_18's avatar
    Samarth_18
    Icon for Community Champion rankCommunity Champion

    Hi Parvez933 ,

     

    Create a measure like below and use it as filter on slicer:-

     

    _filter = IF(MAX(calender[Date])<=TODAY(),1,0)

     

     

    Output:-

     

     

    Thanks,

    Samarth

     

  • amrans's avatar
    amrans
    Frequent Visitor

    I have implemented the same using custom columns in calendar/date table. You cannot get your required behaviour if you are using default Date Hierarchy. You need to create different columns like I have shown below. Snapshot is showing how you can implement condition in filter pane to get desired result. 

     

    Custom columns created in calendar/date table

    Current Date = TODAY()
    Year = DateTable[Dates].[Year]
    Month = DateTable[Dates].[Month]
    Quarter = DateTable[Dates].[Quarter]
    IsNotFuture = IF(DateTable[Dates]<=DateTable[Current Date],1,0)