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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
BlueWhite3699
Helper III
Helper III

Extract Date and Day of Month from Date column using Power Query

Hi Expert

 

How would you extract from the date column the day and date intro a new column to show the following:

Column A

01/01/2025

02/01/2025

New Column

01-Wed

02-Thr

 

And so on - needs to be done on Power query as the FACT table has 11 million rows

1 ACCEPTED SOLUTION
vojtechsima
Super User
Super User

hey, @BlueWhite3699 

Click new column and write this:

 

Date.ToText([Column A],"dd-ddd", "en")

 

vojtechsima_0-1742048066417.png

 

View solution in original post

4 REPLIES 4
Ritaf1983
Super User
Super User

Hi @BlueWhite3699 
From PQ you can use this formula
Text.From(Date.Day([Column A])) &"-"&Text.Start(Date.DayOfWeekName([Column A]),3)

Ritaf1983_0-1742048459130.png

But 
The best practise is to have this column in a calender table
+
Note that we have a format option directly from visualizations :

Ritaf1983_1-1742048629299.png

The pbix with the axample is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
vojtechsima
Super User
Super User

hey, @BlueWhite3699 

Click new column and write this:

 

Date.ToText([Column A],"dd-ddd", "en")

 

vojtechsima_0-1742048066417.png

 

Excellent - thank you

@BlueWhite3699 
happy to help.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.