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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Date column formula

I was trying to get date of joining in the formulated way to prepare the attrition report but i was getting error while customize the column with below formula.

= { #"Date of Joining" ..Number.From(Date.From(DateTime.LocalNow()))}

i was doing this report by taking help from youtube videos.

 

Sam

3 REPLIES 3
Nathaniel_C
Community Champion
Community Champion

Hi @Anonymous ,

What are you trying to do? Are you trying to get the immediate time in a calculated column? Then NOW() should be sufficient. Please give us more information.

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi @Anonymous ,

Or if you are working in Power Query the formula Table.AddColumn(#"Changed Type1", "Custom", each Number.From(Date.From(DateTime.LocalNow()))) that you posted does work. I then get a number back.

See picture. Perhaps you are putting the code somewhere other than Power Query?

 

Give us more details...

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

 

local time.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Thank you for your reply.

could you please tell me why i am not getting those numbers..

 

Regards

Sam

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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 Solution Authors
Top Kudoed Authors