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.
Hola a todos,
Soy nuevo en Power BI y Dax y actualmente tengo algunos problemas con una de mis medidas.
Necesito contar los Días donde un Empleado reservó más de 10 horas de trabajo.
Los datos sin procesar se ven así. Un empleado puede reservar varias horas por día.
Intenté follwing DAX Expression:
GT10H - CALCULATE(COUNTROWS(DimDate),FILTER(fact_timebits,SUM(fact_timebits[hours])>10))
De causa el resultado es 3, porque la suma total de horas para los tres días es mayor que 10. ¿Existe la posibilidad de tener en cuenta únicamente el tiempo de trabajo diario, por lo que obtengo 1 como resultado?
Gracias por su ayuda!!
Solved! Go to Solution.
@AB300
¿Puede probar esta medida:
GT10H =
COUNTROWS(
FILTER(
SUMMARIZE(
fact_timebits,
fact_timebits[Date],
"Total", CALCULATE(SUM(fact_timebits[hours]))
),
"Total">10)
)
________________________
Si mi respuesta fue útil, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla
Haga clic en el icono Thumbs-Up si le gusta esta respuesta 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@AB300 , Probar medidas como
Horas: SUM(fact_timebits[horas])
GT10H - CALCULATE(COUNTROWS(DimDate),values(DimDate[date]),FILTER(fact_timebits,[Hours] >10))
sumx(filter(Values(DimDate[date]), [Hours] >10),COUNTROWS(DimDate))
@AB300
¿Puede probar esta medida:
GT10H =
COUNTROWS(
FILTER(
SUMMARIZE(
fact_timebits,
fact_timebits[Date],
"Total", CALCULATE(SUM(fact_timebits[hours]))
),
"Total">10)
)
________________________
Si mi respuesta fue útil, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla
Haga clic en el icono Thumbs-Up si le gusta esta respuesta 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |