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
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
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.

Top Kudoed Authors