cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
dommyw277
Helper II
Helper II

No Suitable Date column

Hi,
I have a column called Event Type and its the only column that contains the date of the Bill we get. However it contains text before it eg "Azure Monitor (April 2023) "
How do i duplicate the column and use only the Date Part so I can use it as date column?

1 ACCEPTED SOLUTION
christinepayton
Solution Sage
Solution Sage

You can duplicate the column in Power Query, then split on specific characters (assuming it's consistent) to leave the date, then transform that field to a date type. In your example, I would split on the last "(" and again on the last ")" to get the date, then change the type to date  in the UI. It will recognize April 2023 as something that can be a date when it transforms and make it the first of the month. 

View solution in original post

4 REPLIES 4
dommyw277
Helper II
Helper II

Cant do that as the dates are different eg April 2023, August 2023

It'd work for any month, April was just an example. The change type in PQ can recognize dates formatted with the month name and year. 

christinepayton
Solution Sage
Solution Sage

You can duplicate the column in Power Query, then split on specific characters (assuming it's consistent) to leave the date, then transform that field to a date type. In your example, I would split on the last "(" and again on the last ")" to get the date, then change the type to date  in the UI. It will recognize April 2023 as something that can be a date when it transforms and make it the first of the month. 

Actually thats a good call, i managed to do it with another column that only has the same amount of characters, thank you!

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors