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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
hyggins
Helper I
Helper I

Cálculo DAX para encontrar Fecha cuando el total se convierte en un cierto valor (2x, 3x, etc.)

¡Buenas tardes!

Tengo tres columnas: Fecha, Total en ejecución y Crecimiento. Quiero crear otra columna ("Fecha doble") que indique cuándo, en una fecha posterior, el total en ejecución se duplicó. Vea los datos de ejemplo a continuación. El 1/1 el Total de Carrera fue 621. En 1/4 el Total de Carrera fue de 1.247. Esta es la fecha más temprana en la que Total en ejecución era igual o superior al valor 1/1 de 621. ¡Gracias!

FechaTotal de ejecuciónCrecimientoFecha doblada
1/1/2020621 1/4/2020
1/2/20207721511/6/2020
1/3/202010262541/7/2020
1/4/202012472211/8/2020
1/5/202015252781/10/2020
1/6/202020004751/11/2020
1/7/20202366366
1/8/20202651285
1/9/20202808157
1/10/202039291121
1/11/20204638709
2 REPLIES 2
camargos88
Community Champion
Community Champion

Hola @hyggins ,

Pruebe este código :

Columna ?
VAR _date á 'Tabla'[Fecha]
VAR _value á 'Tabla'[Total de ejecución]
RETURN CALCULATE(MIN('Table'[Date]); FILTRO(ALL('Tabla'); 'Tabla'[Total de ejecución] > _value * 2))


Ricardo


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



az38
Community Champion
Community Champion

Hola @hyggins

Date Doubled = 
CALCULATE(
MIN('Table'[Date]), 
FILTER(ALL('Table'),'Table'[Running Total] >= 2* SELECTEDVALUE('Table'[Running Total]) )
)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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 Kudoed Authors