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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply

Datetime - seconds

Is it possible to create a new column with a calculation that takes calldate - info2 (call time in seconds)? calldate is the closing time and info2 is the calling time. I need to identify the start of the call.

duvida2.jpg

2 ACCEPTED SOLUTIONS
mahoneypat
Microsoft Employee
Microsoft Employee

If your call end time is a DateTime column and the duration in seconds is a number column, you can use this formula in a custom column in M/query.  Just add a custom column and use this formula.

 

=[CallEnd]-#duration(0,0,0,[info2])

 

If this works for you, please mark it as solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

Hi, @mahoneypat ,

Tks!! The formula didn't work. I tried to convert the info2 column to an number, but it still didn't work. See the pictures:

 

duv01.jpgduv02.jpg

View solution in original post

4 REPLIES 4
mahoneypat
Microsoft Employee
Microsoft Employee

If your call end time is a DateTime column and the duration in seconds is a number column, you can use this formula in a custom column in M/query.  Just add a custom column and use this formula.

 

=[CallEnd]-#duration(0,0,0,[info2])

 

If this works for you, please mark it as solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Yesssss Its work!!!!1 Thanks!!!!!!!!!

Glad you got it working.  What was causing the error?

 

If that approach worked, please mark it as solution.  Kudos are appreciated too.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Hi, @mahoneypat ,

Tks!! The formula didn't work. I tried to convert the info2 column to an number, but it still didn't work. See the pictures:

 

duv01.jpgduv02.jpg

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

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.