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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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