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

View all the Fabric Data Days sessions on demand. View schedule

Reply
brcnyc
Frequent Visitor

Turning a number into day/month/year

Hi all, I have a question. I have a number column in my data. I want to see these numbers as day/month/year. For example, 400 should be shown as 1 year 1 month 4 days. I could do this in excel with edated formula. Is it possible to do it in power bi?

1 REPLY 1
amitchandak
Super User
Super User

@brcnyc , This will give you time from 1900

 

Measure = date(0,0,400)
or
column = date(0,0,400)

or

Measure = date(0,0,[other measure])
or
column = date(0,0,[other column])

 

if you want from any date try like

date(2020,1,1) +date(0,0,400)


You can have some thing like this , you can also concat these like text in one formual
year = quotient([Number],356)
month =quotient(mod([Number],356),30)
month =mod(mod([Number],356),30)

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

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.