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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.