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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.