Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
i want to calculate difference between created date and current UTC time, but its giving error.
can someone plese guide here?
Solved! Go to Solution.
Hi @Alice08
You haven't said what the error is so I'm guessing as to what is in your Createddate column.
Also you say you want to calculate the difference between a time and date. I presume you mean the difference between two dates as you are looking for the Duration.Days
Try this
= Duration.Days(DateTime.Date( DateTime.LocalNow()) - [CreatedDate])
Regards
Phil
Proud to be a Super User!
Thanks it worked
Hi @Alice08
You haven't said what the error is so I'm guessing as to what is in your Createddate column.
Also you say you want to calculate the difference between a time and date. I presume you mean the difference between two dates as you are looking for the Duration.Days
Try this
= Duration.Days(DateTime.Date( DateTime.LocalNow()) - [CreatedDate])
Regards
Phil
Proud to be a Super User!
User | Count |
---|---|
85 | |
79 | |
64 | |
52 | |
46 |
User | Count |
---|---|
101 | |
44 | |
41 | |
39 | |
37 |