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
Syndicate_Admin
Administrator
Administrator

Devuelve 1 para diferentes días de la semana y diferentes valores

Hola querida comunidad

Necesito ayuda para crear una columna en DAX llamada "Old Cage" para devolver 1 para:

- columna "días entre" para valores superiores a 1

- a menos que sea lunes, entonces "días entre" para valores mayores que 2

Poniedzialek = (lunes)

¡Muchas gracias de antemano!

TornDigorn_0-1675589331011.png

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Hola @FreemanZ

Eso fue todo muchas gracias! 🙂

Syndicate_Admin
Administrator
Administrator

@TornDigorn

Prueba como:

Old Cage2 = 
IF(
    OR(
        [DayName] <> "Monday"&&[days between]>1,
        [DayName] = "Monday"&&[days between]>2
    ),
    1, 0
)

Funcionó como:

FreemanZ_0-1675591972653.png

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