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
Anonymous
Not applicable

Medidas en el eje de barras apiladas

Hola

Soy nuevo en Power BI. Quiero mostrar Start_CT en el eje Y en el char de la barra apilada. Apilado sobre la base de horas extras y retraso

Si Start_CT a Actual_CT-Target_CT >0, entonces 'Atraso' de otro lado 'Ontime'.

Start_Actual_CTStart_Target_CT
24
83

Mostrar los datos anteriores como debajo del formato.

image.png

1 ACCEPTED SOLUTION

Hola @at9063 ,

Creé una tabla calculada después de crear estas dos columnas.

recomienda

Table 2 = 
DISTINCT (
    UNION (
        SELECTCOLUMNS (
            'Table',
            "legend", "start_ct",
            "overtime", CALCULATE (
                COUNT ( 'Table'[start_ct] ),
                FILTER ( 'Table', 'Table'[start_ct] = "overtime" )
            ),
            "ontime", CALCULATE (
                COUNT ( 'Table'[start_ct] ),
                FILTER ( 'Table', 'Table'[start_ct] = "ontime" )
            )
        ),
        SELECTCOLUMNS (
            'Table',
            "legend", "close_ct",
            "overtime", CALCULATE (
                COUNT ( 'Table'[close_ct] ),
                FILTER ( 'Table', 'Table'[close_ct] = "overtime" )
            ),
            "ontime", CALCULATE (
                COUNT ( 'Table'[close_ct] ),
                FILTER ( 'Table', 'Table'[close_ct] = "ontime" )
            )
        )
    )
)

1.PNG

Saludos

Jay

Equipo de apoyo a la comunidad _ Jay Wang

Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

4 REPLIES 4
Mariusz
Community Champion
Community Champion

Hola @at9063

Puede crear una columna y medir como se muestra a continuación.

Column = IF( 'Table'[Start_Actual_CT] - 'Table'[Start_Target_CT] > 0, "Overdue", "Ontime" )
Measure = COUNTROWS( 'Table' )

y más tarde usarlo en su visual como se muestra a continuación.

image.png

Lo importante es establecer una medida para mostrar como un porcentaje del total general, haga clic con el botón derecho en un contenedor De medida en un contenedor de valores y vaya a Mostrar valores como Porcentaje de un total general.

Consulte el adjunto como referencia.

Saludos
Mariusz

Si este post ayuda, entonces considere aceptarlo como la solución.

Por favor, siéntase libre de conectarse conmigo.
Linkedin

Anonymous
Not applicable

@Mariusz Gracias por la respuesta.

En realidad tengo dos Close_CT métricas y Start_CT. Quiero tanto en el eje Y y su horas extras ,Overdue en apilado a través de la leyenda.

START_CT 'Tabla'[Start_Actual_CT] - 'Tabla'[Start_Target_CT]> 0, "Atrasado", "Ontime"

CLOSE_CT= 'Tabla'[Close_Actual_CT] - 'Tabla'[Close_Target_CT]> 0, "Atrasado", "Ontime"

image.png

Hola @at9063 ,

Creé una tabla calculada después de crear estas dos columnas.

recomienda

Table 2 = 
DISTINCT (
    UNION (
        SELECTCOLUMNS (
            'Table',
            "legend", "start_ct",
            "overtime", CALCULATE (
                COUNT ( 'Table'[start_ct] ),
                FILTER ( 'Table', 'Table'[start_ct] = "overtime" )
            ),
            "ontime", CALCULATE (
                COUNT ( 'Table'[start_ct] ),
                FILTER ( 'Table', 'Table'[start_ct] = "ontime" )
            )
        ),
        SELECTCOLUMNS (
            'Table',
            "legend", "close_ct",
            "overtime", CALCULATE (
                COUNT ( 'Table'[close_ct] ),
                FILTER ( 'Table', 'Table'[close_ct] = "overtime" )
            ),
            "ontime", CALCULATE (
                COUNT ( 'Table'[close_ct] ),
                FILTER ( 'Table', 'Table'[close_ct] = "ontime" )
            )
        )
    )
)

1.PNG

Saludos

Jay

Equipo de apoyo a la comunidad _ Jay Wang

Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

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.