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
bo_afk
Post Patron
Post Patron

Dynamic date title

Hi,

 

I'm creating a report that gets refreshed every Sunday. On the title of the report, I want it to display "Sunday, [day of month] [month]" dynamically. i.e. this will change every week when the report is refreshed.

 

I understand we can create titles with conditional formatting, but is it possible to add a date element to this as well?

 

Thanks

afk

1 ACCEPTED SOLUTION
ntaylo06
Resolver II
Resolver II

Yes, this is possible.

1. Click the "Enter Data" button to create a new table and enter "Date Refreshed" in the first cell, then click "Load"

2. In this new table add a new column and make its formula

Date Refreshed = "Sunday, " & MONTH(UTCNOW()) & "/" & DAY(UTCNOW())

3. Create a card in your report that displays the Max of 'Table1'[Date Refreshed]

 

Whenever the dataset is refreshed the UTCNOW() function will find the current date and then the MONTH() and DAY() will do the math to find out what month and day the current date is. The result looks like this: 

Capture.PNG

EDIT: Oops, I'm dumb. They DAY() and MONTH() should be switched. It will still work the same

 

View solution in original post

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @bo_afk ,

The suggestion of ntaylo06 should be much helpful.

Have you solved your problem?

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

If you still need help, please describe your sceario in more details so that we could help further on it.

Best Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ntaylo06
Resolver II
Resolver II

Yes, this is possible.

1. Click the "Enter Data" button to create a new table and enter "Date Refreshed" in the first cell, then click "Load"

2. In this new table add a new column and make its formula

Date Refreshed = "Sunday, " & MONTH(UTCNOW()) & "/" & DAY(UTCNOW())

3. Create a card in your report that displays the Max of 'Table1'[Date Refreshed]

 

Whenever the dataset is refreshed the UTCNOW() function will find the current date and then the MONTH() and DAY() will do the math to find out what month and day the current date is. The result looks like this: 

Capture.PNG

EDIT: Oops, I'm dumb. They DAY() and MONTH() should be switched. It will still work the same

 

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.