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

View all the Fabric Data Days sessions on demand. View schedule

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors