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

Visualización de año y mes de forma predeterminada en la segmentación de datos

Hola

Cómo mostrar el año y el mes actuales que se seleccionarán en la segmentación de datos (es decir, se abrirán automáticamente en el mes actual en todo momento).

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

@Umadhandapani , Solo hay solución para eso

Tipo de año = Switch( True(),
year([Date])= year(Today()),"This Year" ,
year([Date])= year(Today())-1,"Last Year" ,
formato([fecha],"aaaa")
)

Tipo de mes = Switch( True(),
month([Date])= month(Today()),"This Month" ,
mes([Fecha]) & ""
)

o

Tipo de mes = Switch( True(),
Fecha([Fecha]) = eomonth(Hoy(),-1),"Último mes" ,
Fecha([Fecha])= eomonth(Hoy(),0),"Este Mes" ,
[Mes]
)

Fecha predeterminada hoy / este mes / este año: https://www.youtube.com/watch?v=hfn05preQYA

Necesitas valor de ahorro como este año, este mes

View solution in original post

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

@Umadhandapani , Solo hay solución para eso

Tipo de año = Switch( True(),
year([Date])= year(Today()),"This Year" ,
year([Date])= year(Today())-1,"Last Year" ,
formato([fecha],"aaaa")
)

Tipo de mes = Switch( True(),
month([Date])= month(Today()),"This Month" ,
mes([Fecha]) & ""
)

o

Tipo de mes = Switch( True(),
Fecha([Fecha]) = eomonth(Hoy(),-1),"Último mes" ,
Fecha([Fecha])= eomonth(Hoy(),0),"Este Mes" ,
[Mes]
)

Fecha predeterminada hoy / este mes / este año: https://www.youtube.com/watch?v=hfn05preQYA

Necesitas valor de ahorro como este año, este mes

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.