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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Trouble to subtract minutes

Hi everybody,

I have the column "MargemEntrada" with the calculations

PabloSosa_1-1637066040665.png


I subtract  "Batida1" -  'Escala Entrada"

When the difference is more than 00:05 Minutes, i want 1 with return, when the difference is less than 00:05 minutes i need blank.
But doesn´t work.

I have 00:05 with difference, in one line have 1 with result in another line have blank.

Here the "Margem"

PabloSosa_2-1637066355911.png

 




Anyone know what´s the problem ?

 

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, I create a sample, you can use MINITE function to calculate.

vkalyjmsft_0-1637544962933.png

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, I create a sample, you can use MINITE function to calculate.

vkalyjmsft_0-1637544962933.png

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , a new column

 

column =

var _1 = [Batida1] - [Escala Entrada]

return

if(_1 > time(0,5,0) ,1,blank()

 

Anonymous
Not applicable

Doesn´t work

Happened the same 

PabloSosa_0-1637073305640.png


Line with 00:05 difference, return 1.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.