Forum Discussion

coolshib's avatar
coolshib
Helper III
6 years ago
Solved

Need help on Dynamic Title based on date range

Hi Everyone,

Heed help of Dynamic Title based on date range filtered in slicer.

For example, if i select the date range as from 01/04/2019 to 15/04/2019 then the title should display as 

"Sales report for the period 01/04/2019 to 15/04/2019".

My sales data is as follows

Sale DateItemUnitsTotal
01/04/2019Pencil95189.05
02/04/2019Binder50999.5
03/04/2019Pencil36179.64
04/04/2019Pen27539.73
05/04/2019Pencil56167.44
06/04/2019Binder60299.4
07/04/2019Pencil75149.25
08/04/2019Pencil90449.1
09/04/2019Pencil3263.68
10/04/2019Binder60539.4
11/04/2019Pencil90449.1
12/04/2019Binder2957.71
13/04/2019Binder811,619.19
14/04/2019Pencil35174.65
15/04/2019Desk2250
16/04/2019Pen Set16255.84
17/04/2019Binder28251.72
18/04/2019Pen64575.36
19/04/2019Pen15299.85

Thanks in advance.

Best Regards,

Shib

  • Anonymous's avatar
    Anonymous
    6 years ago

    This should work for you:

     

    Measure = "Sales report for the period " & FIRSTDATE(Sheet1[Dates]) & " to " & LASTDATE(Sheet1[Dates])

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    This should work for you:

     

    Measure = "Sales report for the period " & FIRSTDATE(Sheet1[Dates]) & " to " & LASTDATE(Sheet1[Dates])
  • Hi,

    I think this answer is only correct if the data in Sheet1 has a record for the filtered start and end date so it does not give the correct result if we filtered from 1-Sep-2021 to 17-Sep-2021 and Sheet1 only contains data from the 2-Sep-2021 to 16-Sep-2021 as this would give the results of " Sales report for the period 2-Sep-2021 to 16-Sep-2021" .. which is clearly not show the filtered date range.