Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
coolshib
Helper III
Helper III

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

1 ACCEPTED SOLUTION
Anonymous
Not applicable

This should work for you:

 

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

View solution in original post

2 REPLIES 2
welbywelb
New Member

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.

Anonymous
Not applicable

This should work for you:

 

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.