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
Anonymous
Not applicable

Current Date

Hi.

 

I'm try to get the duration days from a column with a date and the current date.

I'm use the function

mvasqueznr_0-1617809272607.png

 

But I have the error

mvasqueznr_1-1617809307815.png

 

Can you help me please

 

 

1 ACCEPTED SOLUTION
edugoncalves
Resolver I
Resolver I

Hi @Anonymous ,

Please try this:

Duration.Days (DateTime.Date(DateTime.LocalNow()) - [Fecha de apertura])

You forgot a parenthesis on DateTime.LocalNow(). ‌😊

Best Regards,

Eduardo

View solution in original post

2 REPLIES 2
edugoncalves
Resolver I
Resolver I

Hi @Anonymous ,

Please try this:

Duration.Days (DateTime.Date(DateTime.LocalNow()) - [Fecha de apertura])

You forgot a parenthesis on DateTime.LocalNow(). ‌😊

Best Regards,

Eduardo

Anonymous
Not applicable

Excelent, it's done.
Thanks

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.