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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Jak27136
Frequent Visitor

Today as a number dynamically

Today as a number = DATEDIFF ( DATE ( 2023, 1, 1 ), TODAY (), DAY )+1
 
I am using the above to work out today as a number i.e. the day number for this year. So for example the 4/9/23 is day 247. How do I make this dynamic so I do not need to edit the 2023,1,1 part. i.e. it works every year with out changing the formula. So next year I will need to change to 2024,1,1
1 ACCEPTED SOLUTION
Idrissshatila
Super User
Super User

Hello @Jak27136 ,

 

try this

Today as a number = DATEDIFF ( DATE (YEAR(TODAY()) 11 ), TODAY (), DAY )+1

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote For my Idea💡

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

1 REPLY 1
Idrissshatila
Super User
Super User

Hello @Jak27136 ,

 

try this

Today as a number = DATEDIFF ( DATE (YEAR(TODAY()) 11 ), TODAY (), DAY )+1

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote For my Idea💡

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors