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

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.

Reply
NatanVieira
Regular Visitor

Como mostrar horas corretamente?

Bom dia,

primeiro post na comunidade, peço desculpas desde já se houver algo errado na postagem.

 

Preciso de ajuda para mostrar um medida relacionada a horas.

Meus dados vem de uma base que registra quanto tempo uma máquina fica ligada ou desligada, o tempo vem em segundos com o tipo decimal, por exemplo 22,86 segundos ligada.

 

Quando seleciono os filtros ele me traz a somatória total desses segundos que representam horas, se eu fizer a soma e dividir por 3600 eu sei quantas horas são, mas no momento que eu tento formatar isso para hh:mm o resultado que aparece não é verdadeiro.

 

Eu selecionei um dia apenas para testes e sei que a carga horário total foi de 114,60 horas que ao meu ver deveriam ser mostradas como 114:36:00, mas como eu utilizo o format(medida, "hh:mm") ele mostra 18:36:00.

 

Já fiz a divisão do meu campo de tempo em segundos por 86400, que é a mesma coisa de usar o método durantion durante a transformação de dados,

2 ACCEPTED SOLUTIONS
NatanVieira
Regular Visitor

Consegui encontrar algo, não era o que eu esperava exatamente, mas já ajuda de qualquer modo.

segue links: aqui

 

View solution in original post

V-pazhen-msft
Community Support
Community Support

@NatanVieira 

Thanks for share you progress. You can also use the following method, but the the column will become text type. 

excel - Summing time fields over 24 hours in Power Query - Stack Overflow

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
V-pazhen-msft
Community Support
Community Support

@NatanVieira 

Thanks for share you progress. You can also use the following method, but the the column will become text type. 

excel - Summing time fields over 24 hours in Power Query - Stack Overflow

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

NatanVieira
Regular Visitor

Consegui encontrar algo, não era o que eu esperava exatamente, mas já ajuda de qualquer modo.

segue links: aqui

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.