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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Shakeerm
Helper II
Helper II

Porcentaje de etiquetas en un gráfico de líneas y columnas apiladas

Hola

Tengo un gráfico de líneas y columnas apiladas que ilustra los trabajos de tiempo de espera/atraso para cada rama de trabajo

Necesito mostrar el Porcentaje del 100% para cada Sucursal.

Cuando intenté mostrar el valor como porcentaje del total general, muestra el porcentaje de rama para todas las ramas.

Task Efficiency.png

Esta es la Columna que he añadido para formular Ontime/Overdue

Overdue.png

Probé algunas funciones DAX y ninguna de ellas dio los resultados correctos.

Apreciar la ayuda

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

HOLA @Shakeerm

Simplemente cree una medida como se muestra a continuación:

Measure =
DIVIDE (
    CALCULATE ( COUNTA ( 'HR Performance Analysis Report'[Job No] ) ),
    CALCULATE (
        COUNTA ( 'HR Performance Analysis Report'[Job No] ),
        ALLSELECTED ( 'HR Performance Analysis Report'[Overdue] )
    )
)

A continuación, arrastre esta medida a los valores de columna del objeto visual.

saludos

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
sanimesa
Post Prodigy
Post Prodigy

@Shakeerm Es posible que deba crear algunas medidas para ello. Aquí hay una muestra de ejercicio - por favor cree medidas como esta:

Total Count = COUNTROWS(OnTime)
OnTime Count = CALCULATE([Total Count], OnTime[Status]="ONTIME")
Overdue Count = CALCULATE([Total Count], OnTime[Status]="OVERDUE")
% OnTime = DIVIDE(OnTime[OnTime Count], [Total Count])
% Overdue = DIVIDE([Overdue Count], [Total Count])

A continuación, configure el gráfico como se muestra en la imagen de abajo.

PBI Help ontime.PNG

Anonymous
Not applicable

Pruebe esta medida:

Pencentage Values = COUNTA(Table[Overdue]) / CALCULATE(COUNTA(Table[Overdue]),ALL(Table[Overdue]))

Cambie el tipo de datos a pecentages y debería estar listo. Pero va a meterse con tu eje.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors