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
eduse07
Helper I
Helper I

Fecha mas antigua

Hola a todos.

 

Estoy trabajando en una consulta llamada Conformacion SET donde tengo busco traer la fecha de recepcion para elemento resaltado de la columna ICO. Mi idea es traer la fecha mas antigua de la columna Fecha Lote que exista para este registro teniendo en cuenta la columna DOCUMENTO, en este caso deberia ser 16/07/2021, pero me esta arrojando la fecha mas antigua que encuentra en toda la base de datos (02/01/2020). 

eduse07_2-1626969234242.png

 

Estoy trabajando con el siguiente codigo, agradezco de cualquier ayuda para poder corregir este inconveniete...Gracias!!

 

Fecha Recepcion =
IF('Conformacion SET'[Fecha Lote] = 0,
CALCULATE(FIRSTNONBLANK('Conformacion SET'[Fecha Lote], 1),
FILTER(ALL('Conformacion SET'), 'Conformacion SET'[Documento] = 'Conformacion SET'[Documento])), 'Conformacion SET'[Fecha Lote])

 

1 ACCEPTED SOLUTION

Gracias!! Con un pequeño ajuste logre dar solucion al problema

View solution in original post

3 REPLIES 3
Mohammad_Refaei
Solution Specialist
Solution Specialist

Try this:

Fecha Recepcion =
IF (
    'Conformacion SET'[Fecha Lote] = 0,
    CALCULATE (
        MIN ( 'Conformacion SET'[Fecha Lote] ),
        ALLEXCEPT ( 'Conformacion SET', 'Conformacion SET'[Documento] )
    ),
    'Conformacion SET'[Fecha Lote]
)

Gracias!! Con un pequeño ajuste logre dar solucion al problema

Most welcome

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.

Top Solution Authors