Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Bom dia Pessoal!
Criei duas medidas no Power BI, com a seguinte finalidade ver quais tarefas eu realizai dentro de 01 hora. Todas as tarefas que fiz até 1 hora ele retorna "Dentro da Meta", o que passar de 1 hora "Fora da Meta", porém tem tarefas que passou do prazo de 1 hora e ele está me retornado como "Dentro da Meta". conforme imagem abaixo:
As Medidas que criei são:
Duração = DATEDIFF('PENDENTES'[NUMERAÇÃO] , PENDENTES[ENVIO], HOUR)
Prazo = IF([Duração] <= 1, "Dentro da meta", "Fora da meta")
Imagem do BI:
Segue exemplo de dados:
Como ele aparece no BI:
Desde já agradeço se puderem me ajudar a identificar o problema.
Solved! Go to Solution.
DATEDIFF(HOUR) literally just subtracts the hour values, regardless of the actual duration. Use DATEDIFF(MINUTE) and compare to 60
DATEDIFF(HOUR) literally just subtracts the hour values, regardless of the actual duration. Use DATEDIFF(MINUTE) and compare to 60
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 16 | |
| 13 | |
| 9 | |
| 8 | |
| 7 |