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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
nsaray
Helper II
Helper II

Devolver "Sí" si el último día del mes

Hola

Muy fácil, pero soy nuevo, así que necesito ayuda

Sólo necesito devolver un valor Sí si una columna de fecha específica (Fecha de informe) es el último día del mes

¡Gracias!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

No @nsaray,

Puede crear una columna o medida calculada como se indica a continuación para obtenerla:

1. Crear columna calculada

last day of the month? = IF ( 'Table'[Report Date] = EOMONTH ( 'Table'[Report Date], 0 ), "Yes" )

2. Cree una medida como se muestra a continuación

Measure for last day of the month? = IF ( MAX ( 'Table'[Report Date] ) = EOMONTH ( MAX ( 'Table'[Report Date] ), 0 ), "Yes" )

Last day of the month.JPG

Saludos

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

No @nsaray,

Puede crear una columna o medida calculada como se indica a continuación para obtenerla:

1. Crear columna calculada

last day of the month? = IF ( 'Table'[Report Date] = EOMONTH ( 'Table'[Report Date], 0 ), "Yes" )

2. Cree una medida como se muestra a continuación

Measure for last day of the month? = IF ( MAX ( 'Table'[Report Date] ) = EOMONTH ( MAX ( 'Table'[Report Date] ), 0 ), "Yes" )

Last day of the month.JPG

Saludos

Fowmy
Super User
Super User

@nsaray

Sí, lo hará.

________________________

Si mi respuesta fue útil, haga clic en Aceptarla como la solución para ayudar a otros miembros a encontrarla útil

Haga clic en el icono Thumbs-Up si le gusta esta respuesta 🙂


Sitio web Youtube Linkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Fowmy
Super User
Super User

@nsaray

Hice una medida, puede repacer la variable __Date con su valor

Measure Last Date = 

var __date = DATE(2020,12,30) return
IF(
    EOMONTH(__date,0) = __date ,
    TRUE(),
    FALSE()
)

________________________

Si mi respuesta fue útil, haga clic en Aceptarla como la solución para ayudar a otros miembros a encontrarla útil

Haga clic en el icono Thumbs-Up si le gusta esta respuesta 🙂


Sitio web Youtube Linkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Gracias, ¿qué pasa si el nombre de la columna se llama "Fecha de informe"

¿Funcionará esto para febrero y meses con 31 días?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.