The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 |
---|---|
27 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
7 | |
6 |