How to do it…

  1. Right-click on the previously created Date filter and select Edit...
  2. In the Filter [Date] window, select the Relative dates option.
  1. Select the period you would like to see. Let's set the last five days. Select the radio button in front of Last, and type 5 in the associated box.
  2. In the bottom-left corner, check the box in front of Anchor relative to and choose a date, being careful that it's actually included in our dataset. For example, let's select 2/1/2018 by clicking on the date field and selecting the date from the drop-down calendar. We can view our selection in the following screenshot:

  1. Click OK to exit the window. You can see the generated output in the following screenshot: