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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
Employee
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
Employee
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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.