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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Dax Measure - Today's Date in YYYYMMDD in Number format with leading zeros?

¿Es posible crear una medida que devuelva la fecha de hoy en formato AAAAMMDD pero como un número entero? Así que la fecha de hoy (18 de mayo de 2020) volvería como 20200518 pero como un número.

2 REPLIES 2
amitchandak
Super User
Super User

@nobodyukno , intente como

Columna: FORMAT(TODAY(), "AAAAMMDD")*1

Incluso si lo creas como

Columna: FORMAT(TODAY(), "AAAAMMDD")

Puede modificar el tipo de datos como número entero

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
az38
Community Champion
Community Champion

Hola @nobodyukno

Column = VALUE(FORMAT(TODAY(), "YYYYMMDD"))

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors
Top Kudoed Authors