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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors
Top Kudoed Authors