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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Columna calculada para filtrar la suma total de horas regulares superiores a 40

hola

Estoy intentando crear una columna para comprobar errores las horas regulares del parte de horas que son más de 40 durante una semana.

Columnas de la tabla (TESS):

Id. de empleado [EMPL_ID]

Fin de semana TESS[Fin de semana]

Tipo de horas TESS[TYPE]

Horas ingresadas TESS[ENTERED_HRS]

Lo he intentado

R Horas Superiores a 40 =

CALCULAR (

SUMA ( TESS[ENTERED_HRS] ),

TESS[TIPO] = "R",

ALLEXCEPT ( TESS, TESS[Fin de semana] )

)

Esto no me está dando los resultados que necesito.

Puedo crear una nueva tabla y obtener los resultados deseados:

TESS_R_BY_EOW =

VAR baseTable =

CALCULABLE (

SUMMARIZECOLUMNS (

TESS[EMPL_ID],

TESS[Fin de semana]

),

TESS[TIPO] = "R"

)

devolución

GENERAR (

baseTable,

VAR R_hours =

CALCULAR ( SUMA ( TESS[ENTERED_HRS] ), TESS[TIPO] = "R" )

devolución

FILA ( "Horas R", R_hours )

)

Cualquier ayuda será muy apreciada.

Vie

puntilla

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Por favor, intente:

R Hours Over 40 = 
IF(TESS[TYPE] = "R",
    CALCULATE(SUM(TESS[ENTERED_HRS]),
        FILTER(
            ALLEXCEPT(TESS,TESS[EMPL_ID],TESS[End of Week]),
            TESS[TYPE] = "R")),
    BLANK())

Vlianlmsft_0-1624514193068.pngVlianlmsft_1-1624514216542.png

View solution in original post

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

Por favor, intente:

R Hours Over 40 = 
IF(TESS[TYPE] = "R",
    CALCULATE(SUM(TESS[ENTERED_HRS]),
        FILTER(
            ALLEXCEPT(TESS,TESS[EMPL_ID],TESS[End of Week]),
            TESS[TYPE] = "R")),
    BLANK())

Vlianlmsft_0-1624514193068.pngVlianlmsft_1-1624514216542.png

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.