cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
zicarelli
New Member

Transferring date as a number NOT a text?

Hi everyone.

I just got started with Power BI and I am struggling to transform a date/month (Ex.: August) as a number in Power BI? When it gets to Power BI desktop it reads as text (please, see the image attached). Any hints? I need to have August as a month/number?

Cheers

Marcoscreenshot_date_column.jpg

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@zicarelli , No power will take that as text only, You have to create date with help from the year and month

 

Date.FromText("01-" &[Month] & "-" & Text.Start[Year])



!! Microsoft Fabric !!
Microsoft Power BI Learning Resources, 2023 !!
Learn Power BI - Full Course with Dec-2022, with Window, Index, Offset, 100+ Topics !!
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@zicarelli , No power will take that as text only, You have to create date with help from the year and month

 

Date.FromText("01-" &[Month] & "-" & Text.Start[Year])



!! Microsoft Fabric !!
Microsoft Power BI Learning Resources, 2023 !!
Learn Power BI - Full Course with Dec-2022, with Window, Index, Offset, 100+ Topics !!
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!

Thanks, mate! Will do it.

Helpful resources

Announcements
May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors