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
michellepace
Resolver III
Resolver III

¿Acortar el mes en la jerarquía de fechas (generado automáticamente)?

Hola

¿Podría alguien decirme cómo acortar el nombre MES en una jerarquía generada automáticamente?

s.png

Gracias
Michelle

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hola @michellepace,

La jerarquía DATE se basa en una tabla oculta (power bi analytic sus campos de fecha y generado por la función de fecha y hora automática). Actualmente, no puede cambiar directamente su estilo en su tabla sin procesar.

Aplicar fecha y hora automáticas en Power BI Desktop
Tal vez pueda intentar formatear en esa tabla de calendario oculta. (actualmente, no puede averiguar que la tabla oculta en power bi side, puede intentar usar Excel o SSMS para conectarse y cambia su configuración)

Instancia del modelo de datos bi de potencia

saludos

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@michellepace, dudo que puedas hacer eso. Compruebe algunas opciones en la configuración regional.

Crea tu propio calendario y crea una jerarquía

Mes - formato([Fecha],[MMM])

Calendario de elección - https://community.powerbi.com/t5/Community-Blog/Creating-Financial-Calendar-Decoding-Date-and-Calend...

Jerarquía personalizada
https://stoneridgesoftware.com/creating-hierarchies-in-power-bi/
https://www.youtube.com/watch?v=x6vXVJZ_eTY

Fowmy
Super User
Super User

@michellepace

No creo que sea posible ya que es un calendario generado por el sistema y no expone opciones para modificar el formato. En su lugar, tendrá que crear una tabla de calendario.

Puede agregar una tabla de calendario pegando este código como una nueva tabla en el modelo.

Calendar = 
 ADDCOLUMNS(
  CALENDARAUTO() /*CALENDAR(date(startyear,1,1),date(endyear,12,31))*/
  ,"Day Name",FORMAT([Date],"DDDD")
  ,"Day of Week",(WEEKDAY([Date],1))
  ,"Day of Month",DAY([Date]) 
  ,"Week",DATE(YEAR([Date]),MONTH([Date]),DAY([Date]))-(WEEKDAY([Date],1)-1)
  ,"Week Name", "Week of " & DATE(YEAR([Date]),MONTH([Date]),DAY([Date]))-(WEEKDAY([Date],1)-1)
  ,"Week of Year", WEEKNUM([Date],1)
  ,"Month", DATE(YEAR([Date]),MONTH([Date]),1)
  ,"Month Name", FORMAT([Date],"MMMM")
  ,"Month of Year", MONTH([Date])
  ,"Month Year Name", FORMAT([Date],"MMM") & " " & YEAR([Date])
  ,"Month Year Name Sort",(100*YEAR([Date])+MONTH([Date]))
  ,"Quarter",DATE(YEAR([Date]),SWITCH(ROUNDUP(DIVIDE(MONTH([Date]),3,1),0),1,1,2,4,3,7,4,10),1)
  ,"Quarter Name", "Q" & ROUNDUP(MONTH([Date])/3,0)
  ,"Quarter Year Name", "Q" & ROUNDUP(MONTH([Date])/3,0) & " " & YEAR([Date])
  ,"Year", DATE(YEAR([Date]),1,1)
  ,"Year #",YEAR([Date])
 )

________________________

¿He respondido a tu pregunta? Marque este post como una solución, esto ayudará a otros!.

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

YoutubeLinkedin

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

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.