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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.