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
lucasvaranda
New Member

Data

Estou com duvidas de como tranfroma uma data que está em texto, para a forma correta. A data está no formato "29 de veveriro de 2024 10:40 hr" e quero transforma para "29/02/2024". Alguém poderia me dar dicas de como fazer isto

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

Hi @lucasvaranda ,

Since I don't know Portuguese, I'm not sure which of these you are referring to February, so I'll give you an example in English. You can ONLY realize the effect in Power Query:
Here is my sample data:

vjunyantmsft_0-1712626331798.png

Please follow these steps:

vjunyantmsft_1-1712626368211.png

If de veveriro de refers to February, you will need to add an extra step to combine the three parts into one column.

vjunyantmsft_2-1712626484588.png

vjunyantmsft_3-1712626538426.png

vjunyantmsft_4-1712626551705.png

vjunyantmsft_5-1712626574099.png

The final output is as below:

vjunyantmsft_6-1712626595209.png

vjunyantmsft_7-1712626696177.png

vjunyantmsft_8-1712626720362.png

 

The standard date display format on my side is MM/DD/YYYYY, if the standard date format in your region is DD/MM/YYYYY, Power BI will automatically convert to that format.

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-junyant-msft
Community Support
Community Support

Hi @lucasvaranda ,

Since I don't know Portuguese, I'm not sure which of these you are referring to February, so I'll give you an example in English. You can ONLY realize the effect in Power Query:
Here is my sample data:

vjunyantmsft_0-1712626331798.png

Please follow these steps:

vjunyantmsft_1-1712626368211.png

If de veveriro de refers to February, you will need to add an extra step to combine the three parts into one column.

vjunyantmsft_2-1712626484588.png

vjunyantmsft_3-1712626538426.png

vjunyantmsft_4-1712626551705.png

vjunyantmsft_5-1712626574099.png

The final output is as below:

vjunyantmsft_6-1712626595209.png

vjunyantmsft_7-1712626696177.png

vjunyantmsft_8-1712626720362.png

 

The standard date display format on my side is MM/DD/YYYYY, if the standard date format in your region is DD/MM/YYYYY, Power BI will automatically convert to that format.

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.