Forum Discussion

satich989's avatar
satich989
Frequent Visitor
5 years ago

Date default to today

I am looking for the below functionality. Please can someone suggest how to proceed

 

When I open a report the

1.date defaults to today and 

2. also shows all dates >= today and

3. ability to switch dates, a user can change the date from today to something else and then it should show all dates >= selected date

 

Data

ProductQtyExpected Delivery Date
A1020-Apr-21
B1521-Apr-21
C2022-Apr-21
D1019-Apr-21
E2018-Apr-21
F1520-Apr-21
G1018-Apr-21

 

Required PowerBi table if I open the report on 20-Apr-2021 (all expected delivery dates >= today)

ProductQtyExpected Delivery Date
A1020-Apr-21
B1521-Apr-21
C2022-Apr-21
F1520-Apr-21

4 Replies

  • NickMol25's avatar
    NickMol25
    Frequent Visitor

    To get the date of today: Simply create a new column or measure like this: 
    today = today(). 

    To make sure that your report only shows the relevant dates from today onwards. Drag your Expected Delivery Date to the filters on this page or Filters on all pages box. Set the filter type to relative date and select a period. 

     

    • satich989's avatar
      satich989
      Frequent Visitor

      Hi NickMol - thanks for looking

       

      your solution doesnot solve for point 3 in my above request. Also want the flexibility for users to change dates.

       

  • satich989's avatar
    satich989
    Frequent Visitor

    amitchandak - see that you have answered similar questions, please can you take a look. THe challenge here is the multiple criteria in addition to being fitlered for today. 

  • satich989's avatar
    satich989
    Frequent Visitor

    can someone point me on how to approach this?