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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
marcloap_jr
New Member

Base de Dados: Erro ao importar horas de pasta de trabalho.

Estou trabalhando com uma base de dados com KPI's em horas, na minha pasta de trabalho no excel os dados são colocados em data/hora tipo:
-Exemplo:
01/01/1900 00:30:00
Ao subir a informação no Power Bi, as novas informações inseridas estão dando erro.
Na pasta de trabalho ao colocar à hora do resultado controlado eu apenas digito à hora que automaticamente a planilha escolhe essa data generica "01/01/1900" o que pra mim tanto faz, já que ao subir no Power Query do Power Bi a coluna está formatado em horas e só extrai a hora que irei trabalhar no Power BI.

1 ACCEPTED SOLUTION
v-cgao-msft
Community Support
Community Support

Hi @marcloap_jr ,

How do you want the time column to appear when importing into Power BI?

Will converting this column to a Time type in Power Query satisfy the requirement?

vcgaomsft_0-1665129641477.png

Or do you want to convert this column to decimal time? You can add custom columns in PQ:

 

= Duration.TotalHours([Time]-#datetime(1900,1,1,0,0,0))

 

vcgaomsft_1-1665131502410.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

1 REPLY 1
v-cgao-msft
Community Support
Community Support

Hi @marcloap_jr ,

How do you want the time column to appear when importing into Power BI?

Will converting this column to a Time type in Power Query satisfy the requirement?

vcgaomsft_0-1665129641477.png

Or do you want to convert this column to decimal time? You can add custom columns in PQ:

 

= Duration.TotalHours([Time]-#datetime(1900,1,1,0,0,0))

 

vcgaomsft_1-1665131502410.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors