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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. 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
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

May 2025 Monthly Update

Fabric Community Update - May 2025

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

Top Solution Authors
Top Kudoed Authors