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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
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.