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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
GroboBI
Regular Visitor

DATEDIFF Measure not working properli

Hi! I'm trying to create a measure that calculates the difference between my beggining date and my end date: 

(Sorry it's in spanish)

 

The third column is the one im workin on, it's supposed to calculate the datediff between start date and end date, wich it does, but in the "Total" you can see value "335" wich is the total difference between the 2 dates that are in that herarchy.

Instead of 335 it should say 0 , wich is the total sum of the 3 rows.

I will thank any help provided! You can ask me if i didn't explained myself properly.

 

This is the DAX im using: 

 

TiempoProceso = CALCULATE(DATEDIFF( MIN( 'log dw_proceso'[Fecha Inicio] ); MAX( 'log dw_proceso'[Fecha Fin]); MINUTE ) ; FILTER('log dw_lote';'log dw_lote'[lote_key]))
 

image.png

0 REPLIES 0

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors