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
Anonymous
Not applicable

Power Query Editor

Hi,

 I have a column in my report which has date in it. I can extract Month Name from the column.

 

Is there any option where I can get the month and year together from this column? Like suppose I need a new column like Month'Year showing values like April'2021, May'2021 and so on in the column?

 

Or do I have to extract month name and year seperately and then combine them?

 

Himanshu_13_0-1619528266544.png

 

Regards,

Himanshu

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I extracted individually and then merged. It solved my issue.

 

Himanshu_13_0-1619763210610.png

 

View solution in original post

5 REPLIES 5
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could use Date.ToText function to create a custom column.

https://docs.microsoft.com/en-us/powerquery-m/date-totext 

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Pragati11
Super User
Super User

Hi @Anonymous ,

 

You can achieve this as below:

Click on your DATE column under FIELDS pane.

Under top ribbon, you will get the option to select required date format.

 

Pragati11_0-1619528696834.png

 

Thanks,

Pragati

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

@Pragati11  I actually want it in the power query only as I ned to create a custom column using that Month'Year Column. 

 

What you've mentioned is completely right and I know it but i want it in the power query mode itself.

Hi @Anonymous ,

 

Add a custom column as follows in Power Query:

Date.ToText([YourDateColumn], "MMM-yyyy")

 

Thanks,

Pragati 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

I extracted individually and then merged. It solved my issue.

 

Himanshu_13_0-1619763210610.png

 

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.