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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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