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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

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

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors