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
Selded
Helper III
Helper III

Columna calculada personalizada

Quiero una columna calculada que devuelva una columna personalizada como se muestra en el recorte a continuación, de modo que cuando use la columna como filtro en mi informe, los usuarios puedan seleccionar el mes actual para mostrar los detalles del mes activo.

Capture.PNG

Muchas gracias por la ayuda.

1 REPLY 1
amitchandak
Super User
Super User

@Selded , En la tabla de fechas puede tener una columna como

Tipo de mes : Switch( True(),
eomonth([Date],0) á eomonth(Today(),0),"Current Month" ,
Format([Date],"MMM-AAAA")
)

O

Tipo de mes : Switch( True(),
eomonth([Date],0) á eomonth(Today(),-1),"Last Month" ,
eomonth([Date],0) á eomonth(Today(),0),"Current Month" ,
Format([Date],"MMM-YY")
)

Ordenar esto en una columna Format([Date],"YYYYMM")

Consulte: https://www.youtube.com/watch?v=hfn05preQYA

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.