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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Dhanil
New Member

Duration in matrix - difference between two time record

Hi Everyone,

 

I'm looking for ideas to calculate the diference between the time values, at first in power query I calculated using the following by adding a cusotm coloumn.

Dhanil_0-1672921720572.png

 

The coloumn added in time format showed error, hence it was converted to whole numbers 

 

Dhanil_2-1672921890586.png

 

Further the difference showing up in the matrix is not matching up to the actual difference 

 

Dhanil_1-1672921813277.png

 

The time difference is not adding up, is there a measure or any menthod that can help me solve the issue ?

1 ACCEPTED SOLUTION
Idrissshatila
Super User
Super User

Hello @Dhanil ,

 

Try datediff dax function by minutes, check this article for instructions https://learn.microsoft.com/en-us/dax/datediff-function-dax

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

Follow me on Linkedin

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Idrissshatila
Super User
Super User

Hello @Dhanil ,

 

Try datediff dax function by minutes, check this article for instructions https://learn.microsoft.com/en-us/dax/datediff-function-dax

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

Follow me on Linkedin

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Hi Idris,

 

I tried typing down DATEDIFF in the custom coloumn, it didnt take the value. 

 

Dhanil_0-1672923697973.png

and this was the output 

 

Dhanil_0-1672923785837.png

 

 

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.