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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
iamriz
Helper II
Helper II

¿Cómo puedo personalizar la etiqueta del eje x de fecha en un gráfico de barras (por ejemplo. ¿Tiene "Ene 2020" para el día 1 en enero de 2020)?

Hola, he creado un archivo de práctica PBIX de muestra (consulte este enlace por favor) con fechas y datos diarios. Quería mostrar "Enenero 2020" o que se mostrara en los gráficos de barras de destino debajo (vea la foto a continuación), en lugar de la actual "Enero 2020" como etiqueta del eje X. Esto es con el fin de que voy a ser capaz de identificar fácilmente qué barra diaria en el gráfico es 1 de enero de 2020 (o el día 1 de cada mes). Sería más fácil hacer formato condicional (por ejemplo, ir por diferente color de barra si es el día 1 de cada mes), el problema es que hay días que el recuento diario es 0 por lo que todavía sería difícil determinar cuál es el día 1. Cualquier sugerencia sobre cómo puedo implementar esto sería muy apreciada. ¡Gracias!

qa1.jpg

1 ACCEPTED SOLUTION
mwegener
Most Valuable Professional
Most Valuable Professional

Hola @iamriz ,

probar esta medida para llenar el espacio libre de la barra.

first of Month =
IF (
    DAY ( SELECTEDVALUE ( 'Table'[Date] ) ) = 1,
    MAXX (
        SUMMARIZE (
            ALLSELECTED ( 'Table' ),
            'Table'[Date],
            "@Daily Count", SUM ( 'Table'[Daily Count] )
        ),
        [@Daily Count]
    )
        - SUM ( 'Table'[Daily Count] ),
    BLANK ()
)

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


View solution in original post

2 REPLIES 2
mwegener
Most Valuable Professional
Most Valuable Professional

Hola @iamriz ,

probar esta medida para llenar el espacio libre de la barra.

first of Month =
IF (
    DAY ( SELECTEDVALUE ( 'Table'[Date] ) ) = 1,
    MAXX (
        SUMMARIZE (
            ALLSELECTED ( 'Table' ),
            'Table'[Date],
            "@Daily Count", SUM ( 'Table'[Daily Count] )
        ),
        [@Daily Count]
    )
        - SUM ( 'Table'[Daily Count] ),
    BLANK ()
)

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Hola @mwegener, gracias por la ayuda. Su sugerencia, junto con algunos ajustes, será suficiente. 🙂

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors