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
Hystericred
Frequent Visitor

SUMX Este Año (Año Bisiesto) vs El año pasado (No un Año Bisiesto) que coinciden exactamente con el Día de Las Semanas

Estoy tratando de hacerlo así :

Ingresos totales LY para 2020 (Importe neto):
CALCULATE([Ingresos totales (importe neto)],
DATEADD('dRollingCalendar_2018 a Now'[fecha],-364,DAY
)
)
Pero el resultado no parece coincidir con DOW , pls ayuda : (

3 REPLIES 3
v-gizhi-msft
Community Support
Community Support

Hola

Si mi respuesta ha resuelto su problema, por favor márquelo como una solución para que otros lo vean.
¡Gracias!

Saludos

Giotto

v-gizhi-msft
Community Support
Community Support

Hola

Puede probar esta medida (sin otra tabla de calender):

Total Revenue LY for 2020 (Net Amount) =
CALCULATE (
    [Total Revenue (Net Amount)],
    FILTER (
        ALLSELECTED ( 'Table' ),
        'Table'[Date]
            = DATE ( YEAR ( MAX ( 'Table'[Date] ) ) - 1, MONTH ( MAX ( 'Table'[Date] ) ), DAY ( MAX ( 'Table'[Date] ) ) )
    )
)

Espero que esto ayude.

Si todavía tiene algún problema, comparta algunos datos de muestra y el resultado esperado como capturas de pantalla aquí.

¡Gracias!

Saludos

Giotto

amitchandak
Super User
Super User

@Hystericred

Este parece correcto. El mismo día de la semana es siempre 364 días de retraso. Pero el mismo día estaría 1 año de retraso

Ingresos totales LY para 2020 (Importe neto) el mismo día de la semana:
CALCULATE([Ingresos totales (importe neto)],
DATEADD('dRollingCalendar_2018 a Now'[fecha],-364,DAY
)
)

Ingresos totales LY para 2020 (Importe neto) El mismo día:
CALCULATE([Ingresos totales (importe neto)],
DATEADD('dRollingCalendar_2018 a Now'[fecha],-1,Año
)
)

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.