Forum Discussion
Syndicate_Admin
Administrator
3 years agoProblema de columnas visuales de matriz
Hola
He creado una matriz como se muestra a continuación.
Estoy usando la siguiente medida para obtener los valores de las fechas seleccionadas.
Total de horas trabajadas =
Var cal =
CALCULAR(
SUM('timesheet_data'[Horas trabajadas]),
'timesheet_data'[Nombre del rol de trabajo de la hoja de horas] IN {"Limpieza matutina", "Conserjes", "Limpiador de ventanas", "Servicio y mañana", "Supervisor"},
'timesheet_data'[duración] <> "S",
'timesheet_data'[duración] <> "H"
)
devolución
Cal
I need to show '0.00' for the blank values which means SUMA('timesheet_data'[Horas trabajadas]) = 0. for that I modified the above measure as below. But it gives 0.00 for all the values without giving correct answers. what's the solution for this and what's the error in my measure.
Cualquier ayuda es muy apreciada. Muchas gracias.
I need to show '0.00' for the blank values which means SUMA('timesheet_data'[Horas trabajadas]) = 0. for that I modified the above measure as below. But it gives 0.00 for all the values without giving correct answers. what's the solution for this and what's the error in my measure.
Cualquier ayuda es muy apreciada. Muchas gracias.
Total de horas trabajadas =
var cal =
CALCULAR(
SUM('timesheet_data'[Horas trabajadas]),
'timesheet_data'[Nombre del rol de trabajo de la hoja de horas] IN {"Limpieza matutina", "Conserjes", "Limpiador de ventanas", "Servicio y mañana", "Supervisor"},
'timesheet_data'[duración] <> "S",
'timesheet_data'[duración] <> "H"
)
var ans = COALESCE(cal, 0.00)
devolución
Años
3 Replies
- Syndicate_Admin
Administrator
¿Puedes probar lo siguiente?
Total Worked Hours = var cal = CALCULATE( SUM('timesheet_data'[Hours Worked]), 'timesheet_data'[Timesheet Job Role Name] IN {"Morning Cleaning", "Janitors", "Window Cleaner", "Duty & Morning", "Supervisor"}, 'timesheet_data'[duration] <> "S", 'timesheet_data'[duration] <> "H" ) return IF(ISBLANK(cal), 0.00, cal) - Syndicate_Admin
Administrator
Hola AmiraBedh,
Probé esa medida, pero también da el 0.00 como valor para todas las fechas. - Syndicate_Admin
Administrator
¿Puede proporcionar parte de su conjunto de datos?