Forum Discussion
Create a custom measure for a title using min and max dates
Hi there
I have a dynamic title which shows the time period a user is looking at based on the period they've selected from my date slicer.
The measure looks like this:
Anonymous
You can put it this way as well:Title Sub Report = "CURRENTLY VIEWING MONTHS " & FORMAT(MIN('DimReportingPeriod'[Reporting Period]),"mmmm yyyy") & " TO " & FORMAT(MAX('DimReportingPeriod'[Reporting Period]),"mmmm yyyy")________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon if you like this reply 🙂
3 Replies
- Fowmy
Super User
Anonymous
You can put it this way as well:Title Sub Report = "CURRENTLY VIEWING MONTHS " & FORMAT(MIN('DimReportingPeriod'[Reporting Period]),"mmmm yyyy") & " TO " & FORMAT(MAX('DimReportingPeriod'[Reporting Period]),"mmmm yyyy")________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon if you like this reply 🙂
- AnonymousNot applicable
Faaabulous I didn't realise you could use FORMAT in this way, I will for sure be using it again! Thanks so much Fowmy
- amitchandak
Super User
Anonymous , have you tried this -Title Sub Report = "CURRENTLY VIEWING MONTHS " & format(MIN('DimReportingPeriod'[Reporting Period]),"mmmm yyyy") & " TO " & format(MAX('DimReportingPeriod'[Reporting Period]),"mmmm yyyy")